BitbucketServerConfigSource

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

Bases: oci.resource_manager.models.config_source.ConfigSource

Metadata about the Bitbucket Server configuration source.

Attributes

CONFIG_SOURCE_TYPE_BITBUCKET_CLOUD_CONFIG_SOURCE str(object=’’) -> str
CONFIG_SOURCE_TYPE_BITBUCKET_SERVER_CONFIG_SOURCE str(object=’’) -> str
CONFIG_SOURCE_TYPE_COMPARTMENT_CONFIG_SOURCE str(object=’’) -> str
CONFIG_SOURCE_TYPE_DEVOPS_CONFIG_SOURCE str(object=’’) -> str
CONFIG_SOURCE_TYPE_GIT_CONFIG_SOURCE str(object=’’) -> str
CONFIG_SOURCE_TYPE_OBJECT_STORAGE_CONFIG_SOURCE str(object=’’) -> str
CONFIG_SOURCE_TYPE_ZIP_UPLOAD str(object=’’) -> str
branch_name Gets the branch_name of this BitbucketServerConfigSource.
clone_url Gets the clone_url of this BitbucketServerConfigSource.
config_source_type [Required] Gets the config_source_type of this ConfigSource.
configuration_source_provider_id [Required] Gets the configuration_source_provider_id of this BitbucketServerConfigSource.
project_id Gets the project_id of this BitbucketServerConfigSource.
repository_id Gets the repository_id of this BitbucketServerConfigSource.
repository_url [Required] Gets the repository_url of this BitbucketServerConfigSource.
working_directory Gets the working_directory of this ConfigSource.

Methods

__init__(**kwargs) Initializes a new BitbucketServerConfigSource 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_TYPE_BITBUCKET_CLOUD_CONFIG_SOURCE = 'BITBUCKET_CLOUD_CONFIG_SOURCE'
CONFIG_SOURCE_TYPE_BITBUCKET_SERVER_CONFIG_SOURCE = 'BITBUCKET_SERVER_CONFIG_SOURCE'
CONFIG_SOURCE_TYPE_COMPARTMENT_CONFIG_SOURCE = 'COMPARTMENT_CONFIG_SOURCE'
CONFIG_SOURCE_TYPE_DEVOPS_CONFIG_SOURCE = 'DEVOPS_CONFIG_SOURCE'
CONFIG_SOURCE_TYPE_GIT_CONFIG_SOURCE = 'GIT_CONFIG_SOURCE'
CONFIG_SOURCE_TYPE_OBJECT_STORAGE_CONFIG_SOURCE = 'OBJECT_STORAGE_CONFIG_SOURCE'
CONFIG_SOURCE_TYPE_ZIP_UPLOAD = 'ZIP_UPLOAD'
__init__(**kwargs)

Initializes a new BitbucketServerConfigSource object with values from keyword arguments. The default value of the config_source_type attribute of this class is BITBUCKET_SERVER_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_type (str) – The value to assign to the config_source_type property of this BitbucketServerConfigSource. 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”
  • working_directory (str) – The value to assign to the working_directory property of this BitbucketServerConfigSource.
  • configuration_source_provider_id (str) – The value to assign to the configuration_source_provider_id property of this BitbucketServerConfigSource.
  • repository_url (str) – The value to assign to the repository_url property of this BitbucketServerConfigSource.
  • branch_name (str) – The value to assign to the branch_name property of this BitbucketServerConfigSource.
  • project_id (str) – The value to assign to the project_id property of this BitbucketServerConfigSource.
  • repository_id (str) – The value to assign to the repository_id property of this BitbucketServerConfigSource.
  • clone_url (str) – The value to assign to the clone_url property of this BitbucketServerConfigSource.
branch_name

Gets the branch_name of this BitbucketServerConfigSource. The name of the branch in the Bitbucket Server repository for the configuration source.

Returns:The branch_name of this BitbucketServerConfigSource.
Return type:str
clone_url

Gets the clone_url of this BitbucketServerConfigSource. The clone URL of Bitbucket Server configuration source.

Returns:The clone_url of this BitbucketServerConfigSource.
Return type:str
config_source_type

[Required] Gets the config_source_type of this ConfigSource. 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_type of this ConfigSource.
Return type:str
configuration_source_provider_id

[Required] Gets the configuration_source_provider_id of this BitbucketServerConfigSource. The OCID of the Bitbucket Server configuration source.

Returns:The configuration_source_provider_id of this BitbucketServerConfigSource.
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.

project_id

Gets the project_id of this BitbucketServerConfigSource. Unique identifier for a Bitbucket Server project.

Returns:The project_id of this BitbucketServerConfigSource.
Return type:str
repository_id

Gets the repository_id of this BitbucketServerConfigSource. Bitbucket Server repository identifier, usually identified as <repository>.git.

Returns:The repository_id of this BitbucketServerConfigSource.
Return type:str
repository_url

[Required] Gets the repository_url of this BitbucketServerConfigSource. The URL of the Bitbucket Server repository for the configuration source.

Returns:The repository_url of this BitbucketServerConfigSource.
Return type:str
working_directory

Gets the working_directory of this ConfigSource. File path to the directory to use for running Terraform. If not specified, the root directory is used. Required when using a zip Terraform configuration (configSourceType value of ZIP_UPLOAD) that contains folders. Ignored for the configSourceType value of COMPARTMENT_CONFIG_SOURCE. For more information about required and recommended file structure, see File Structure (Terraform Configurations for Resource Manager).

Returns:The working_directory of this ConfigSource.
Return type:str