RepositoryRef

class oci.devops.models.RepositoryRef(**kwargs)

Bases: object

Reference object with name and commit ID.

Attributes

REF_TYPE_BRANCH A constant which can be used with the ref_type property of a RepositoryRef.
REF_TYPE_TAG A constant which can be used with the ref_type property of a RepositoryRef.
full_ref_name [Required] Gets the full_ref_name of this RepositoryRef.
ref_name [Required] Gets the ref_name of this RepositoryRef.
ref_type [Required] Gets the ref_type of this RepositoryRef.
repository_id [Required] Gets the repository_id of this RepositoryRef.

Methods

__init__(**kwargs) Initializes a new RepositoryRef object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
REF_TYPE_BRANCH = 'BRANCH'

A constant which can be used with the ref_type property of a RepositoryRef. This constant has a value of “BRANCH”

REF_TYPE_TAG = 'TAG'

A constant which can be used with the ref_type property of a RepositoryRef. This constant has a value of “TAG”

__init__(**kwargs)

Initializes a new RepositoryRef object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • ref_name (str) – The value to assign to the ref_name property of this RepositoryRef.
  • ref_type (str) – The value to assign to the ref_type property of this RepositoryRef. Allowed values for this property are: “BRANCH”, “TAG”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • full_ref_name (str) – The value to assign to the full_ref_name property of this RepositoryRef.
  • repository_id (str) – The value to assign to the repository_id property of this RepositoryRef.
full_ref_name

[Required] Gets the full_ref_name of this RepositoryRef. Unique full reference name inside a repository.

Returns:The full_ref_name of this RepositoryRef.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

ref_name

[Required] Gets the ref_name of this RepositoryRef. Unique reference name inside a repository.

Returns:The ref_name of this RepositoryRef.
Return type:str
ref_type

[Required] Gets the ref_type of this RepositoryRef. The type of reference (Branch or Tag).

Allowed values for this property are: “BRANCH”, “TAG”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The ref_type of this RepositoryRef.
Return type:str
repository_id

[Required] Gets the repository_id of this RepositoryRef. The OCID of the repository containing the reference.

Returns:The repository_id of this RepositoryRef.
Return type:str