GitConfigSourceRecord

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

Bases: oci.resource_manager.models.config_source_record.ConfigSourceRecord

Metadata about the Git configuration source.

Attributes

CONFIG_SOURCE_RECORD_TYPE_BITBUCKET_CLOUD_CONFIG_SOURCE str(object=’’) -> str
CONFIG_SOURCE_RECORD_TYPE_BITBUCKET_SERVER_CONFIG_SOURCE str(object=’’) -> str
CONFIG_SOURCE_RECORD_TYPE_COMPARTMENT_CONFIG_SOURCE str(object=’’) -> str
CONFIG_SOURCE_RECORD_TYPE_DEVOPS_CONFIG_SOURCE str(object=’’) -> str
CONFIG_SOURCE_RECORD_TYPE_GIT_CONFIG_SOURCE str(object=’’) -> str
CONFIG_SOURCE_RECORD_TYPE_OBJECT_STORAGE_CONFIG_SOURCE str(object=’’) -> str
CONFIG_SOURCE_RECORD_TYPE_ZIP_UPLOAD str(object=’’) -> str
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'
CONFIG_SOURCE_RECORD_TYPE_BITBUCKET_SERVER_CONFIG_SOURCE = 'BITBUCKET_SERVER_CONFIG_SOURCE'
CONFIG_SOURCE_RECORD_TYPE_COMPARTMENT_CONFIG_SOURCE = 'COMPARTMENT_CONFIG_SOURCE'
CONFIG_SOURCE_RECORD_TYPE_DEVOPS_CONFIG_SOURCE = 'DEVOPS_CONFIG_SOURCE'
CONFIG_SOURCE_RECORD_TYPE_GIT_CONFIG_SOURCE = 'GIT_CONFIG_SOURCE'
CONFIG_SOURCE_RECORD_TYPE_OBJECT_STORAGE_CONFIG_SOURCE = 'OBJECT_STORAGE_CONFIG_SOURCE'
CONFIG_SOURCE_RECORD_TYPE_ZIP_UPLOAD = '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.
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
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
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
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.

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