Reference documentation and code samples for the Cloud Build V2 API class Google::Cloud::Build::V2::GitLabConfig.
Configuration for connections to gitlab.com or an instance of GitLab Enterprise.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#authorizer_credential
def authorizer_credential() -> ::Google::Cloud::Build::V2::UserCredential
Returns
-
(::Google::Cloud::Build::V2::UserCredential) — Required. A GitLab personal access token with the
api
scope access.
#authorizer_credential=
def authorizer_credential=(value) -> ::Google::Cloud::Build::V2::UserCredential
Parameter
-
value (::Google::Cloud::Build::V2::UserCredential) — Required. A GitLab personal access token with the
api
scope access.
Returns
-
(::Google::Cloud::Build::V2::UserCredential) — Required. A GitLab personal access token with the
api
scope access.
#host_uri
def host_uri() -> ::String
Returns
- (::String) — The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.
#host_uri=
def host_uri=(value) -> ::String
Parameter
- value (::String) — The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.
Returns
- (::String) — The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.
#read_authorizer_credential
def read_authorizer_credential() -> ::Google::Cloud::Build::V2::UserCredential
Returns
-
(::Google::Cloud::Build::V2::UserCredential) — Required. A GitLab personal access token with the minimum
read_api
scope access.
#read_authorizer_credential=
def read_authorizer_credential=(value) -> ::Google::Cloud::Build::V2::UserCredential
Parameter
-
value (::Google::Cloud::Build::V2::UserCredential) — Required. A GitLab personal access token with the minimum
read_api
scope access.
Returns
-
(::Google::Cloud::Build::V2::UserCredential) — Required. A GitLab personal access token with the minimum
read_api
scope access.
#server_version
def server_version() -> ::String
Returns
-
(::String) — Output only. Version of the GitLab Enterprise server running on the
host_uri
.
#service_directory_config
def service_directory_config() -> ::Google::Cloud::Build::V2::ServiceDirectoryConfig
Returns
- (::Google::Cloud::Build::V2::ServiceDirectoryConfig) — 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.
#service_directory_config=
def service_directory_config=(value) -> ::Google::Cloud::Build::V2::ServiceDirectoryConfig
Parameter
- value (::Google::Cloud::Build::V2::ServiceDirectoryConfig) — 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.
Returns
- (::Google::Cloud::Build::V2::ServiceDirectoryConfig) — 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.
#ssl_ca
def ssl_ca() -> ::String
Returns
- (::String) — SSL certificate to use for requests to GitLab Enterprise.
#ssl_ca=
def ssl_ca=(value) -> ::String
Parameter
- value (::String) — SSL certificate to use for requests to GitLab Enterprise.
Returns
- (::String) — SSL certificate to use for requests to GitLab Enterprise.
#webhook_secret_secret_version
def webhook_secret_secret_version() -> ::String
Returns
-
(::String) — Required. Immutable. SecretManager resource containing the webhook secret
of a GitLab Enterprise project, formatted as
projects/*/secrets/*/versions/*
.
#webhook_secret_secret_version=
def webhook_secret_secret_version=(value) -> ::String
Parameter
-
value (::String) — Required. Immutable. SecretManager resource containing the webhook secret
of a GitLab Enterprise project, formatted as
projects/*/secrets/*/versions/*
.
Returns
-
(::String) — Required. Immutable. SecretManager resource containing the webhook secret
of a GitLab Enterprise project, formatted as
projects/*/secrets/*/versions/*
.