GitConfigSourceRecord

class oci.resource_manager.models.GitConfigSourceRecord(**kwargs)

Bases: ConfigSourceRecord

Metadata about the Git configuration source.

Attributes:

CONFIG_SOURCE_RECORD_TYPE_BITBUCKET_CLOUD_CONFIG_SOURCE

A constant which can be used with the config_source_record_type property of a ConfigSourceRecord.

CONFIG_SOURCE_RECORD_TYPE_BITBUCKET_SERVER_CONFIG_SOURCE

A constant which can be used with the config_source_record_type property of a ConfigSourceRecord.

CONFIG_SOURCE_RECORD_TYPE_COMPARTMENT_CONFIG_SOURCE

A constant which can be used with the config_source_record_type property of a ConfigSourceRecord.

CONFIG_SOURCE_RECORD_TYPE_DEVOPS_CONFIG_SOURCE

A constant which can be used with the config_source_record_type property of a ConfigSourceRecord.

CONFIG_SOURCE_RECORD_TYPE_GIT_CONFIG_SOURCE

A constant which can be used with the config_source_record_type property of a ConfigSourceRecord.

CONFIG_SOURCE_RECORD_TYPE_OBJECT_STORAGE_CONFIG_SOURCE

A constant which can be used with the config_source_record_type property of a ConfigSourceRecord.

CONFIG_SOURCE_RECORD_TYPE_ZIP_UPLOAD

A constant which can be used with the config_source_record_type property of a ConfigSourceRecord.

branch_name

Gets the branch_name of this GitConfigSourceRecord.

commit_id

Gets the commit_id of this GitConfigSourceRecord.

config_source_record_type

[Required] Gets the config_source_record_type of this ConfigSourceRecord.

configuration_source_provider_id

[Required] Gets the configuration_source_provider_id of this GitConfigSourceRecord.

repository_url

Gets the repository_url of this GitConfigSourceRecord.

Methods:

__init__(**kwargs)

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

CONFIG_SOURCE_RECORD_TYPE_BITBUCKET_CLOUD_CONFIG_SOURCE = 'BITBUCKET_CLOUD_CONFIG_SOURCE'

A constant which can be used with the config_source_record_type property of a ConfigSourceRecord. This constant has a value of “BITBUCKET_CLOUD_CONFIG_SOURCE”

CONFIG_SOURCE_RECORD_TYPE_BITBUCKET_SERVER_CONFIG_SOURCE = 'BITBUCKET_SERVER_CONFIG_SOURCE'

A constant which can be used with the config_source_record_type property of a ConfigSourceRecord. This constant has a value of “BITBUCKET_SERVER_CONFIG_SOURCE”

CONFIG_SOURCE_RECORD_TYPE_COMPARTMENT_CONFIG_SOURCE = 'COMPARTMENT_CONFIG_SOURCE'

A constant which can be used with the config_source_record_type property of a ConfigSourceRecord. This constant has a value of “COMPARTMENT_CONFIG_SOURCE”

CONFIG_SOURCE_RECORD_TYPE_DEVOPS_CONFIG_SOURCE = 'DEVOPS_CONFIG_SOURCE'

A constant which can be used with the config_source_record_type property of a ConfigSourceRecord. This constant has a value of “DEVOPS_CONFIG_SOURCE”

CONFIG_SOURCE_RECORD_TYPE_GIT_CONFIG_SOURCE = 'GIT_CONFIG_SOURCE'

A constant which can be used with the config_source_record_type property of a ConfigSourceRecord. This constant has a value of “GIT_CONFIG_SOURCE”

CONFIG_SOURCE_RECORD_TYPE_OBJECT_STORAGE_CONFIG_SOURCE = 'OBJECT_STORAGE_CONFIG_SOURCE'

A constant which can be used with the config_source_record_type property of a ConfigSourceRecord. This constant has a value of “OBJECT_STORAGE_CONFIG_SOURCE”

CONFIG_SOURCE_RECORD_TYPE_ZIP_UPLOAD = 'ZIP_UPLOAD'

A constant which can be used with the config_source_record_type property of a ConfigSourceRecord. This constant has a value of “ZIP_UPLOAD”

__init__(**kwargs)

Initializes a new GitConfigSourceRecord object with values from keyword arguments. The default value of the config_source_record_type attribute of this class is GIT_CONFIG_SOURCE and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • config_source_record_type (str) – The value to assign to the config_source_record_type property of this GitConfigSourceRecord. Allowed values for this property are: “BITBUCKET_CLOUD_CONFIG_SOURCE”, “BITBUCKET_SERVER_CONFIG_SOURCE”, “COMPARTMENT_CONFIG_SOURCE”, “DEVOPS_CONFIG_SOURCE”, “GIT_CONFIG_SOURCE”, “OBJECT_STORAGE_CONFIG_SOURCE”, “ZIP_UPLOAD”

  • configuration_source_provider_id (str) – The value to assign to the configuration_source_provider_id property of this GitConfigSourceRecord.

  • repository_url (str) – The value to assign to the repository_url property of this GitConfigSourceRecord.

  • branch_name (str) – The value to assign to the branch_name property of this GitConfigSourceRecord.

  • commit_id (str) – The value to assign to the commit_id property of this GitConfigSourceRecord.

property branch_name

Gets the branch_name of this GitConfigSourceRecord. The name of the branch within the Git repository.

Returns

The branch_name of this GitConfigSourceRecord.

Return type

str

property commit_id

Gets the commit_id of this GitConfigSourceRecord. The unique identifier (SHA-1 hash) of the individual change to the Git repository.

Returns

The commit_id of this GitConfigSourceRecord.

Return type

str

property config_source_record_type

[Required] Gets the config_source_record_type of this ConfigSourceRecord. The type of configuration source to use for the Terraform configuration.

Allowed values for this property are: “BITBUCKET_CLOUD_CONFIG_SOURCE”, “BITBUCKET_SERVER_CONFIG_SOURCE”, “COMPARTMENT_CONFIG_SOURCE”, “DEVOPS_CONFIG_SOURCE”, “GIT_CONFIG_SOURCE”, “OBJECT_STORAGE_CONFIG_SOURCE”, “ZIP_UPLOAD”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The config_source_record_type of this ConfigSourceRecord.

Return type

str

property configuration_source_provider_id

[Required] Gets the configuration_source_provider_id of this GitConfigSourceRecord. Unique identifier (OCID) for the Git configuration source.

Returns

The configuration_source_provider_id of this GitConfigSourceRecord.

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.

property repository_url

Gets the repository_url of this GitConfigSourceRecord. The URL of the Git repository.

Returns

The repository_url of this GitConfigSourceRecord.

Return type

str