Skip to content

Commit 5676fea

Browse files
feat: Automated regeneration of pubsub v1 client (#13331)
Auto-created at 2023-01-22 10:35:38 +0000 using the toys pull request generator.
1 parent a74cd86 commit 5676fea

File tree

6 files changed

+279
-3
lines changed

6 files changed

+279
-3
lines changed

api_names_out.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219466,6 +219466,8 @@
219466219466
"/pubsub:v1/Binding/members": members
219467219467
"/pubsub:v1/Binding/members/member": member
219468219468
"/pubsub:v1/Binding/role": role
219469+
"/pubsub:v1/CommitSchemaRequest": commit_schema_request
219470+
"/pubsub:v1/CommitSchemaRequest/schema": schema
219469219471
"/pubsub:v1/CreateSnapshotRequest": create_snapshot_request
219470219472
"/pubsub:v1/CreateSnapshotRequest/labels": labels
219471219473
"/pubsub:v1/CreateSnapshotRequest/labels/label": label
@@ -219482,6 +219484,10 @@
219482219484
"/pubsub:v1/Expr/expression": expression
219483219485
"/pubsub:v1/Expr/location": location
219484219486
"/pubsub:v1/Expr/title": title
219487+
"/pubsub:v1/ListSchemaRevisionsResponse": list_schema_revisions_response
219488+
"/pubsub:v1/ListSchemaRevisionsResponse/nextPageToken": next_page_token
219489+
"/pubsub:v1/ListSchemaRevisionsResponse/schemas": schemas
219490+
"/pubsub:v1/ListSchemaRevisionsResponse/schemas/schema": schema
219485219491
"/pubsub:v1/ListSchemasResponse": list_schemas_response
219486219492
"/pubsub:v1/ListSchemasResponse/nextPageToken": next_page_token
219487219493
"/pubsub:v1/ListSchemasResponse/schemas": schemas
@@ -219554,6 +219560,8 @@
219554219560
"/pubsub:v1/RetryPolicy": retry_policy
219555219561
"/pubsub:v1/RetryPolicy/maximumBackoff": maximum_backoff
219556219562
"/pubsub:v1/RetryPolicy/minimumBackoff": minimum_backoff
219563+
"/pubsub:v1/RollbackSchemaRequest": rollback_schema_request
219564+
"/pubsub:v1/RollbackSchemaRequest/revisionId": revision_id
219557219565
"/pubsub:v1/Schema": schema
219558219566
"/pubsub:v1/Schema/definition": definition
219559219567
"/pubsub:v1/Schema/name": name
@@ -219631,11 +219639,16 @@
219631219639
"/pubsub:v1/ValidateSchemaResponse": validate_schema_response
219632219640
"/pubsub:v1/fields": fields
219633219641
"/pubsub:v1/key": key
219642+
"/pubsub:v1/pubsub.projects.schemas.commit": commit_schema
219643+
"/pubsub:v1/pubsub.projects.schemas.commit/name": name
219634219644
"/pubsub:v1/pubsub.projects.schemas.create": create_project_schema
219635219645
"/pubsub:v1/pubsub.projects.schemas.create/parent": parent
219636219646
"/pubsub:v1/pubsub.projects.schemas.create/schemaId": schema_id
219637219647
"/pubsub:v1/pubsub.projects.schemas.delete": delete_project_schema
219638219648
"/pubsub:v1/pubsub.projects.schemas.delete/name": name
219649+
"/pubsub:v1/pubsub.projects.schemas.deleteRevision": delete_project_schema_revision
219650+
"/pubsub:v1/pubsub.projects.schemas.deleteRevision/name": name
219651+
"/pubsub:v1/pubsub.projects.schemas.deleteRevision/revisionId": revision_id
219639219652
"/pubsub:v1/pubsub.projects.schemas.get": get_project_schema
219640219653
"/pubsub:v1/pubsub.projects.schemas.get/name": name
219641219654
"/pubsub:v1/pubsub.projects.schemas.get/view": view
@@ -219647,6 +219660,13 @@
219647219660
"/pubsub:v1/pubsub.projects.schemas.list/pageToken": page_token
219648219661
"/pubsub:v1/pubsub.projects.schemas.list/parent": parent
219649219662
"/pubsub:v1/pubsub.projects.schemas.list/view": view
219663+
"/pubsub:v1/pubsub.projects.schemas.listRevisions": list_project_schema_revisions
219664+
"/pubsub:v1/pubsub.projects.schemas.listRevisions/name": name
219665+
"/pubsub:v1/pubsub.projects.schemas.listRevisions/pageSize": page_size
219666+
"/pubsub:v1/pubsub.projects.schemas.listRevisions/pageToken": page_token
219667+
"/pubsub:v1/pubsub.projects.schemas.listRevisions/view": view
219668+
"/pubsub:v1/pubsub.projects.schemas.rollback": rollback_schema
219669+
"/pubsub:v1/pubsub.projects.schemas.rollback/name": name
219650219670
"/pubsub:v1/pubsub.projects.schemas.setIamPolicy": set_schema_iam_policy
219651219671
"/pubsub:v1/pubsub.projects.schemas.setIamPolicy/resource": resource
219652219672
"/pubsub:v1/pubsub.projects.schemas.testIamPermissions": test_schema_iam_permissions

generated/google-apis-pubsub_v1/CHANGELOG.md

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

3+
### v0.32.0 (2023-01-22)
4+
5+
* Regenerated from discovery document revision 20230112
6+
* Regenerated using generator version 0.11.1
7+
38
### v0.31.0 (2022-10-27)
49

510
* Regenerated from discovery document revision 20221020

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

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,25 @@ def update!(**args)
175175
end
176176
end
177177

178+
# Request for CommitSchema method.
179+
class CommitSchemaRequest
180+
include Google::Apis::Core::Hashable
181+
182+
# A schema resource.
183+
# Corresponds to the JSON property `schema`
184+
# @return [Google::Apis::PubsubV1::Schema]
185+
attr_accessor :schema
186+
187+
def initialize(**args)
188+
update!(**args)
189+
end
190+
191+
# Update properties of this object
192+
def update!(**args)
193+
@schema = args[:schema] if args.key?(:schema)
194+
end
195+
end
196+
178197
# Request for the `CreateSnapshot` method.
179198
class CreateSnapshotRequest
180199
include Google::Apis::Core::Hashable
@@ -354,6 +373,32 @@ def update!(**args)
354373
end
355374
end
356375

376+
# Response for the `ListSchemaRevisions` method.
377+
class ListSchemaRevisionsResponse
378+
include Google::Apis::Core::Hashable
379+
380+
# A token that can be sent as `page_token` to retrieve the next page. If this
381+
# field is empty, there are no subsequent pages.
382+
# Corresponds to the JSON property `nextPageToken`
383+
# @return [String]
384+
attr_accessor :next_page_token
385+
386+
# The revisions of the schema.
387+
# Corresponds to the JSON property `schemas`
388+
# @return [Array<Google::Apis::PubsubV1::Schema>]
389+
attr_accessor :schemas
390+
391+
def initialize(**args)
392+
update!(**args)
393+
end
394+
395+
# Update properties of this object
396+
def update!(**args)
397+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
398+
@schemas = args[:schemas] if args.key?(:schemas)
399+
end
400+
end
401+
357402
# Response for the `ListSchemas` method.
358403
class ListSchemasResponse
359404
include Google::Apis::Core::Hashable
@@ -996,6 +1041,26 @@ def update!(**args)
9961041
end
9971042
end
9981043

1044+
# Request for the `RollbackSchema` method.
1045+
class RollbackSchemaRequest
1046+
include Google::Apis::Core::Hashable
1047+
1048+
# Required. The revision ID to roll back to. It must be a revision of the same
1049+
# schema. Example: c7cfa2a8
1050+
# Corresponds to the JSON property `revisionId`
1051+
# @return [String]
1052+
attr_accessor :revision_id
1053+
1054+
def initialize(**args)
1055+
update!(**args)
1056+
end
1057+
1058+
# Update properties of this object
1059+
def update!(**args)
1060+
@revision_id = args[:revision_id] if args.key?(:revision_id)
1061+
end
1062+
end
1063+
9991064
# A schema resource.
10001065
class Schema
10011066
include Google::Apis::Core::Hashable

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module PubsubV1
1818
# Version of the google-apis-pubsub_v1 gem
19-
GEM_VERSION = "0.31.0"
19+
GEM_VERSION = "0.32.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.11.0"
22+
GENERATOR_VERSION = "0.11.1"
2323

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

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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
4040
include Google::Apis::Core::JsonObjectSupport
4141
end
4242

43+
class CommitSchemaRequest
44+
class Representation < Google::Apis::Core::JsonRepresentation; end
45+
46+
include Google::Apis::Core::JsonObjectSupport
47+
end
48+
4349
class CreateSnapshotRequest
4450
class Representation < Google::Apis::Core::JsonRepresentation; end
4551

@@ -76,6 +82,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7682
include Google::Apis::Core::JsonObjectSupport
7783
end
7884

85+
class ListSchemaRevisionsResponse
86+
class Representation < Google::Apis::Core::JsonRepresentation; end
87+
88+
include Google::Apis::Core::JsonObjectSupport
89+
end
90+
7991
class ListSchemasResponse
8092
class Representation < Google::Apis::Core::JsonRepresentation; end
8193

@@ -190,6 +202,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
190202
include Google::Apis::Core::JsonObjectSupport
191203
end
192204

205+
class RollbackSchemaRequest
206+
class Representation < Google::Apis::Core::JsonRepresentation; end
207+
208+
include Google::Apis::Core::JsonObjectSupport
209+
end
210+
193211
class Schema
194212
class Representation < Google::Apis::Core::JsonRepresentation; end
195213

@@ -320,6 +338,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
320338
end
321339
end
322340

341+
class CommitSchemaRequest
342+
# @private
343+
class Representation < Google::Apis::Core::JsonRepresentation
344+
property :schema, as: 'schema', class: Google::Apis::PubsubV1::Schema, decorator: Google::Apis::PubsubV1::Schema::Representation
345+
346+
end
347+
end
348+
323349
class CreateSnapshotRequest
324350
# @private
325351
class Representation < Google::Apis::Core::JsonRepresentation
@@ -365,6 +391,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
365391
end
366392
end
367393

394+
class ListSchemaRevisionsResponse
395+
# @private
396+
class Representation < Google::Apis::Core::JsonRepresentation
397+
property :next_page_token, as: 'nextPageToken'
398+
collection :schemas, as: 'schemas', class: Google::Apis::PubsubV1::Schema, decorator: Google::Apis::PubsubV1::Schema::Representation
399+
400+
end
401+
end
402+
368403
class ListSchemasResponse
369404
# @private
370405
class Representation < Google::Apis::Core::JsonRepresentation
@@ -528,6 +563,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
528563
end
529564
end
530565

566+
class RollbackSchemaRequest
567+
# @private
568+
class Representation < Google::Apis::Core::JsonRepresentation
569+
property :revision_id, as: 'revisionId'
570+
end
571+
end
572+
531573
class Schema
532574
# @private
533575
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)