Cloud Build v2 API - Class GitLabConfig (1.2.0)

public sealed class GitLabConfig : IMessage<GitLabConfig>, IEquatable<GitLabConfig>, IDeepCloneable<GitLabConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Build v2 API class GitLabConfig.

Configuration for connections to gitlab.com or an instance of GitLab Enterprise.

Inheritance

object > GitLabConfig

Namespace

Google.Cloud.CloudBuild.V2

Assembly

Google.Cloud.CloudBuild.V2.dll

Constructors

GitLabConfig()

public GitLabConfig()

GitLabConfig(GitLabConfig)

public GitLabConfig(GitLabConfig other)
Parameter
NameDescription
otherGitLabConfig

Properties

AuthorizerCredential

public UserCredential AuthorizerCredential { get; set; }

Required. A GitLab personal access token with the api scope access.

Property Value
TypeDescription
UserCredential

HostUri

public string HostUri { get; set; }

The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.

Property Value
TypeDescription
string

ReadAuthorizerCredential

public UserCredential ReadAuthorizerCredential { get; set; }

Required. A GitLab personal access token with the minimum read_api scope access.

Property Value
TypeDescription
UserCredential

ServerVersion

public string ServerVersion { get; set; }

Output only. Version of the GitLab Enterprise server running on the host_uri.

Property Value
TypeDescription
string

ServiceDirectoryConfig

public ServiceDirectoryConfig ServiceDirectoryConfig { get; set; }

Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet.

Property Value
TypeDescription
ServiceDirectoryConfig

SslCa

public string SslCa { get; set; }

SSL certificate to use for requests to GitLab Enterprise.

Property Value
TypeDescription
string

WebhookSecretSecretVersion

public string WebhookSecretSecretVersion { get; set; }

Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as projects/*/secrets/*/versions/*.

Property Value
TypeDescription
string

WebhookSecretSecretVersionAsSecretVersionName

public SecretVersionName WebhookSecretSecretVersionAsSecretVersionName { get; set; }

SecretVersionName-typed view over the WebhookSecretSecretVersion resource name property.

Property Value
TypeDescription
SecretVersionName