google-apis-pubsub_v1 0.31.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a446c098dac45f2c93f27d0826327afcdc46b77d6419890988c052f6f37dc24
4
- data.tar.gz: 7a8d5802bec48b64c77c8802f6693a51ebde51a60fd4ab85bb816251976877c2
3
+ metadata.gz: ac77fa1707d0e31dace3211c49a84ab7b00b13141ac6dc42a7865b7f447ddaf6
4
+ data.tar.gz: 7aa680fbe397589ba7be2673542f28ac66d64fdd96da153ec1ebb5632bf2d8c9
5
5
  SHA512:
6
- metadata.gz: '0934f3b8419991bc732af9a3b0287c6a56965df2f078e6d96996b2e5d8752fe956f705232daf477c50991b280c2987d3f3626f3ff2ce76ba6042540c0a2bea4d'
7
- data.tar.gz: fe8102876a2c30b8baf3fbf99437bd85b4b06c45ee40df07b15231aa82ff34cf5cce54498249cf70b416ff5e1c25fb268753ab67bc8aa30244cb25e8013b1871
6
+ metadata.gz: 3ae1494cd72d982f694a96d32e4abeb06ca0ea98891dd9ec1763f8ee32974c76cfdecdbdce19655fb1e79fabbb9e20e4643175e3d0a355c50c7f55200525aeb8
7
+ data.tar.gz: 5272b763b166cace9b41a3cd5391c56de43ca02a0a9824f93950e227714aaa4e8ff14d7628558f9b07104534163a8150ec14d445bb93e30075af8b396b3345f7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-pubsub_v1
2
2
 
3
+ ### v0.33.0 (2023-02-12)
4
+
5
+ * Regenerated from discovery document revision 20230124
6
+
7
+ ### v0.32.0 (2023-01-22)
8
+
9
+ * Regenerated from discovery document revision 20230112
10
+ * Regenerated using generator version 0.11.1
11
+
3
12
  ### v0.31.0 (2022-10-27)
4
13
 
5
14
  * Regenerated from discovery document revision 20221020
@@ -137,22 +137,22 @@ module Google
137
137
  # kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
138
138
  # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
139
139
  # email address that represents a Google group. For example, `admins@example.com`
140
- # . * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
141
- # identifier) representing a user that has been recently deleted. For example, `
142
- # alice@example.com?uid=123456789012345678901`. If the user is recovered, this
143
- # value reverts to `user:`emailid`` and the recovered user retains the role in
144
- # the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
145
- # address (plus unique identifier) representing a service account that has been
146
- # recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
140
+ # . * `domain:`domain``: The G Suite domain (primary) that represents all the
141
+ # users of that domain. For example, `google.com` or `example.com`. * `deleted:
142
+ # user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
143
+ # representing a user that has been recently deleted. For example, `alice@
144
+ # example.com?uid=123456789012345678901`. If the user is recovered, this value
145
+ # reverts to `user:`emailid`` and the recovered user retains the role in the
146
+ # binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
147
+ # (plus unique identifier) representing a service account that has been recently
148
+ # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
147
149
  # 123456789012345678901`. If the service account is undeleted, this value
148
150
  # reverts to `serviceAccount:`emailid`` and the undeleted service account
149
151
  # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
150
152
  # An email address (plus unique identifier) representing a Google group that has
151
153
  # been recently deleted. For example, `admins@example.com?uid=
152
154
  # 123456789012345678901`. If the group is recovered, this value reverts to `
153
- # group:`emailid`` and the recovered group retains the role in the binding. * `
154
- # domain:`domain``: The G Suite domain (primary) that represents all the users
155
- # of that domain. For example, `google.com` or `example.com`.
155
+ # group:`emailid`` and the recovered group retains the role in the binding.
156
156
  # Corresponds to the JSON property `members`
157
157
  # @return [Array<String>]
158
158
  attr_accessor :members
@@ -175,6 +175,25 @@ module Google
175
175
  end
176
176
  end
177
177
 
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
+
178
197
  # Request for the `CreateSnapshot` method.
179
198
  class CreateSnapshotRequest
180
199
  include Google::Apis::Core::Hashable
@@ -354,6 +373,32 @@ module Google
354
373
  end
355
374
  end
356
375
 
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
+
357
402
  # Response for the `ListSchemas` method.
358
403
  class ListSchemasResponse
359
404
  include Google::Apis::Core::Hashable
@@ -996,6 +1041,26 @@ module Google
996
1041
  end
997
1042
  end
998
1043
 
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
+
999
1064
  # A schema resource.
1000
1065
  class Schema
1001
1066
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PubsubV1
18
18
  # Version of the google-apis-pubsub_v1 gem
19
- GEM_VERSION = "0.31.0"
19
+ GEM_VERSION = "0.33.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221020"
25
+ REVISION = "20230124"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,12 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class CommitSchemaRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class CreateSnapshotRequest
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
@@ -76,6 +82,12 @@ module Google
76
82
  include Google::Apis::Core::JsonObjectSupport
77
83
  end
78
84
 
85
+ class ListSchemaRevisionsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
79
91
  class ListSchemasResponse
80
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
93
 
@@ -190,6 +202,12 @@ module Google
190
202
  include Google::Apis::Core::JsonObjectSupport
191
203
  end
192
204
 
205
+ class RollbackSchemaRequest
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
193
211
  class Schema
194
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
213
 
@@ -320,6 +338,14 @@ module Google
320
338
  end
321
339
  end
322
340
 
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
+
323
349
  class CreateSnapshotRequest
324
350
  # @private
325
351
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -365,6 +391,15 @@ module Google
365
391
  end
366
392
  end
367
393
 
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
+
368
403
  class ListSchemasResponse
369
404
  # @private
370
405
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -528,6 +563,13 @@ module Google
528
563
  end
529
564
  end
530
565
 
566
+ class RollbackSchemaRequest
567
+ # @private
568
+ class Representation < Google::Apis::Core::JsonRepresentation
569
+ property :revision_id, as: 'revisionId'
570
+ end
571
+ end
572
+
531
573
  class Schema
532
574
  # @private
533
575
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -49,6 +49,40 @@ module Google
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
+ # Commits a new schema revision to an existing schema.
53
+ # @param [String] name
54
+ # Required. The name of the schema we are revising. Format is `projects/`project`
55
+ # /schemas/`schema``.
56
+ # @param [Google::Apis::PubsubV1::CommitSchemaRequest] commit_schema_request_object
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [Google::Apis::RequestOptions] options
63
+ # Request-specific options
64
+ #
65
+ # @yield [result, err] Result & error if block supplied
66
+ # @yieldparam result [Google::Apis::PubsubV1::Schema] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::PubsubV1::Schema]
70
+ #
71
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
74
+ def commit_schema(name, commit_schema_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:post, 'v1/{+name}:commit', options)
76
+ command.request_representation = Google::Apis::PubsubV1::CommitSchemaRequest::Representation
77
+ command.request_object = commit_schema_request_object
78
+ command.response_representation = Google::Apis::PubsubV1::Schema::Representation
79
+ command.response_class = Google::Apis::PubsubV1::Schema
80
+ command.params['name'] = name unless name.nil?
81
+ command.query['fields'] = fields unless fields.nil?
82
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
83
+ execute_or_queue_command(command, &block)
84
+ end
85
+
52
86
  # Creates a schema.
53
87
  # @param [String] parent
54
88
  # Required. The name of the project in which to create the schema. Format is `
@@ -119,6 +153,41 @@ module Google
119
153
  execute_or_queue_command(command, &block)
120
154
  end
121
155
 
156
+ # Deletes a specific schema revision.
157
+ # @param [String] name
158
+ # Required. The name of the schema revision to be deleted, with a revision ID
159
+ # explicitly included. Example: `projects/123/schemas/my-schema@c7cfa2a8`
160
+ # @param [String] revision_id
161
+ # Required. The revision ID to roll back to. It must be a revision of the same
162
+ # schema. Example: c7cfa2a8
163
+ # @param [String] fields
164
+ # Selector specifying which fields to include in a partial response.
165
+ # @param [String] quota_user
166
+ # Available to use for quota purposes for server-side applications. Can be any
167
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
168
+ # @param [Google::Apis::RequestOptions] options
169
+ # Request-specific options
170
+ #
171
+ # @yield [result, err] Result & error if block supplied
172
+ # @yieldparam result [Google::Apis::PubsubV1::Schema] parsed result object
173
+ # @yieldparam err [StandardError] error object if request failed
174
+ #
175
+ # @return [Google::Apis::PubsubV1::Schema]
176
+ #
177
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
178
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
179
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
180
+ def delete_project_schema_revision(name, revision_id: nil, fields: nil, quota_user: nil, options: nil, &block)
181
+ command = make_simple_command(:delete, 'v1/{+name}:deleteRevision', options)
182
+ command.response_representation = Google::Apis::PubsubV1::Schema::Representation
183
+ command.response_class = Google::Apis::PubsubV1::Schema
184
+ command.params['name'] = name unless name.nil?
185
+ command.query['revisionId'] = revision_id unless revision_id.nil?
186
+ command.query['fields'] = fields unless fields.nil?
187
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
188
+ execute_or_queue_command(command, &block)
189
+ end
190
+
122
191
  # Gets a schema.
123
192
  # @param [String] name
124
193
  # Required. The name of the schema to get. Format is `projects/`project`/schemas/
@@ -243,6 +312,81 @@ module Google
243
312
  execute_or_queue_command(command, &block)
244
313
  end
245
314
 
315
+ # Lists all schema revisions for the named schema.
316
+ # @param [String] name
317
+ # Required. The name of the schema to list revisions for.
318
+ # @param [Fixnum] page_size
319
+ # The maximum number of revisions to return per page.
320
+ # @param [String] page_token
321
+ # The page token, received from a previous ListSchemaRevisions call. Provide
322
+ # this to retrieve the subsequent page.
323
+ # @param [String] view
324
+ # The set of Schema fields to return in the response. If not set, returns
325
+ # Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
326
+ # retrieve all fields.
327
+ # @param [String] fields
328
+ # Selector specifying which fields to include in a partial response.
329
+ # @param [String] quota_user
330
+ # Available to use for quota purposes for server-side applications. Can be any
331
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
332
+ # @param [Google::Apis::RequestOptions] options
333
+ # Request-specific options
334
+ #
335
+ # @yield [result, err] Result & error if block supplied
336
+ # @yieldparam result [Google::Apis::PubsubV1::ListSchemaRevisionsResponse] parsed result object
337
+ # @yieldparam err [StandardError] error object if request failed
338
+ #
339
+ # @return [Google::Apis::PubsubV1::ListSchemaRevisionsResponse]
340
+ #
341
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
342
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
343
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
344
+ def list_project_schema_revisions(name, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
345
+ command = make_simple_command(:get, 'v1/{+name}:listRevisions', options)
346
+ command.response_representation = Google::Apis::PubsubV1::ListSchemaRevisionsResponse::Representation
347
+ command.response_class = Google::Apis::PubsubV1::ListSchemaRevisionsResponse
348
+ command.params['name'] = name unless name.nil?
349
+ command.query['pageSize'] = page_size unless page_size.nil?
350
+ command.query['pageToken'] = page_token unless page_token.nil?
351
+ command.query['view'] = view unless view.nil?
352
+ command.query['fields'] = fields unless fields.nil?
353
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
354
+ execute_or_queue_command(command, &block)
355
+ end
356
+
357
+ # Creates a new schema revision that is a copy of the provided revision_id.
358
+ # @param [String] name
359
+ # Required. The schema being rolled back with revision id.
360
+ # @param [Google::Apis::PubsubV1::RollbackSchemaRequest] rollback_schema_request_object
361
+ # @param [String] fields
362
+ # Selector specifying which fields to include in a partial response.
363
+ # @param [String] quota_user
364
+ # Available to use for quota purposes for server-side applications. Can be any
365
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
366
+ # @param [Google::Apis::RequestOptions] options
367
+ # Request-specific options
368
+ #
369
+ # @yield [result, err] Result & error if block supplied
370
+ # @yieldparam result [Google::Apis::PubsubV1::Schema] parsed result object
371
+ # @yieldparam err [StandardError] error object if request failed
372
+ #
373
+ # @return [Google::Apis::PubsubV1::Schema]
374
+ #
375
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
376
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
377
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
378
+ def rollback_schema(name, rollback_schema_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
379
+ command = make_simple_command(:post, 'v1/{+name}:rollback', options)
380
+ command.request_representation = Google::Apis::PubsubV1::RollbackSchemaRequest::Representation
381
+ command.request_object = rollback_schema_request_object
382
+ command.response_representation = Google::Apis::PubsubV1::Schema::Representation
383
+ command.response_class = Google::Apis::PubsubV1::Schema
384
+ command.params['name'] = name unless name.nil?
385
+ command.query['fields'] = fields unless fields.nil?
386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
387
+ execute_or_queue_command(command, &block)
388
+ end
389
+
246
390
  # Sets the access control policy on the specified resource. Replaces any
247
391
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
248
392
  # PERMISSION_DENIED` errors.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-pubsub_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-31 00:00:00.000000000 Z
11
+ date: 2023-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-pubsub_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.31.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.33.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-pubsub_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Pub/Sub API V1