ObjectStorageConfigSource

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

Bases: oci.resource_manager.models.config_source.ConfigSource

Metadata about the Object Storage configuration source.

Attributes

CONFIG_SOURCE_TYPE_COMPARTMENT_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
bucket_name [Required] Gets the bucket_name of this ObjectStorageConfigSource.
config_source_type [Required] Gets the config_source_type of this ConfigSource.
namespace [Required] Gets the namespace of this ObjectStorageConfigSource.
region [Required] Gets the region of this ObjectStorageConfigSource.
working_directory Gets the working_directory of this ConfigSource.

Methods

__init__(**kwargs) Initializes a new ObjectStorageConfigSource 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_COMPARTMENT_CONFIG_SOURCE = 'COMPARTMENT_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 ObjectStorageConfigSource object with values from keyword arguments. The default value of the config_source_type attribute of this class is OBJECT_STORAGE_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 ObjectStorageConfigSource. Allowed values for this property are: “ZIP_UPLOAD”, “GIT_CONFIG_SOURCE”, “COMPARTMENT_CONFIG_SOURCE”, “OBJECT_STORAGE_CONFIG_SOURCE”
  • working_directory (str) – The value to assign to the working_directory property of this ObjectStorageConfigSource.
  • region (str) – The value to assign to the region property of this ObjectStorageConfigSource.
  • namespace (str) – The value to assign to the namespace property of this ObjectStorageConfigSource.
  • bucket_name (str) – The value to assign to the bucket_name property of this ObjectStorageConfigSource.
bucket_name

[Required] Gets the bucket_name of this ObjectStorageConfigSource. The name of the bucket that contains the Terraform configuration files. Maximum file size (applies to each file in the bucket): 100 MB. (In a bucket, a file is an object.)

Returns:The bucket_name of this ObjectStorageConfigSource.
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: “ZIP_UPLOAD”, “GIT_CONFIG_SOURCE”, “COMPARTMENT_CONFIG_SOURCE”, “OBJECT_STORAGE_CONFIG_SOURCE”, ‘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
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.

namespace

[Required] Gets the namespace of this ObjectStorageConfigSource. The Object Storage namespace that contains the bucket.

Returns:The namespace of this ObjectStorageConfigSource.
Return type:str
region

[Required] Gets the region of this ObjectStorageConfigSource. The name of the bucket’s region. Example: PHX

Returns:The region of this ObjectStorageConfigSource.
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. This parameter is ignored for the configSourceType value of COMPARTMENT_CONFIG_SOURCE.

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