google-apis-pubsublite_v1 0.10.0 → 0.11.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: 921b9aca143aeecbdf672a2e0051658c90149abd6df01a86e647480d55fa6e83
4
- data.tar.gz: 5c38de0e941a04dad548e76502c09d32e266d02c4be5a42f74f33e3b4414fe06
3
+ metadata.gz: 1f821f4036dfcc5ea0db018f227d0f848e4c7babe80555a7933b12fc073eb978
4
+ data.tar.gz: 74bf75ab37927917cdd7ea28f9d9b66804f1f75446372bd631582de11266316b
5
5
  SHA512:
6
- metadata.gz: 47f020f527082ce7f04148bacaaafbfda15cc5fa3ec02cc82d20a25733b5e9382096bedec5f8cfb144323f3d335c294d2263d2d243a81a939c900ce4c190e349
7
- data.tar.gz: 05de78af722153fa55b26b4340bb0c6dc92f4fcbe57817c44801227eaa8f5586d46aa034d45a969e21aea988af4d62032a26583f5d53a7d5f10288827ff5582a
6
+ metadata.gz: a5903460cd275ae5745d74916280dc4940375aa9e98aafb305082d2cecce65084f8300375e43dc7ff099ebc5831c2cdcdd9a4b0cc1757c390cfe21958efabc9d
7
+ data.tar.gz: 5d24ec34146dbaf6297bce541fbde2732b6360958e7c9666c6557608ee827ed45a22f2a75f4b6643417c8a79ba470f6ec28ed3d409b24bf7ed584f2f0d737c37
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-pubsublite_v1
2
2
 
3
+ ### v0.11.0 (2021-09-01)
4
+
5
+ * Regenerated from discovery document revision 20210810
6
+
3
7
  ### v0.10.0 (2021-06-29)
4
8
 
5
9
  * Regenerated using generator version 0.4.0
@@ -22,6 +22,19 @@ module Google
22
22
  module Apis
23
23
  module PubsubliteV1
24
24
 
25
+ # The request message for Operations.CancelOperation.
26
+ class CancelOperationRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ def initialize(**args)
30
+ update!(**args)
31
+ end
32
+
33
+ # Update properties of this object
34
+ def update!(**args)
35
+ end
36
+ end
37
+
25
38
  # The throughput capacity configuration for each partition.
26
39
  class Capacity
27
40
  include Google::Apis::Core::Hashable
@@ -299,6 +312,31 @@ module Google
299
312
  end
300
313
  end
301
314
 
315
+ # The response message for Operations.ListOperations.
316
+ class ListOperationsResponse
317
+ include Google::Apis::Core::Hashable
318
+
319
+ # The standard List next-page token.
320
+ # Corresponds to the JSON property `nextPageToken`
321
+ # @return [String]
322
+ attr_accessor :next_page_token
323
+
324
+ # A list of operations that matches the specified filter in the request.
325
+ # Corresponds to the JSON property `operations`
326
+ # @return [Array<Google::Apis::PubsubliteV1::Operation>]
327
+ attr_accessor :operations
328
+
329
+ def initialize(**args)
330
+ update!(**args)
331
+ end
332
+
333
+ # Update properties of this object
334
+ def update!(**args)
335
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
336
+ @operations = args[:operations] if args.key?(:operations)
337
+ end
338
+ end
339
+
302
340
  # Response for ListPartitionCursors
303
341
  class ListPartitionCursorsResponse
304
342
  include Google::Apis::Core::Hashable
@@ -406,6 +444,108 @@ module Google
406
444
  end
407
445
  end
408
446
 
447
+ # This resource represents a long-running operation that is the result of a
448
+ # network API call.
449
+ class Operation
450
+ include Google::Apis::Core::Hashable
451
+
452
+ # If the value is `false`, it means the operation is still in progress. If `true`
453
+ # , the operation is completed, and either `error` or `response` is available.
454
+ # Corresponds to the JSON property `done`
455
+ # @return [Boolean]
456
+ attr_accessor :done
457
+ alias_method :done?, :done
458
+
459
+ # The `Status` type defines a logical error model that is suitable for different
460
+ # programming environments, including REST APIs and RPC APIs. It is used by [
461
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
462
+ # data: error code, error message, and error details. You can find out more
463
+ # about this error model and how to work with it in the [API Design Guide](https:
464
+ # //cloud.google.com/apis/design/errors).
465
+ # Corresponds to the JSON property `error`
466
+ # @return [Google::Apis::PubsubliteV1::Status]
467
+ attr_accessor :error
468
+
469
+ # Service-specific metadata associated with the operation. It typically contains
470
+ # progress information and common metadata such as create time. Some services
471
+ # might not provide such metadata. Any method that returns a long-running
472
+ # operation should document the metadata type, if any.
473
+ # Corresponds to the JSON property `metadata`
474
+ # @return [Hash<String,Object>]
475
+ attr_accessor :metadata
476
+
477
+ # The server-assigned name, which is only unique within the same service that
478
+ # originally returns it. If you use the default HTTP mapping, the `name` should
479
+ # be a resource name ending with `operations/`unique_id``.
480
+ # Corresponds to the JSON property `name`
481
+ # @return [String]
482
+ attr_accessor :name
483
+
484
+ # The normal response of the operation in case of success. If the original
485
+ # method returns no data on success, such as `Delete`, the response is `google.
486
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
487
+ # the response should be the resource. For other methods, the response should
488
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
489
+ # example, if the original method name is `TakeSnapshot()`, the inferred
490
+ # response type is `TakeSnapshotResponse`.
491
+ # Corresponds to the JSON property `response`
492
+ # @return [Hash<String,Object>]
493
+ attr_accessor :response
494
+
495
+ def initialize(**args)
496
+ update!(**args)
497
+ end
498
+
499
+ # Update properties of this object
500
+ def update!(**args)
501
+ @done = args[:done] if args.key?(:done)
502
+ @error = args[:error] if args.key?(:error)
503
+ @metadata = args[:metadata] if args.key?(:metadata)
504
+ @name = args[:name] if args.key?(:name)
505
+ @response = args[:response] if args.key?(:response)
506
+ end
507
+ end
508
+
509
+ # Metadata for long running operations.
510
+ class OperationMetadata
511
+ include Google::Apis::Core::Hashable
512
+
513
+ # The time the operation was created.
514
+ # Corresponds to the JSON property `createTime`
515
+ # @return [String]
516
+ attr_accessor :create_time
517
+
518
+ # The time the operation finished running. Not set if the operation has not
519
+ # completed.
520
+ # Corresponds to the JSON property `endTime`
521
+ # @return [String]
522
+ attr_accessor :end_time
523
+
524
+ # Resource path for the target of the operation. For example, targets of seeks
525
+ # are subscription resources, structured like: projects/`project_number`/
526
+ # locations/`location`/subscriptions/`subscription_id`
527
+ # Corresponds to the JSON property `target`
528
+ # @return [String]
529
+ attr_accessor :target
530
+
531
+ # Name of the verb executed by the operation.
532
+ # Corresponds to the JSON property `verb`
533
+ # @return [String]
534
+ attr_accessor :verb
535
+
536
+ def initialize(**args)
537
+ update!(**args)
538
+ end
539
+
540
+ # Update properties of this object
541
+ def update!(**args)
542
+ @create_time = args[:create_time] if args.key?(:create_time)
543
+ @end_time = args[:end_time] if args.key?(:end_time)
544
+ @target = args[:target] if args.key?(:target)
545
+ @verb = args[:verb] if args.key?(:verb)
546
+ end
547
+ end
548
+
409
549
  # The settings for a topic's partitions.
410
550
  class PartitionConfig
411
551
  include Google::Apis::Core::Hashable
@@ -500,6 +640,84 @@ module Google
500
640
  end
501
641
  end
502
642
 
643
+ # Request for SeekSubscription.
644
+ class SeekSubscriptionRequest
645
+ include Google::Apis::Core::Hashable
646
+
647
+ # Seek to a named position with respect to the message backlog.
648
+ # Corresponds to the JSON property `namedTarget`
649
+ # @return [String]
650
+ attr_accessor :named_target
651
+
652
+ # A target publish or event time. Can be used for seeking to or retrieving the
653
+ # corresponding cursor.
654
+ # Corresponds to the JSON property `timeTarget`
655
+ # @return [Google::Apis::PubsubliteV1::TimeTarget]
656
+ attr_accessor :time_target
657
+
658
+ def initialize(**args)
659
+ update!(**args)
660
+ end
661
+
662
+ # Update properties of this object
663
+ def update!(**args)
664
+ @named_target = args[:named_target] if args.key?(:named_target)
665
+ @time_target = args[:time_target] if args.key?(:time_target)
666
+ end
667
+ end
668
+
669
+ # Response for SeekSubscription long running operation.
670
+ class SeekSubscriptionResponse
671
+ include Google::Apis::Core::Hashable
672
+
673
+ def initialize(**args)
674
+ update!(**args)
675
+ end
676
+
677
+ # Update properties of this object
678
+ def update!(**args)
679
+ end
680
+ end
681
+
682
+ # The `Status` type defines a logical error model that is suitable for different
683
+ # programming environments, including REST APIs and RPC APIs. It is used by [
684
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
685
+ # data: error code, error message, and error details. You can find out more
686
+ # about this error model and how to work with it in the [API Design Guide](https:
687
+ # //cloud.google.com/apis/design/errors).
688
+ class Status
689
+ include Google::Apis::Core::Hashable
690
+
691
+ # The status code, which should be an enum value of google.rpc.Code.
692
+ # Corresponds to the JSON property `code`
693
+ # @return [Fixnum]
694
+ attr_accessor :code
695
+
696
+ # A list of messages that carry the error details. There is a common set of
697
+ # message types for APIs to use.
698
+ # Corresponds to the JSON property `details`
699
+ # @return [Array<Hash<String,Object>>]
700
+ attr_accessor :details
701
+
702
+ # A developer-facing error message, which should be in English. Any user-facing
703
+ # error message should be localized and sent in the google.rpc.Status.details
704
+ # field, or localized by the client.
705
+ # Corresponds to the JSON property `message`
706
+ # @return [String]
707
+ attr_accessor :message
708
+
709
+ def initialize(**args)
710
+ update!(**args)
711
+ end
712
+
713
+ # Update properties of this object
714
+ def update!(**args)
715
+ @code = args[:code] if args.key?(:code)
716
+ @details = args[:details] if args.key?(:details)
717
+ @message = args[:message] if args.key?(:message)
718
+ end
719
+ end
720
+
503
721
  # Metadata about a subscription resource.
504
722
  class Subscription
505
723
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PubsubliteV1
18
18
  # Version of the google-apis-pubsublite_v1 gem
19
- GEM_VERSION = "0.10.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210513"
25
+ REVISION = "20210810"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module PubsubliteV1
24
24
 
25
+ class CancelOperationRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class Capacity
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -94,6 +100,12 @@ module Google
94
100
  include Google::Apis::Core::JsonObjectSupport
95
101
  end
96
102
 
103
+ class ListOperationsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
97
109
  class ListPartitionCursorsResponse
98
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
111
 
@@ -118,6 +130,18 @@ module Google
118
130
  include Google::Apis::Core::JsonObjectSupport
119
131
  end
120
132
 
133
+ class Operation
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class OperationMetadata
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
121
145
  class PartitionConfig
122
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
147
 
@@ -136,6 +160,24 @@ module Google
136
160
  include Google::Apis::Core::JsonObjectSupport
137
161
  end
138
162
 
163
+ class SeekSubscriptionRequest
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class SeekSubscriptionResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class Status
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
139
181
  class Subscription
140
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
183
 
@@ -160,6 +202,12 @@ module Google
160
202
  include Google::Apis::Core::JsonObjectSupport
161
203
  end
162
204
 
205
+ class CancelOperationRequest
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ end
209
+ end
210
+
163
211
  class Capacity
164
212
  # @private
165
213
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -256,6 +304,15 @@ module Google
256
304
  end
257
305
  end
258
306
 
307
+ class ListOperationsResponse
308
+ # @private
309
+ class Representation < Google::Apis::Core::JsonRepresentation
310
+ property :next_page_token, as: 'nextPageToken'
311
+ collection :operations, as: 'operations', class: Google::Apis::PubsubliteV1::Operation, decorator: Google::Apis::PubsubliteV1::Operation::Representation
312
+
313
+ end
314
+ end
315
+
259
316
  class ListPartitionCursorsResponse
260
317
  # @private
261
318
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -291,6 +348,28 @@ module Google
291
348
  end
292
349
  end
293
350
 
351
+ class Operation
352
+ # @private
353
+ class Representation < Google::Apis::Core::JsonRepresentation
354
+ property :done, as: 'done'
355
+ property :error, as: 'error', class: Google::Apis::PubsubliteV1::Status, decorator: Google::Apis::PubsubliteV1::Status::Representation
356
+
357
+ hash :metadata, as: 'metadata'
358
+ property :name, as: 'name'
359
+ hash :response, as: 'response'
360
+ end
361
+ end
362
+
363
+ class OperationMetadata
364
+ # @private
365
+ class Representation < Google::Apis::Core::JsonRepresentation
366
+ property :create_time, as: 'createTime'
367
+ property :end_time, as: 'endTime'
368
+ property :target, as: 'target'
369
+ property :verb, as: 'verb'
370
+ end
371
+ end
372
+
294
373
  class PartitionConfig
295
374
  # @private
296
375
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -318,6 +397,30 @@ module Google
318
397
  end
319
398
  end
320
399
 
400
+ class SeekSubscriptionRequest
401
+ # @private
402
+ class Representation < Google::Apis::Core::JsonRepresentation
403
+ property :named_target, as: 'namedTarget'
404
+ property :time_target, as: 'timeTarget', class: Google::Apis::PubsubliteV1::TimeTarget, decorator: Google::Apis::PubsubliteV1::TimeTarget::Representation
405
+
406
+ end
407
+ end
408
+
409
+ class SeekSubscriptionResponse
410
+ # @private
411
+ class Representation < Google::Apis::Core::JsonRepresentation
412
+ end
413
+ end
414
+
415
+ class Status
416
+ # @private
417
+ class Representation < Google::Apis::Core::JsonRepresentation
418
+ property :code, as: 'code'
419
+ collection :details, as: 'details'
420
+ property :message, as: 'message'
421
+ end
422
+ end
423
+
321
424
  class Subscription
322
425
  # @private
323
426
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -49,6 +49,156 @@ module Google
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
+ # Starts asynchronous cancellation on a long-running operation. The server makes
53
+ # a best effort to cancel the operation, but success is not guaranteed. If the
54
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
55
+ # Clients can use Operations.GetOperation or other methods to check whether the
56
+ # cancellation succeeded or whether the operation completed despite cancellation.
57
+ # On successful cancellation, the operation is not deleted; instead, it becomes
58
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
59
+ # corresponding to `Code.CANCELLED`.
60
+ # @param [String] name
61
+ # The name of the operation resource to be cancelled.
62
+ # @param [Google::Apis::PubsubliteV1::CancelOperationRequest] cancel_operation_request_object
63
+ # @param [String] fields
64
+ # Selector specifying which fields to include in a partial response.
65
+ # @param [String] quota_user
66
+ # Available to use for quota purposes for server-side applications. Can be any
67
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
68
+ # @param [Google::Apis::RequestOptions] options
69
+ # Request-specific options
70
+ #
71
+ # @yield [result, err] Result & error if block supplied
72
+ # @yieldparam result [Google::Apis::PubsubliteV1::Empty] parsed result object
73
+ # @yieldparam err [StandardError] error object if request failed
74
+ #
75
+ # @return [Google::Apis::PubsubliteV1::Empty]
76
+ #
77
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
78
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
79
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
80
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
81
+ command = make_simple_command(:post, 'v1/admin/{+name}:cancel', options)
82
+ command.request_representation = Google::Apis::PubsubliteV1::CancelOperationRequest::Representation
83
+ command.request_object = cancel_operation_request_object
84
+ command.response_representation = Google::Apis::PubsubliteV1::Empty::Representation
85
+ command.response_class = Google::Apis::PubsubliteV1::Empty
86
+ command.params['name'] = name unless name.nil?
87
+ command.query['fields'] = fields unless fields.nil?
88
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
89
+ execute_or_queue_command(command, &block)
90
+ end
91
+
92
+ # Deletes a long-running operation. This method indicates that the client is no
93
+ # longer interested in the operation result. It does not cancel the operation.
94
+ # If the server doesn't support this method, it returns `google.rpc.Code.
95
+ # UNIMPLEMENTED`.
96
+ # @param [String] name
97
+ # The name of the operation resource to be deleted.
98
+ # @param [String] fields
99
+ # Selector specifying which fields to include in a partial response.
100
+ # @param [String] quota_user
101
+ # Available to use for quota purposes for server-side applications. Can be any
102
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
103
+ # @param [Google::Apis::RequestOptions] options
104
+ # Request-specific options
105
+ #
106
+ # @yield [result, err] Result & error if block supplied
107
+ # @yieldparam result [Google::Apis::PubsubliteV1::Empty] parsed result object
108
+ # @yieldparam err [StandardError] error object if request failed
109
+ #
110
+ # @return [Google::Apis::PubsubliteV1::Empty]
111
+ #
112
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
113
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
114
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
115
+ def delete_admin_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
116
+ command = make_simple_command(:delete, 'v1/admin/{+name}', options)
117
+ command.response_representation = Google::Apis::PubsubliteV1::Empty::Representation
118
+ command.response_class = Google::Apis::PubsubliteV1::Empty
119
+ command.params['name'] = name unless name.nil?
120
+ command.query['fields'] = fields unless fields.nil?
121
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
122
+ execute_or_queue_command(command, &block)
123
+ end
124
+
125
+ # Gets the latest state of a long-running operation. Clients can use this method
126
+ # to poll the operation result at intervals as recommended by the API service.
127
+ # @param [String] name
128
+ # The name of the operation resource.
129
+ # @param [String] fields
130
+ # Selector specifying which fields to include in a partial response.
131
+ # @param [String] quota_user
132
+ # Available to use for quota purposes for server-side applications. Can be any
133
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
134
+ # @param [Google::Apis::RequestOptions] options
135
+ # Request-specific options
136
+ #
137
+ # @yield [result, err] Result & error if block supplied
138
+ # @yieldparam result [Google::Apis::PubsubliteV1::Operation] parsed result object
139
+ # @yieldparam err [StandardError] error object if request failed
140
+ #
141
+ # @return [Google::Apis::PubsubliteV1::Operation]
142
+ #
143
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
144
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
145
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
146
+ def get_admin_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
147
+ command = make_simple_command(:get, 'v1/admin/{+name}', options)
148
+ command.response_representation = Google::Apis::PubsubliteV1::Operation::Representation
149
+ command.response_class = Google::Apis::PubsubliteV1::Operation
150
+ command.params['name'] = name unless name.nil?
151
+ command.query['fields'] = fields unless fields.nil?
152
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
153
+ execute_or_queue_command(command, &block)
154
+ end
155
+
156
+ # Lists operations that match the specified filter in the request. If the server
157
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
158
+ # binding allows API services to override the binding to use different resource
159
+ # name schemes, such as `users/*/operations`. To override the binding, API
160
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
161
+ # service configuration. For backwards compatibility, the default name includes
162
+ # the operations collection id, however overriding users must ensure the name
163
+ # binding is the parent resource, without the operations collection id.
164
+ # @param [String] name
165
+ # The name of the operation's parent resource.
166
+ # @param [String] filter
167
+ # The standard list filter.
168
+ # @param [Fixnum] page_size
169
+ # The standard list page size.
170
+ # @param [String] page_token
171
+ # The standard list page token.
172
+ # @param [String] fields
173
+ # Selector specifying which fields to include in a partial response.
174
+ # @param [String] quota_user
175
+ # Available to use for quota purposes for server-side applications. Can be any
176
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
177
+ # @param [Google::Apis::RequestOptions] options
178
+ # Request-specific options
179
+ #
180
+ # @yield [result, err] Result & error if block supplied
181
+ # @yieldparam result [Google::Apis::PubsubliteV1::ListOperationsResponse] parsed result object
182
+ # @yieldparam err [StandardError] error object if request failed
183
+ #
184
+ # @return [Google::Apis::PubsubliteV1::ListOperationsResponse]
185
+ #
186
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
187
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
188
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
189
+ def list_admin_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
190
+ command = make_simple_command(:get, 'v1/admin/{+name}/operations', options)
191
+ command.response_representation = Google::Apis::PubsubliteV1::ListOperationsResponse::Representation
192
+ command.response_class = Google::Apis::PubsubliteV1::ListOperationsResponse
193
+ command.params['name'] = name unless name.nil?
194
+ command.query['filter'] = filter unless filter.nil?
195
+ command.query['pageSize'] = page_size unless page_size.nil?
196
+ command.query['pageToken'] = page_token unless page_token.nil?
197
+ command.query['fields'] = fields unless fields.nil?
198
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
199
+ execute_or_queue_command(command, &block)
200
+ end
201
+
52
202
  # Creates a new subscription.
53
203
  # @param [String] parent
54
204
  # Required. The parent location in which to create the subscription. Structured
@@ -232,6 +382,53 @@ module Google
232
382
  execute_or_queue_command(command, &block)
233
383
  end
234
384
 
385
+ # Performs an out-of-band seek for a subscription to a specified target, which
386
+ # may be timestamps or named positions within the message backlog. Seek
387
+ # translates these targets to cursors for each partition and orchestrates
388
+ # subscribers to start consuming messages from these seek cursors. If an
389
+ # operation is returned, the seek has been registered and subscribers will
390
+ # eventually receive messages from the seek cursors (i.e. eventual consistency),
391
+ # as long as they are using a minimum supported client library version and not a
392
+ # system that tracks cursors independently of Pub/Sub Lite (e.g. Apache Beam,
393
+ # Dataflow, Spark). The seek operation will fail for unsupported clients. If
394
+ # clients would like to know when subscribers react to the seek (or not), they
395
+ # can poll the operation. The seek operation will succeed and complete once
396
+ # subscribers are ready to receive messages from the seek cursors for all
397
+ # partitions of the topic. This means that the seek operation will not complete
398
+ # until all subscribers come online. If the previous seek operation has not yet
399
+ # completed, it will be aborted and the new invocation of seek will supersede it.
400
+ # @param [String] name
401
+ # Required. The name of the subscription to seek.
402
+ # @param [Google::Apis::PubsubliteV1::SeekSubscriptionRequest] seek_subscription_request_object
403
+ # @param [String] fields
404
+ # Selector specifying which fields to include in a partial response.
405
+ # @param [String] quota_user
406
+ # Available to use for quota purposes for server-side applications. Can be any
407
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
408
+ # @param [Google::Apis::RequestOptions] options
409
+ # Request-specific options
410
+ #
411
+ # @yield [result, err] Result & error if block supplied
412
+ # @yieldparam result [Google::Apis::PubsubliteV1::Operation] parsed result object
413
+ # @yieldparam err [StandardError] error object if request failed
414
+ #
415
+ # @return [Google::Apis::PubsubliteV1::Operation]
416
+ #
417
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
418
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
419
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
420
+ def seek_subscription(name, seek_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
421
+ command = make_simple_command(:post, 'v1/admin/{+name}:seek', options)
422
+ command.request_representation = Google::Apis::PubsubliteV1::SeekSubscriptionRequest::Representation
423
+ command.request_object = seek_subscription_request_object
424
+ command.response_representation = Google::Apis::PubsubliteV1::Operation::Representation
425
+ command.response_class = Google::Apis::PubsubliteV1::Operation
426
+ command.params['name'] = name unless name.nil?
427
+ command.query['fields'] = fields unless fields.nil?
428
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
429
+ execute_or_queue_command(command, &block)
430
+ end
431
+
235
432
  # Creates a new topic.
236
433
  # @param [String] parent
237
434
  # Required. The parent location in which to create the topic. Structured like `
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
32
- # See, edit, configure, and delete your Google Cloud Platform data
32
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-pubsublite_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.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: 2021-07-05 00:00:00.000000000 Z
11
+ date: 2021-09-06 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/master/generated/google-apis-pubsublite_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-pubsublite_v1/v0.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-pubsublite_v1/v0.11.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-pubsublite_v1
63
63
  post_install_message:
64
64
  rdoc_options: []