CreateDevOpsConfigSourceDetails

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

Bases: CreateConfigSourceDetails

Creation details for a DevOps configuration source.

Methods:

__init__(**kwargs)

Initializes a new CreateDevOpsConfigSourceDetails 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:

branch_name

Gets the branch_name of this CreateDevOpsConfigSourceDetails.

config_source_type

[Required] Gets the config_source_type of this CreateConfigSourceDetails.

project_id

[Required] Gets the project_id of this CreateDevOpsConfigSourceDetails.

repository_id

[Required] Gets the repository_id of this CreateDevOpsConfigSourceDetails.

working_directory

Gets the working_directory of this CreateConfigSourceDetails.

__init__(**kwargs)

Initializes a new CreateDevOpsConfigSourceDetails object with values from keyword arguments. The default value of the config_source_type attribute of this class is DEVOPS_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 CreateDevOpsConfigSourceDetails.

  • working_directory (str) – The value to assign to the working_directory property of this CreateDevOpsConfigSourceDetails.

  • project_id (str) – The value to assign to the project_id property of this CreateDevOpsConfigSourceDetails.

  • repository_id (str) – The value to assign to the repository_id property of this CreateDevOpsConfigSourceDetails.

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

property branch_name

Gets the branch_name of this CreateDevOpsConfigSourceDetails. The name of the branch that contains the Terraform configuration.

Returns

The branch_name of this CreateDevOpsConfigSourceDetails.

Return type

str

property 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.

property project_id

[Required] Gets the project_id of this CreateDevOpsConfigSourceDetails. The OCID of the Project.

Returns

The project_id of this CreateDevOpsConfigSourceDetails.

Return type

str

property repository_id

[Required] Gets the repository_id of this CreateDevOpsConfigSourceDetails. The OCID of the Repository.

Returns

The repository_id of this CreateDevOpsConfigSourceDetails.

Return type

str

property 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