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 ScmConfigurationAn 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 classExternalScmConfiguration.Builderstatic classExternalScmConfiguration.ExternalScmTypeThe 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.Builderbuilder()Create a new builder.booleanequals(Object o)ExternalScmConfiguration.ExternalScmTypegetExternalScmType()The type of External Source Code Management.StringgetPatSecretId()The Oracle Cloud Identifier (OCID) of the Private Access Token (PAT) Secret.StringgetRepositoryUrl()The repository URL for the SCM.StringgetUsername()The username for the SCM (to perform operations such as cloning or pushing via HTTP).inthashCode()ExternalScmConfiguration.BuildertoBuilder()StringtoString()StringtoString(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:
toStringin classScmConfiguration
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toStringin classScmConfiguration- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classScmConfiguration
-
hashCode
public int hashCode()
- Overrides:
hashCodein classScmConfiguration
-
-