Class ExternalScmConfiguration
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.adm.model.ScmConfiguration
-
- com.oracle.bmc.adm.model.ExternalScmConfiguration
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20220421") public final class ExternalScmConfiguration extends ScmConfiguration
An external SCM configuration extends a SCM Configuration with necessary data to reach and use the Source Code Management tool/platform used by a Remediation Recipe.An external SCM in ADM refers to GitHub, or GitLab.
Note: Objects should always be created or deserialized using theExternalScmConfiguration.Builder
. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theExternalScmConfiguration.Builder
, which maintain a set of all explicitly set fields calledExternalScmConfiguration.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExternalScmConfiguration.Builder
static class
ExternalScmConfiguration.ExternalScmType
The type of External Source Code Management.-
Nested classes/interfaces inherited from class com.oracle.bmc.adm.model.ScmConfiguration
ScmConfiguration.ScmType
-
-
Constructor Summary
Constructors Constructor Description ExternalScmConfiguration(String branch, String buildFileLocation, Boolean isAutomergeEnabled, ExternalScmConfiguration.ExternalScmType externalScmType, String repositoryUrl, String username, String patSecretId)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExternalScmConfiguration.Builder
builder()
Create a new builder.boolean
equals(Object o)
ExternalScmConfiguration.ExternalScmType
getExternalScmType()
The type of External Source Code Management.String
getPatSecretId()
The Oracle Cloud Identifier (OCID) of the Private Access Token (PAT) Secret.String
getRepositoryUrl()
The repository URL for the SCM.String
getUsername()
The username for the SCM (to perform operations such as cloning or pushing via HTTP).int
hashCode()
ExternalScmConfiguration.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.adm.model.ScmConfiguration
getBranch, getBuildFileLocation, getIsAutomergeEnabled
-
-
-
-
Constructor Detail
-
ExternalScmConfiguration
@Deprecated public ExternalScmConfiguration(String branch, String buildFileLocation, Boolean isAutomergeEnabled, ExternalScmConfiguration.ExternalScmType externalScmType, String repositoryUrl, String username, String patSecretId)
Deprecated.
-
-
Method Detail
-
builder
public static ExternalScmConfiguration.Builder builder()
Create a new builder.
-
toBuilder
public ExternalScmConfiguration.Builder toBuilder()
-
getExternalScmType
public ExternalScmConfiguration.ExternalScmType getExternalScmType()
The type of External Source Code Management.- Returns:
- the value
-
getRepositoryUrl
public String getRepositoryUrl()
The repository URL for the SCM.For Non-Enterprise GitHub the expected format is https://github.com/[owner]/[repoName] For Enterprise GitHub the expected format is http(s)://[hostname]/api/v3/repos/[owner]/[repoName] For GitLab the expected format is https://gitlab.com/[groupName]/[repoName]
- Returns:
- the value
-
getUsername
public String getUsername()
The username for the SCM (to perform operations such as cloning or pushing via HTTP).- Returns:
- the value
-
getPatSecretId
public String getPatSecretId()
The Oracle Cloud Identifier (OCID) of the Private Access Token (PAT) Secret.The secret provides the credentials necessary to authenticate against the SCM.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classScmConfiguration
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classScmConfiguration
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classScmConfiguration
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classScmConfiguration
-
-