Class: Google::Apis::CloudbuildV2::BitbucketDataCenterConfig

Inherits:
Object
  • Object
show all
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 Bitbucket Data Center.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BitbucketDataCenterConfig

Returns a new instance of BitbucketDataCenterConfig.



320
321
322
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 320

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#authorizer_credentialGoogle::Apis::CloudbuildV2::UserCredential

Represents a personal access token that authorized the Connection, and associated metadata. Corresponds to the JSON property authorizerCredential



284
285
286
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 284

def authorizer_credential
  @authorizer_credential
end

#host_uriString

Required. The URI of the Bitbucket Data Center instance or cluster this connection is for. Corresponds to the JSON property hostUri

Returns:

  • (String)


290
291
292
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 290

def host_uri
  @host_uri
end

#read_authorizer_credentialGoogle::Apis::CloudbuildV2::UserCredential

Represents a personal access token that authorized the Connection, and associated metadata. Corresponds to the JSON property readAuthorizerCredential



296
297
298
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 296

def read_authorizer_credential
  @read_authorizer_credential
end

#server_versionString

Output only. Version of the Bitbucket Data Center running on the host_uri. Corresponds to the JSON property serverVersion

Returns:

  • (String)


301
302
303
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 301

def server_version
  @server_version
end

#service_directory_configGoogle::Apis::CloudbuildV2::GoogleDevtoolsCloudbuildV2ServiceDirectoryConfig

ServiceDirectoryConfig represents Service Directory configuration for a connection. Corresponds to the JSON property serviceDirectoryConfig



307
308
309
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 307

def service_directory_config
  @service_directory_config
end

#ssl_caString

Optional. SSL certificate to use for requests to the Bitbucket Data Center. Corresponds to the JSON property sslCa

Returns:

  • (String)


312
313
314
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 312

def ssl_ca
  @ssl_ca
end

#webhook_secret_secret_versionString

Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as projects/*/secrets/*/versions/*. Corresponds to the JSON property webhookSecretSecretVersion

Returns:

  • (String)


318
319
320
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 318

def webhook_secret_secret_version
  @webhook_secret_secret_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



325
326
327
328
329
330
331
332
333
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 325

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