Class: Google::Apis::CloudbuildV1::BitbucketServerConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/representations.rb

Overview

BitbucketServerConfig represents the configuration for a Bitbucket Server.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BitbucketServerConfig

Returns a new instance of BitbucketServerConfig.



438
439
440
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 438

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

Instance Attribute Details

#api_keyString

Required. Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig. Corresponds to the JSON property apiKey

Returns:

  • (String)


379
380
381
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 379

def api_key
  @api_key
end

#connected_repositoriesArray<Google::Apis::CloudbuildV1::BitbucketServerRepositoryId>

Output only. Connected Bitbucket Server repositories for this config. Corresponds to the JSON property connectedRepositories



384
385
386
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 384

def connected_repositories
  @connected_repositories
end

#create_timeString

Time when the config was created. Corresponds to the JSON property createTime

Returns:

  • (String)


389
390
391
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 389

def create_time
  @create_time
end

#host_uriString

Required. Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig. Corresponds to the JSON property hostUri

Returns:

  • (String)


396
397
398
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 396

def host_uri
  @host_uri
end

#nameString

The resource name for the config. Corresponds to the JSON property name

Returns:

  • (String)


401
402
403
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 401

def name
  @name
end

#peered_networkString

Optional. The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format projects/project/global/networks/ network`, whereprojectis a project number or id andnetworkis the name of a VPC network in the project. Corresponds to the JSON propertypeeredNetwork`

Returns:

  • (String)


413
414
415
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 413

def peered_network
  @peered_network
end

#secretsGoogle::Apis::CloudbuildV1::BitbucketServerSecrets

BitbucketServerSecrets represents the secrets in Secret Manager for a Bitbucket Server. Corresponds to the JSON property secrets



419
420
421
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 419

def secrets
  @secrets
end

#ssl_caString

Optional. SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt. Corresponds to the JSON property sslCa

Returns:

  • (String)


425
426
427
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 425

def ssl_ca
  @ssl_ca
end

#usernameString

Username of the account Cloud Build will use on Bitbucket Server. Corresponds to the JSON property username

Returns:

  • (String)


430
431
432
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 430

def username
  @username
end

#webhook_keyString

Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config. Corresponds to the JSON property webhookKey

Returns:

  • (String)


436
437
438
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 436

def webhook_key
  @webhook_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



443
444
445
446
447
448
449
450
451
452
453
454
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 443

def update!(**args)
  @api_key = args[:api_key] if args.key?(:api_key)
  @connected_repositories = args[:connected_repositories] if args.key?(:connected_repositories)
  @create_time = args[:create_time] if args.key?(:create_time)
  @host_uri = args[:host_uri] if args.key?(:host_uri)
  @name = args[:name] if args.key?(:name)
  @peered_network = args[:peered_network] if args.key?(:peered_network)
  @secrets = args[:secrets] if args.key?(:secrets)
  @ssl_ca = args[:ssl_ca] if args.key?(:ssl_ca)
  @username = args[:username] if args.key?(:username)
  @webhook_key = args[:webhook_key] if args.key?(:webhook_key)
end