CreateOrUpdateGitRefDetails

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

Bases: object

The information needed to create a reference. If the reference already exists, then it can be used to update the reference.

Attributes:

REF_TYPE_BRANCH

A constant which can be used with the ref_type property of a CreateOrUpdateGitRefDetails.

REF_TYPE_TAG

A constant which can be used with the ref_type property of a CreateOrUpdateGitRefDetails.

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 CreateOrUpdateGitRefDetails 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 CreateOrUpdateGitRefDetails. This constant has a value of “BRANCH”

REF_TYPE_TAG = 'TAG'

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

__init__(**kwargs)

Initializes a new CreateOrUpdateGitRefDetails 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 CreateOrUpdateGitRefDetails.

  • ref_type (str) – The value to assign to the ref_type property of this CreateOrUpdateGitRefDetails. Allowed values for this property are: “BRANCH”, “TAG”

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.

property 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

property 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