OciCodeRepositoryConfiguration

class oci.adm.models.OciCodeRepositoryConfiguration(**kwargs)

Bases: oci.adm.models.scm_configuration.ScmConfiguration

An OCI Code repository configuration extends a SCM Configuration with necessary data to reach and use the OCI DevOps Code Repository.

Attributes

SCM_TYPE_EXTERNAL_SCM str(object=’’) -> str
SCM_TYPE_OCI_CODE_REPOSITORY str(object=’’) -> str
branch [Required] Gets the branch of this ScmConfiguration.
build_file_location Gets the build_file_location of this ScmConfiguration.
is_automerge_enabled [Required] Gets the is_automerge_enabled of this ScmConfiguration.
oci_code_repository_id [Required] Gets the oci_code_repository_id of this OciCodeRepositoryConfiguration.
scm_type [Required] Gets the scm_type of this ScmConfiguration.

Methods

__init__(**kwargs) Initializes a new OciCodeRepositoryConfiguration 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.
SCM_TYPE_EXTERNAL_SCM = 'EXTERNAL_SCM'
SCM_TYPE_OCI_CODE_REPOSITORY = 'OCI_CODE_REPOSITORY'
__init__(**kwargs)

Initializes a new OciCodeRepositoryConfiguration object with values from keyword arguments. The default value of the scm_type attribute of this class is OCI_CODE_REPOSITORY and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • scm_type (str) – The value to assign to the scm_type property of this OciCodeRepositoryConfiguration. Allowed values for this property are: “OCI_CODE_REPOSITORY”, “EXTERNAL_SCM”
  • branch (str) – The value to assign to the branch property of this OciCodeRepositoryConfiguration.
  • build_file_location (str) – The value to assign to the build_file_location property of this OciCodeRepositoryConfiguration.
  • is_automerge_enabled (bool) – The value to assign to the is_automerge_enabled property of this OciCodeRepositoryConfiguration.
  • oci_code_repository_id (str) – The value to assign to the oci_code_repository_id property of this OciCodeRepositoryConfiguration.
branch

[Required] Gets the branch of this ScmConfiguration. The branch used by ADM to patch vulnerabilities.

Returns:The branch of this ScmConfiguration.
Return type:str
build_file_location

Gets the build_file_location of this ScmConfiguration. The location of the build file relative to the root of the repository. Only Maven build files (POM) are currently supported. If this property is not specified, ADM will use the build file located at the root of the repository.

Returns:The build_file_location of this ScmConfiguration.
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.

is_automerge_enabled

[Required] Gets the is_automerge_enabled of this ScmConfiguration. If true, the Pull Request (PR) will be merged after the verify stage completes successfully If false, the PR with the proposed changes must be reviewed and manually merged.

Returns:The is_automerge_enabled of this ScmConfiguration.
Return type:bool
oci_code_repository_id

[Required] Gets the oci_code_repository_id of this OciCodeRepositoryConfiguration. The Oracle Cloud Identifier (OCID) of the OCI DevOps repository.

Returns:The oci_code_repository_id of this OciCodeRepositoryConfiguration.
Return type:str
scm_type

[Required] Gets the scm_type of this ScmConfiguration. The type of Source Code Management.

Allowed values for this property are: “OCI_CODE_REPOSITORY”, “EXTERNAL_SCM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The scm_type of this ScmConfiguration.
Return type:str