Class: Google::Apis::CloudbuildV2::GoogleDevtoolsCloudbuildV2GitLabConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::GoogleDevtoolsCloudbuildV2GitLabConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/representations.rb
Overview
Configuration for connections to gitlab.com or an instance of GitLab Enterprise.
Instance Attribute Summary collapse
-
#authorizer_credential ⇒ Google::Apis::CloudbuildV2::UserCredential
Represents a personal access token that authorized the Connection, and associated metadata.
-
#host_uri ⇒ String
The URI of the GitLab Enterprise host this connection is for.
-
#read_authorizer_credential ⇒ Google::Apis::CloudbuildV2::UserCredential
Represents a personal access token that authorized the Connection, and associated metadata.
-
#server_version ⇒ String
Output only.
-
#service_directory_config ⇒ Google::Apis::CloudbuildV2::GoogleDevtoolsCloudbuildV2ServiceDirectoryConfig
ServiceDirectoryConfig represents Service Directory configuration for a connection.
-
#ssl_ca ⇒ String
SSL certificate to use for requests to GitLab Enterprise.
-
#webhook_secret_secret_version ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV2GitLabConfig
constructor
A new instance of GoogleDevtoolsCloudbuildV2GitLabConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV2GitLabConfig
Returns a new instance of GoogleDevtoolsCloudbuildV2GitLabConfig.
914 915 916 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 914 def initialize(**args) update!(**args) end |
Instance Attribute Details
#authorizer_credential ⇒ Google::Apis::CloudbuildV2::UserCredential
Represents a personal access token that authorized the Connection, and
associated metadata.
Corresponds to the JSON property authorizerCredential
878 879 880 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 878 def @authorizer_credential end |
#host_uri ⇒ String
The URI of the GitLab Enterprise host this connection is for. If not specified,
the default value is https://gitlab.com.
Corresponds to the JSON property hostUri
884 885 886 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 884 def host_uri @host_uri end |
#read_authorizer_credential ⇒ Google::Apis::CloudbuildV2::UserCredential
Represents a personal access token that authorized the Connection, and
associated metadata.
Corresponds to the JSON property readAuthorizerCredential
890 891 892 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 890 def @read_authorizer_credential end |
#server_version ⇒ String
Output only. Version of the GitLab Enterprise server running on the host_uri.
Corresponds to the JSON property serverVersion
895 896 897 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 895 def server_version @server_version end |
#service_directory_config ⇒ Google::Apis::CloudbuildV2::GoogleDevtoolsCloudbuildV2ServiceDirectoryConfig
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
Corresponds to the JSON property serviceDirectoryConfig
901 902 903 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 901 def service_directory_config @service_directory_config end |
#ssl_ca ⇒ String
SSL certificate to use for requests to GitLab Enterprise.
Corresponds to the JSON property sslCa
906 907 908 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 906 def ssl_ca @ssl_ca end |
#webhook_secret_secret_version ⇒ String
Required. Immutable. SecretManager resource containing the webhook secret of a
GitLab Enterprise project, formatted as projects/*/secrets/*/versions/*.
Corresponds to the JSON property webhookSecretSecretVersion
912 913 914 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 912 def webhook_secret_secret_version @webhook_secret_secret_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
919 920 921 922 923 924 925 926 927 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 919 def update!(**args) @authorizer_credential = args[:authorizer_credential] if args.key?(:authorizer_credential) @host_uri = args[:host_uri] if args.key?(:host_uri) @read_authorizer_credential = args[:read_authorizer_credential] if args.key?(:read_authorizer_credential) @server_version = args[:server_version] if args.key?(:server_version) @service_directory_config = args[:service_directory_config] if args.key?(:service_directory_config) @ssl_ca = args[:ssl_ca] if args.key?(:ssl_ca) @webhook_secret_secret_version = args[:webhook_secret_secret_version] if args.key?(:webhook_secret_secret_version) end |