PutRepositoryRefDetails

class oci.devops.models.PutRepositoryRefDetails(**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 PutRepositoryRefDetails.
REF_TYPE_TAG A constant which can be used with the ref_type property of a PutRepositoryRefDetails.
ref_type [Required] Gets the ref_type of this PutRepositoryRefDetails.

Methods

__init__(**kwargs) Initializes a new PutRepositoryRefDetails 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 PutRepositoryRefDetails. This constant has a value of “BRANCH”

REF_TYPE_TAG = 'TAG'

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

__init__(**kwargs)

Initializes a new PutRepositoryRefDetails 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_type (str) – The value to assign to the ref_type property of this PutRepositoryRefDetails. 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.

ref_type

[Required] Gets the ref_type of this PutRepositoryRefDetails. The type of reference (BRANCH or TAG).

Allowed values for this property are: “BRANCH”, “TAG”

Returns:The ref_type of this PutRepositoryRefDetails.
Return type:str