CreateOrUpdateGitTagDetails¶
-
class
oci.devops.models.CreateOrUpdateGitTagDetails(**kwargs)¶ Bases:
oci.devops.models.create_or_update_git_ref_details.CreateOrUpdateGitRefDetailsThe information needed to create a lightweight tag.
Attributes
REF_TYPE_BRANCHstr(object=’’) -> str REF_TYPE_TAGstr(object=’’) -> str object_id[Required] Gets the object_id of this CreateOrUpdateGitTagDetails. ref_name[Required] Gets the ref_name of this CreateOrUpdateGitRefDetails. ref_type[Required] Gets the ref_type of this CreateOrUpdateGitRefDetails. Methods
__init__(**kwargs)Initializes a new CreateOrUpdateGitTagDetails 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'¶
-
REF_TYPE_TAG= 'TAG'¶
-
__init__(**kwargs)¶ Initializes a new CreateOrUpdateGitTagDetails object with values from keyword arguments. The default value of the
ref_typeattribute of this class isTAGand it should not be changed. 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 CreateOrUpdateGitTagDetails.
- ref_type (str) – The value to assign to the ref_type property of this CreateOrUpdateGitTagDetails. Allowed values for this property are: “BRANCH”, “TAG”
- object_id (str) – The value to assign to the object_id property of this CreateOrUpdateGitTagDetails.
-
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.
-
object_id¶ [Required] Gets the object_id of this CreateOrUpdateGitTagDetails. SHA-1 hash value of the object pointed to by the tag.
Returns: The object_id of this CreateOrUpdateGitTagDetails. Return type: str
-
ref_name¶ [Required] Gets the ref_name of this CreateOrUpdateGitRefDetails. The name of the reference to create or update.
Returns: The ref_name of this CreateOrUpdateGitRefDetails. Return type: str
-
ref_type¶ [Required] Gets the ref_type of this CreateOrUpdateGitRefDetails. The type of reference (BRANCH or TAG).
Allowed values for this property are: “BRANCH”, “TAG”
Returns: The ref_type of this CreateOrUpdateGitRefDetails. Return type: str
-