CreateCompartmentConfigSourceDetails

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

Bases: oci.resource_manager.models.create_config_source_details.CreateConfigSourceDetails

Creation details for a configuration source based on the specified compartment.

Methods

__init__(**kwargs) Initializes a new CreateCompartmentConfigSourceDetails 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.

Attributes

compartment_id [Required] Gets the compartment_id of this CreateCompartmentConfigSourceDetails.
config_source_type [Required] Gets the config_source_type of this CreateConfigSourceDetails.
region [Required] Gets the region of this CreateCompartmentConfigSourceDetails.
services_to_discover Gets the services_to_discover of this CreateCompartmentConfigSourceDetails.
working_directory Gets the working_directory of this CreateConfigSourceDetails.
__init__(**kwargs)

Initializes a new CreateCompartmentConfigSourceDetails object with values from keyword arguments. The default value of the config_source_type attribute of this class is COMPARTMENT_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 CreateCompartmentConfigSourceDetails.
  • working_directory (str) – The value to assign to the working_directory property of this CreateCompartmentConfigSourceDetails.
  • compartment_id (str) – The value to assign to the compartment_id property of this CreateCompartmentConfigSourceDetails.
  • region (str) – The value to assign to the region property of this CreateCompartmentConfigSourceDetails.
  • services_to_discover (list[str]) – The value to assign to the services_to_discover property of this CreateCompartmentConfigSourceDetails.
compartment_id

[Required] Gets the compartment_id of this CreateCompartmentConfigSourceDetails. The OCID of the compartment to use for creating the stack. The new stack will include definitions for supported resource types in scope of the specified compartment OCID (tenancy level for root compartment, compartment level otherwise).

Returns:The compartment_id of this CreateCompartmentConfigSourceDetails.
Return type:str
config_source_type

[Required] Gets the config_source_type of this CreateConfigSourceDetails. Specifies the configSourceType for uploading the Terraform configuration.

Returns:The config_source_type of this CreateConfigSourceDetails.
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.

region

[Required] Gets the region of this CreateCompartmentConfigSourceDetails. The region to use for creating the stack. The new stack will include definitions for supported resource types in this region.

Returns:The region of this CreateCompartmentConfigSourceDetails.
Return type:str
services_to_discover

Gets the services_to_discover of this CreateCompartmentConfigSourceDetails. Filter for services to use with Resource Discovery. For example, “database” limits resource discovery to resource types within the Database service. The specified services must be in scope of the given compartment OCID (tenancy level for root compartment, compartment level otherwise). If not specified, then all services at the scope of the given compartment OCID are used.

Returns:The services_to_discover of this CreateCompartmentConfigSourceDetails.
Return type:list[str]
working_directory

Gets the working_directory of this CreateConfigSourceDetails. 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 CreateConfigSourceDetails.
Return type:str