RepositoryRef¶
-
class
oci.devops.models.RepositoryRef(**kwargs)¶ Bases:
objectReference object with name and commit ID.
Attributes
REF_TYPE_BRANCHA constant which can be used with the ref_type property of a RepositoryRef. REF_TYPE_TAGA constant which can be used with the ref_type property of a RepositoryRef. defined_tagsGets the defined_tags of this RepositoryRef. freeform_tagsGets the freeform_tags of this 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.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this RepositoryRef.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this RepositoryRef.
Gets the defined_tags of this RepositoryRef. Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {“foo-namespace”: {“bar-key”: “value”}}
Returns: The defined_tags of this RepositoryRef. Return type: dict(str, dict(str, object))
Gets the freeform_tags of this RepositoryRef. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {“bar-key”: “value”}
Returns: The freeform_tags of this RepositoryRef. Return type: dict(str, str)
-
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
-