Class: Google::Apis::CloudbuildV2::BitbucketCloudConfig

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 Cloud.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BitbucketCloudConfig

Returns a new instance of BitbucketCloudConfig.



263
264
265
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 263

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



243
244
245
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 243

def authorizer_credential
  @authorizer_credential
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



249
250
251
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 249

def read_authorizer_credential
  @read_authorizer_credential
end

#webhook_secret_secret_versionString

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

Returns:

  • (String)


255
256
257
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 255

def webhook_secret_secret_version
  @webhook_secret_secret_version
end

#workspaceString

Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform. Corresponds to the JSON property workspace

Returns:

  • (String)


261
262
263
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 261

def workspace
  @workspace
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



268
269
270
271
272
273
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 268

def update!(**args)
  @authorizer_credential = args[:authorizer_credential] if args.key?(:authorizer_credential)
  @read_authorizer_credential = args[:read_authorizer_credential] if args.key?(:read_authorizer_credential)
  @webhook_secret_secret_version = args[:webhook_secret_secret_version] if args.key?(:webhook_secret_secret_version)
  @workspace = args[:workspace] if args.key?(:workspace)
end