Skip to content

Commit 06ffde2

Browse files
feat: Automated regeneration of cloudbuild v2 client (#17877)
Auto-created at 2024-02-18 10:09:25 +0000 using the toys pull request generator.
1 parent 8af50ec commit 06ffde2

File tree

5 files changed

+189
-4
lines changed

5 files changed

+189
-4
lines changed

api_names_out.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55026,6 +55026,19 @@
5502655026
"/cloudbuild:v2/Binding/members": members
5502755027
"/cloudbuild:v2/Binding/members/member": member
5502855028
"/cloudbuild:v2/Binding/role": role
55029+
"/cloudbuild:v2/BitbucketCloudConfig": bitbucket_cloud_config
55030+
"/cloudbuild:v2/BitbucketCloudConfig/authorizerCredential": authorizer_credential
55031+
"/cloudbuild:v2/BitbucketCloudConfig/readAuthorizerCredential": read_authorizer_credential
55032+
"/cloudbuild:v2/BitbucketCloudConfig/webhookSecretSecretVersion": webhook_secret_secret_version
55033+
"/cloudbuild:v2/BitbucketCloudConfig/workspace": workspace
55034+
"/cloudbuild:v2/BitbucketDataCenterConfig": bitbucket_data_center_config
55035+
"/cloudbuild:v2/BitbucketDataCenterConfig/authorizerCredential": authorizer_credential
55036+
"/cloudbuild:v2/BitbucketDataCenterConfig/hostUri": host_uri
55037+
"/cloudbuild:v2/BitbucketDataCenterConfig/readAuthorizerCredential": read_authorizer_credential
55038+
"/cloudbuild:v2/BitbucketDataCenterConfig/serverVersion": server_version
55039+
"/cloudbuild:v2/BitbucketDataCenterConfig/serviceDirectoryConfig": service_directory_config
55040+
"/cloudbuild:v2/BitbucketDataCenterConfig/sslCa": ssl_ca
55041+
"/cloudbuild:v2/BitbucketDataCenterConfig/webhookSecretSecretVersion": webhook_secret_secret_version
5502955042
"/cloudbuild:v2/CancelOperationRequest": cancel_operation_request
5503055043
"/cloudbuild:v2/Capabilities": capabilities
5503155044
"/cloudbuild:v2/Capabilities/add": add
@@ -55041,6 +55054,8 @@
5504155054
"/cloudbuild:v2/Connection": connection
5504255055
"/cloudbuild:v2/Connection/annotations": annotations
5504355056
"/cloudbuild:v2/Connection/annotations/annotation": annotation
55057+
"/cloudbuild:v2/Connection/bitbucketCloudConfig": bitbucket_cloud_config
55058+
"/cloudbuild:v2/Connection/bitbucketDataCenterConfig": bitbucket_data_center_config
5504455059
"/cloudbuild:v2/Connection/createTime": create_time
5504555060
"/cloudbuild:v2/Connection/disabled": disabled
5504655061
"/cloudbuild:v2/Connection/etag": etag
@@ -55214,6 +55229,7 @@
5521455229
"/cloudbuild:v2/PipelineRun/pipelineRunStatus": pipeline_run_status
5521555230
"/cloudbuild:v2/PipelineRun/pipelineSpec": pipeline_spec
5521655231
"/cloudbuild:v2/PipelineRun/provenance": provenance
55232+
"/cloudbuild:v2/PipelineRun/record": record
5521755233
"/cloudbuild:v2/PipelineRun/resolvedPipelineSpec": resolved_pipeline_spec
5521855234
"/cloudbuild:v2/PipelineRun/security": security
5521955235
"/cloudbuild:v2/PipelineRun/serviceAccount": service_account

generated/google-apis-cloudbuild_v2/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-cloudbuild_v2
22

3+
### v0.11.0 (2024-02-18)
4+
5+
* Regenerated from discovery document revision 20240207
6+
37
### v0.10.0 (2024-02-04)
48

59
* Regenerated from discovery document revision 20240130

generated/google-apis-cloudbuild_v2/lib/google/apis/cloudbuild_v2/classes.rb

Lines changed: 122 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)

generated/google-apis-cloudbuild_v2/lib/google/apis/cloudbuild_v2/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module CloudbuildV2
1818
# Version of the google-apis-cloudbuild_v2 gem
19-
GEM_VERSION = "0.10.0"
19+
GEM_VERSION = "0.11.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.13.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20240130"
25+
REVISION = "20240207"
2626
end
2727
end
2828
end

generated/google-apis-cloudbuild_v2/lib/google/apis/cloudbuild_v2/representations.rb

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
5252
include Google::Apis::Core::JsonObjectSupport
5353
end
5454

55+
class BitbucketCloudConfig
56+
class Representation < Google::Apis::Core::JsonRepresentation; end
57+
58+
include Google::Apis::Core::JsonObjectSupport
59+
end
60+
61+
class BitbucketDataCenterConfig
62+
class Representation < Google::Apis::Core::JsonRepresentation; end
63+
64+
include Google::Apis::Core::JsonObjectSupport
65+
end
66+
5567
class CancelOperationRequest
5668
class Representation < Google::Apis::Core::JsonRepresentation; end
5769

@@ -515,6 +527,34 @@ class Representation < Google::Apis::Core::JsonRepresentation
515527
end
516528
end
517529

530+
class BitbucketCloudConfig
531+
# @private
532+
class Representation < Google::Apis::Core::JsonRepresentation
533+
property :authorizer_credential, as: 'authorizerCredential', class: Google::Apis::CloudbuildV2::UserCredential, decorator: Google::Apis::CloudbuildV2::UserCredential::Representation
534+
535+
property :read_authorizer_credential, as: 'readAuthorizerCredential', class: Google::Apis::CloudbuildV2::UserCredential, decorator: Google::Apis::CloudbuildV2::UserCredential::Representation
536+
537+
property :webhook_secret_secret_version, as: 'webhookSecretSecretVersion'
538+
property :workspace, as: 'workspace'
539+
end
540+
end
541+
542+
class BitbucketDataCenterConfig
543+
# @private
544+
class Representation < Google::Apis::Core::JsonRepresentation
545+
property :authorizer_credential, as: 'authorizerCredential', class: Google::Apis::CloudbuildV2::UserCredential, decorator: Google::Apis::CloudbuildV2::UserCredential::Representation
546+
547+
property :host_uri, as: 'hostUri'
548+
property :read_authorizer_credential, as: 'readAuthorizerCredential', class: Google::Apis::CloudbuildV2::UserCredential, decorator: Google::Apis::CloudbuildV2::UserCredential::Representation
549+
550+
property :server_version, as: 'serverVersion'
551+
property :service_directory_config, as: 'serviceDirectoryConfig', class: Google::Apis::CloudbuildV2::GoogleDevtoolsCloudbuildV2ServiceDirectoryConfig, decorator: Google::Apis::CloudbuildV2::GoogleDevtoolsCloudbuildV2ServiceDirectoryConfig::Representation
552+
553+
property :ssl_ca, as: 'sslCa'
554+
property :webhook_secret_secret_version, as: 'webhookSecretSecretVersion'
555+
end
556+
end
557+
518558
class CancelOperationRequest
519559
# @private
520560
class Representation < Google::Apis::Core::JsonRepresentation
@@ -544,6 +584,10 @@ class Connection
544584
# @private
545585
class Representation < Google::Apis::Core::JsonRepresentation
546586
hash :annotations, as: 'annotations'
587+
property :bitbucket_cloud_config, as: 'bitbucketCloudConfig', class: Google::Apis::CloudbuildV2::BitbucketCloudConfig, decorator: Google::Apis::CloudbuildV2::BitbucketCloudConfig::Representation
588+
589+
property :bitbucket_data_center_config, as: 'bitbucketDataCenterConfig', class: Google::Apis::CloudbuildV2::BitbucketDataCenterConfig, decorator: Google::Apis::CloudbuildV2::BitbucketDataCenterConfig::Representation
590+
547591
property :create_time, as: 'createTime'
548592
property :disabled, as: 'disabled'
549593
property :etag, as: 'etag'
@@ -887,6 +931,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
887931

888932
property :provenance, as: 'provenance', class: Google::Apis::CloudbuildV2::Provenance, decorator: Google::Apis::CloudbuildV2::Provenance::Representation
889933

934+
property :record, as: 'record'
890935
property :resolved_pipeline_spec, as: 'resolvedPipelineSpec', class: Google::Apis::CloudbuildV2::PipelineSpec, decorator: Google::Apis::CloudbuildV2::PipelineSpec::Representation
891936

892937
property :security, as: 'security', class: Google::Apis::CloudbuildV2::Security, decorator: Google::Apis::CloudbuildV2::Security::Representation

0 commit comments

Comments
 (0)