Show / Hide Table of Contents

Class ExternalScmConfiguration

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.

Inheritance
object
ScmConfiguration
ExternalScmConfiguration
Inherited Members
ScmConfiguration.Branch
ScmConfiguration.BuildFileLocation
ScmConfiguration.IsAutomergeEnabled
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.AdmService.Models
Assembly: OCI.DotNetSDK.Adm.dll
Syntax
public class ExternalScmConfiguration : ScmConfiguration

Properties

ExternalScmType

Declaration
[Required(ErrorMessage = "ExternalScmType is required.")]
[JsonProperty(PropertyName = "externalScmType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ExternalScmConfiguration.ExternalScmTypeEnum? ExternalScmType { get; set; }
Property Value
Type Description
ExternalScmConfiguration.ExternalScmTypeEnum?

The type of External Source Code Management.

Remarks

Required

PatSecretId

Declaration
[Required(ErrorMessage = "PatSecretId is required.")]
[JsonProperty(PropertyName = "patSecretId")]
public string PatSecretId { get; set; }
Property Value
Type Description
string

The Oracle Cloud Identifier (OCID) of the Private Access Token (PAT) Secret. The secret provides the credentials necessary to authenticate against the SCM.

Remarks

Required

RepositoryUrl

Declaration
[Required(ErrorMessage = "RepositoryUrl is required.")]
[JsonProperty(PropertyName = "repositoryUrl")]
public string RepositoryUrl { get; set; }
Property Value
Type Description
string

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]

Remarks

Required

Username

Declaration
[JsonProperty(PropertyName = "username")]
public string Username { get; set; }
Property Value
Type Description
string

The username for the SCM (to perform operations such as cloning or pushing via HTTP).

In this article
Back to top