google-apis-pubsub_v1 0.30.0 → 0.32.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f43681297680ce4b4648e4f75827354d32698d8aab211537cf44b4004165181
4
- data.tar.gz: d878a564d5f6def98d4fbcd0fc81cc9a96546512a357299c4c8d5f78269e8039
3
+ metadata.gz: 6759bb496a056651637ba50365712983d94d652b98dedf985e2ca4ad2fef5443
4
+ data.tar.gz: 980d54650d3b21c6149c02930312dc4e39c1fb1ea7db36f0c4c572e212cb9ab3
5
5
  SHA512:
6
- metadata.gz: 69ea3db760185b1dfc7208ebd266539aaedcb4c3fb0dc646196e3f5ede4e8e8297aba6427dad7da870e139fa6227fe92fdf7170e0a6b3d8ee8e7f3fd8220151a
7
- data.tar.gz: 84864dd0e5c463bbac7f72c16c05d6e6e24b5f7f4200d4682880f9e8bbff9dad33d5d36d09f61f27592666fd8dd583a5e9612f68e7a3a027fba3c4349116c676
6
+ metadata.gz: eed261402004ca0483b4e11bdaaaa7028cd3dea4515bf64c16cf32fe4dcbb0fbee9ce790f2e15472db0f41662ca105b3830ce56d4f91d641074fb6d7a59138a0
7
+ data.tar.gz: 931b645d4cc4faee3dd180aae54f29ef3a90a07231a0cd0839796265bd3b84a372c1d5583bb51300eaa3ed8e28c87ab32bd7d356ff48f1885037952039921ba1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-pubsub_v1
2
2
 
3
+ ### v0.32.0 (2023-01-22)
4
+
5
+ * Regenerated from discovery document revision 20230112
6
+ * Regenerated using generator version 0.11.1
7
+
8
+ ### v0.31.0 (2022-10-27)
9
+
10
+ * Regenerated from discovery document revision 20221020
11
+
3
12
  ### v0.30.0 (2022-10-20)
4
13
 
5
14
  * Regenerated using generator version 0.11.0
@@ -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
@@ -851,9 +896,10 @@ module Google
851
896
  include Google::Apis::Core::Hashable
852
897
 
853
898
  # Received Pub/Sub messages. The list will be empty if there are no more
854
- # messages available in the backlog. For JSON, the response can be entirely
855
- # empty. The Pub/Sub system may return fewer than the `maxMessages` requested
856
- # even if there are more messages available in the backlog.
899
+ # messages available in the backlog, or if no messages could be returned before
900
+ # the request timeout. For JSON, the response can be entirely empty. The Pub/Sub
901
+ # system may return fewer than the `maxMessages` requested even if there are
902
+ # more messages available in the backlog.
857
903
  # Corresponds to the JSON property `receivedMessages`
858
904
  # @return [Array<Google::Apis::PubsubV1::ReceivedMessage>]
859
905
  attr_accessor :received_messages
@@ -995,6 +1041,26 @@ module Google
995
1041
  end
996
1042
  end
997
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
+
998
1064
  # A schema resource.
999
1065
  class Schema
1000
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.30.0"
19
+ GEM_VERSION = "0.32.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 = "20220904"
25
+ REVISION = "20230112"
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.30.0
4
+ version: 0.32.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-21 00:00:00.000000000 Z
11
+ date: 2023-01-22 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.30.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.32.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