@@ -232,6 +232,107 @@ def update!(**args)
232232 end
233233 end
234234
235+ # Configuration for connections to Bitbucket Cloud.
236+ class BitbucketCloudConfig
237+ include Google ::Apis ::Core ::Hashable
238+
239+ # Represents a personal access token that authorized the Connection, and
240+ # associated metadata.
241+ # Corresponds to the JSON property `authorizerCredential`
242+ # @return [Google::Apis::CloudbuildV2::UserCredential]
243+ attr_accessor :authorizer_credential
244+
245+ # Represents a personal access token that authorized the Connection, and
246+ # associated metadata.
247+ # Corresponds to the JSON property `readAuthorizerCredential`
248+ # @return [Google::Apis::CloudbuildV2::UserCredential]
249+ attr_accessor :read_authorizer_credential
250+
251+ # Required. SecretManager resource containing the webhook secret used to verify
252+ # webhook events, formatted as `projects/*/secrets/*/versions/*`.
253+ # Corresponds to the JSON property `webhookSecretSecretVersion`
254+ # @return [String]
255+ attr_accessor :webhook_secret_secret_version
256+
257+ # Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud
258+ # Platform.
259+ # Corresponds to the JSON property `workspace`
260+ # @return [String]
261+ attr_accessor :workspace
262+
263+ def initialize ( **args )
264+ update! ( **args )
265+ end
266+
267+ # Update properties of this object
268+ def update! ( **args )
269+ @authorizer_credential = args [ :authorizer_credential ] if args . key? ( :authorizer_credential )
270+ @read_authorizer_credential = args [ :read_authorizer_credential ] if args . key? ( :read_authorizer_credential )
271+ @webhook_secret_secret_version = args [ :webhook_secret_secret_version ] if args . key? ( :webhook_secret_secret_version )
272+ @workspace = args [ :workspace ] if args . key? ( :workspace )
273+ end
274+ end
275+
276+ # Configuration for connections to Bitbucket Data Center.
277+ class BitbucketDataCenterConfig
278+ include Google ::Apis ::Core ::Hashable
279+
280+ # Represents a personal access token that authorized the Connection, and
281+ # associated metadata.
282+ # Corresponds to the JSON property `authorizerCredential`
283+ # @return [Google::Apis::CloudbuildV2::UserCredential]
284+ attr_accessor :authorizer_credential
285+
286+ # Required. The URI of the Bitbucket Data Center instance or cluster this
287+ # connection is for.
288+ # Corresponds to the JSON property `hostUri`
289+ # @return [String]
290+ attr_accessor :host_uri
291+
292+ # Represents a personal access token that authorized the Connection, and
293+ # associated metadata.
294+ # Corresponds to the JSON property `readAuthorizerCredential`
295+ # @return [Google::Apis::CloudbuildV2::UserCredential]
296+ attr_accessor :read_authorizer_credential
297+
298+ # Output only. Version of the Bitbucket Data Center running on the `host_uri`.
299+ # Corresponds to the JSON property `serverVersion`
300+ # @return [String]
301+ attr_accessor :server_version
302+
303+ # ServiceDirectoryConfig represents Service Directory configuration for a
304+ # connection.
305+ # Corresponds to the JSON property `serviceDirectoryConfig`
306+ # @return [Google::Apis::CloudbuildV2::GoogleDevtoolsCloudbuildV2ServiceDirectoryConfig]
307+ attr_accessor :service_directory_config
308+
309+ # Optional. SSL certificate to use for requests to the Bitbucket Data Center.
310+ # Corresponds to the JSON property `sslCa`
311+ # @return [String]
312+ attr_accessor :ssl_ca
313+
314+ # Required. Immutable. SecretManager resource containing the webhook secret used
315+ # to verify webhook events, formatted as `projects/*/secrets/*/versions/*`.
316+ # Corresponds to the JSON property `webhookSecretSecretVersion`
317+ # @return [String]
318+ attr_accessor :webhook_secret_secret_version
319+
320+ def initialize ( **args )
321+ update! ( **args )
322+ end
323+
324+ # Update properties of this object
325+ def update! ( **args )
326+ @authorizer_credential = args [ :authorizer_credential ] if args . key? ( :authorizer_credential )
327+ @host_uri = args [ :host_uri ] if args . key? ( :host_uri )
328+ @read_authorizer_credential = args [ :read_authorizer_credential ] if args . key? ( :read_authorizer_credential )
329+ @server_version = args [ :server_version ] if args . key? ( :server_version )
330+ @service_directory_config = args [ :service_directory_config ] if args . key? ( :service_directory_config )
331+ @ssl_ca = args [ :ssl_ca ] if args . key? ( :ssl_ca )
332+ @webhook_secret_secret_version = args [ :webhook_secret_secret_version ] if args . key? ( :webhook_secret_secret_version )
333+ end
334+ end
335+
235336 # The request message for Operations.CancelOperation.
236337 class CancelOperationRequest
237338 include Google ::Apis ::Core ::Hashable
@@ -309,8 +410,8 @@ def update!(**args)
309410 end
310411 end
311412
312- # A connection to a SCM like GitHub, GitHub Enterprise, Bitbucket Data Center or
313- # GitLab.
413+ # A connection to a SCM like GitHub, GitHub Enterprise, Bitbucket Data Center,
414+ # Bitbucket Cloud or GitLab.
314415 class Connection
315416 include Google ::Apis ::Core ::Hashable
316417
@@ -319,6 +420,16 @@ class Connection
319420 # @return [Hash<String,String>]
320421 attr_accessor :annotations
321422
423+ # Configuration for connections to Bitbucket Cloud.
424+ # Corresponds to the JSON property `bitbucketCloudConfig`
425+ # @return [Google::Apis::CloudbuildV2::BitbucketCloudConfig]
426+ attr_accessor :bitbucket_cloud_config
427+
428+ # Configuration for connections to Bitbucket Data Center.
429+ # Corresponds to the JSON property `bitbucketDataCenterConfig`
430+ # @return [Google::Apis::CloudbuildV2::BitbucketDataCenterConfig]
431+ attr_accessor :bitbucket_data_center_config
432+
322433 # Output only. Server assigned timestamp for when the connection was created.
323434 # Corresponds to the JSON property `createTime`
324435 # @return [String]
@@ -386,6 +497,8 @@ def initialize(**args)
386497 # Update properties of this object
387498 def update! ( **args )
388499 @annotations = args [ :annotations ] if args . key? ( :annotations )
500+ @bitbucket_cloud_config = args [ :bitbucket_cloud_config ] if args . key? ( :bitbucket_cloud_config )
501+ @bitbucket_data_center_config = args [ :bitbucket_data_center_config ] if args . key? ( :bitbucket_data_center_config )
389502 @create_time = args [ :create_time ] if args . key? ( :create_time )
390503 @disabled = args [ :disabled ] if args . key? ( :disabled )
391504 @etag = args [ :etag ] if args . key? ( :etag )
@@ -1569,6 +1682,12 @@ class PipelineRun
15691682 # @return [Google::Apis::CloudbuildV2::Provenance]
15701683 attr_accessor :provenance
15711684
1685+ # Output only. The `Record` of this `PipelineRun`. Format: `projects/`project`/
1686+ # locations/`location`/results/`result_id`/records/`record_id``
1687+ # Corresponds to the JSON property `record`
1688+ # @return [String]
1689+ attr_accessor :record
1690+
15721691 # PipelineSpec defines the desired state of Pipeline.
15731692 # Corresponds to the JSON property `resolvedPipelineSpec`
15741693 # @return [Google::Apis::CloudbuildV2::PipelineSpec]
@@ -1652,6 +1771,7 @@ def update!(**args)
16521771 @pipeline_run_status = args [ :pipeline_run_status ] if args . key? ( :pipeline_run_status )
16531772 @pipeline_spec = args [ :pipeline_spec ] if args . key? ( :pipeline_spec )
16541773 @provenance = args [ :provenance ] if args . key? ( :provenance )
1774+ @record = args [ :record ] if args . key? ( :record )
16551775 @resolved_pipeline_spec = args [ :resolved_pipeline_spec ] if args . key? ( :resolved_pipeline_spec )
16561776 @security = args [ :security ] if args . key? ( :security )
16571777 @service_account = args [ :service_account ] if args . key? ( :service_account )
0 commit comments