OciCodeRepositoryConfiguration¶
- class oci.adm.models.OciCodeRepositoryConfiguration(**kwargs)¶
Bases:
ScmConfigurationAn OCI Code repository configuration extends a SCM Configuration with necessary data to reach and use the OCI DevOps Code Repository.
Attributes:
A constant which can be used with the scm_type property of a ScmConfiguration.
A constant which can be used with the scm_type property of a ScmConfiguration.
[Required] Gets the branch of this ScmConfiguration.
Gets the build_file_location of this ScmConfiguration.
[Required] Gets the is_automerge_enabled of this ScmConfiguration.
[Required] Gets the oci_code_repository_id of this OciCodeRepositoryConfiguration.
[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'¶
A constant which can be used with the scm_type property of a ScmConfiguration. This constant has a value of “EXTERNAL_SCM”
- SCM_TYPE_OCI_CODE_REPOSITORY = 'OCI_CODE_REPOSITORY'¶
A constant which can be used with the scm_type property of a ScmConfiguration. This constant has a value of “OCI_CODE_REPOSITORY”
- __init__(**kwargs)¶
Initializes a new OciCodeRepositoryConfiguration object with values from keyword arguments. The default value of the
scm_typeattribute of this class isOCI_CODE_REPOSITORYand 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.
- property 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
- property 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.
- property 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
- property 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
- property 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