google-apis-pubsublite_v1 0.8.0 → 0.12.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: 1bfea6ba5821f305b4597bd7efcc517236785658882152b799bb4eefd855caf7
4
- data.tar.gz: 222fab1dace398b22999d7707380517940c3cc81e187341e8707f5604f7b7db0
3
+ metadata.gz: e2fce6dbb22dd81a82a804d542f6f77dfb24643c3b93dafba0005f278981a55e
4
+ data.tar.gz: f357f5f1580aec0ed46bd52c598e663c6964fae16bdfefec1effde960c3ddd59
5
5
  SHA512:
6
- metadata.gz: 3d3164b58729960aa93b6f0b6f0fcb811ac5b611514e78d3295ec21e55b7a1177bd404c12d2d44f82726de7d547e3430a49f1accf0f7b21006ef52eb060c843e
7
- data.tar.gz: '03749c3a495029ecac8a3169d699da9c089f1bc3541ad60c31767f359e692dc6ba6abf0f736b43e3f13827161b601be157cc33cab7b614071d40287f53e9633e'
6
+ metadata.gz: 40fc0ed69ed26fa9179491cecac6329a90550b3b6bb7bbfd76dd9fd4b01be128ff0c3ca8fbd7005665fe1365917df90e8bc6df519b1af9679df17e4303a11664
7
+ data.tar.gz: 97f3c00c2b29ffa1abbfed264f5f8e3b1ce584682281a42a8fab709c42fe2fe73f57eb03f98de88ddcc5fa1f28762fe4eddff7d5abdcb83bcdd90bfac1b2b4e1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-pubsublite_v1
2
2
 
3
+ ### v0.12.0 (2021-09-15)
4
+
5
+ * Regenerated from discovery document revision 20210909
6
+
7
+ ### v0.11.0 (2021-09-01)
8
+
9
+ * Regenerated from discovery document revision 20210810
10
+
11
+ ### v0.10.0 (2021-06-29)
12
+
13
+ * Regenerated using generator version 0.4.0
14
+
15
+ ### v0.9.0 (2021-06-24)
16
+
17
+ * Regenerated using generator version 0.3.0
18
+
3
19
  ### v0.8.0 (2021-05-19)
4
20
 
5
21
  * Unspecified changes
@@ -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
@@ -325,6 +363,60 @@ module Google
325
363
  end
326
364
  end
327
365
 
366
+ # Response for ListReservationTopics.
367
+ class ListReservationTopicsResponse
368
+ include Google::Apis::Core::Hashable
369
+
370
+ # A token that can be sent as `page_token` to retrieve the next page of results.
371
+ # If this field is omitted, there are no more results.
372
+ # Corresponds to the JSON property `nextPageToken`
373
+ # @return [String]
374
+ attr_accessor :next_page_token
375
+
376
+ # The names of topics attached to the reservation. The order of the topics is
377
+ # unspecified.
378
+ # Corresponds to the JSON property `topics`
379
+ # @return [Array<String>]
380
+ attr_accessor :topics
381
+
382
+ def initialize(**args)
383
+ update!(**args)
384
+ end
385
+
386
+ # Update properties of this object
387
+ def update!(**args)
388
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
389
+ @topics = args[:topics] if args.key?(:topics)
390
+ end
391
+ end
392
+
393
+ # Response for ListReservations.
394
+ class ListReservationsResponse
395
+ include Google::Apis::Core::Hashable
396
+
397
+ # A token that can be sent as `page_token` to retrieve the next page of results.
398
+ # If this field is omitted, there are no more results.
399
+ # Corresponds to the JSON property `nextPageToken`
400
+ # @return [String]
401
+ attr_accessor :next_page_token
402
+
403
+ # The list of reservation in the requested parent. The order of the reservations
404
+ # is unspecified.
405
+ # Corresponds to the JSON property `reservations`
406
+ # @return [Array<Google::Apis::PubsubliteV1::Reservation>]
407
+ attr_accessor :reservations
408
+
409
+ def initialize(**args)
410
+ update!(**args)
411
+ end
412
+
413
+ # Update properties of this object
414
+ def update!(**args)
415
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
416
+ @reservations = args[:reservations] if args.key?(:reservations)
417
+ end
418
+ end
419
+
328
420
  # Response for ListSubscriptions.
329
421
  class ListSubscriptionsResponse
330
422
  include Google::Apis::Core::Hashable
@@ -406,6 +498,108 @@ module Google
406
498
  end
407
499
  end
408
500
 
501
+ # This resource represents a long-running operation that is the result of a
502
+ # network API call.
503
+ class Operation
504
+ include Google::Apis::Core::Hashable
505
+
506
+ # If the value is `false`, it means the operation is still in progress. If `true`
507
+ # , the operation is completed, and either `error` or `response` is available.
508
+ # Corresponds to the JSON property `done`
509
+ # @return [Boolean]
510
+ attr_accessor :done
511
+ alias_method :done?, :done
512
+
513
+ # The `Status` type defines a logical error model that is suitable for different
514
+ # programming environments, including REST APIs and RPC APIs. It is used by [
515
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
516
+ # data: error code, error message, and error details. You can find out more
517
+ # about this error model and how to work with it in the [API Design Guide](https:
518
+ # //cloud.google.com/apis/design/errors).
519
+ # Corresponds to the JSON property `error`
520
+ # @return [Google::Apis::PubsubliteV1::Status]
521
+ attr_accessor :error
522
+
523
+ # Service-specific metadata associated with the operation. It typically contains
524
+ # progress information and common metadata such as create time. Some services
525
+ # might not provide such metadata. Any method that returns a long-running
526
+ # operation should document the metadata type, if any.
527
+ # Corresponds to the JSON property `metadata`
528
+ # @return [Hash<String,Object>]
529
+ attr_accessor :metadata
530
+
531
+ # The server-assigned name, which is only unique within the same service that
532
+ # originally returns it. If you use the default HTTP mapping, the `name` should
533
+ # be a resource name ending with `operations/`unique_id``.
534
+ # Corresponds to the JSON property `name`
535
+ # @return [String]
536
+ attr_accessor :name
537
+
538
+ # The normal response of the operation in case of success. If the original
539
+ # method returns no data on success, such as `Delete`, the response is `google.
540
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
541
+ # the response should be the resource. For other methods, the response should
542
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
543
+ # example, if the original method name is `TakeSnapshot()`, the inferred
544
+ # response type is `TakeSnapshotResponse`.
545
+ # Corresponds to the JSON property `response`
546
+ # @return [Hash<String,Object>]
547
+ attr_accessor :response
548
+
549
+ def initialize(**args)
550
+ update!(**args)
551
+ end
552
+
553
+ # Update properties of this object
554
+ def update!(**args)
555
+ @done = args[:done] if args.key?(:done)
556
+ @error = args[:error] if args.key?(:error)
557
+ @metadata = args[:metadata] if args.key?(:metadata)
558
+ @name = args[:name] if args.key?(:name)
559
+ @response = args[:response] if args.key?(:response)
560
+ end
561
+ end
562
+
563
+ # Metadata for long running operations.
564
+ class OperationMetadata
565
+ include Google::Apis::Core::Hashable
566
+
567
+ # The time the operation was created.
568
+ # Corresponds to the JSON property `createTime`
569
+ # @return [String]
570
+ attr_accessor :create_time
571
+
572
+ # The time the operation finished running. Not set if the operation has not
573
+ # completed.
574
+ # Corresponds to the JSON property `endTime`
575
+ # @return [String]
576
+ attr_accessor :end_time
577
+
578
+ # Resource path for the target of the operation. For example, targets of seeks
579
+ # are subscription resources, structured like: projects/`project_number`/
580
+ # locations/`location`/subscriptions/`subscription_id`
581
+ # Corresponds to the JSON property `target`
582
+ # @return [String]
583
+ attr_accessor :target
584
+
585
+ # Name of the verb executed by the operation.
586
+ # Corresponds to the JSON property `verb`
587
+ # @return [String]
588
+ attr_accessor :verb
589
+
590
+ def initialize(**args)
591
+ update!(**args)
592
+ end
593
+
594
+ # Update properties of this object
595
+ def update!(**args)
596
+ @create_time = args[:create_time] if args.key?(:create_time)
597
+ @end_time = args[:end_time] if args.key?(:end_time)
598
+ @target = args[:target] if args.key?(:target)
599
+ @verb = args[:verb] if args.key?(:verb)
600
+ end
601
+ end
602
+
409
603
  # The settings for a topic's partitions.
410
604
  class PartitionConfig
411
605
  include Google::Apis::Core::Hashable
@@ -470,6 +664,55 @@ module Google
470
664
  end
471
665
  end
472
666
 
667
+ # Metadata about a reservation resource.
668
+ class Reservation
669
+ include Google::Apis::Core::Hashable
670
+
671
+ # The name of the reservation. Structured like: projects/`project_number`/
672
+ # locations/`location`/reservations/`reservation_id`
673
+ # Corresponds to the JSON property `name`
674
+ # @return [String]
675
+ attr_accessor :name
676
+
677
+ # The reserved throughput capacity. Every unit of throughput capacity is
678
+ # equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed messages.
679
+ # Any topics which are declared as using capacity from a Reservation will
680
+ # consume resources from this reservation instead of being charged individually.
681
+ # Corresponds to the JSON property `throughputCapacity`
682
+ # @return [Fixnum]
683
+ attr_accessor :throughput_capacity
684
+
685
+ def initialize(**args)
686
+ update!(**args)
687
+ end
688
+
689
+ # Update properties of this object
690
+ def update!(**args)
691
+ @name = args[:name] if args.key?(:name)
692
+ @throughput_capacity = args[:throughput_capacity] if args.key?(:throughput_capacity)
693
+ end
694
+ end
695
+
696
+ # The settings for this topic's Reservation usage.
697
+ class ReservationConfig
698
+ include Google::Apis::Core::Hashable
699
+
700
+ # The Reservation to use for this topic's throughput capacity. Structured like:
701
+ # projects/`project_number`/locations/`location`/reservations/`reservation_id`
702
+ # Corresponds to the JSON property `throughputReservation`
703
+ # @return [String]
704
+ attr_accessor :throughput_reservation
705
+
706
+ def initialize(**args)
707
+ update!(**args)
708
+ end
709
+
710
+ # Update properties of this object
711
+ def update!(**args)
712
+ @throughput_reservation = args[:throughput_reservation] if args.key?(:throughput_reservation)
713
+ end
714
+ end
715
+
473
716
  # The settings for a topic's message retention.
474
717
  class RetentionConfig
475
718
  include Google::Apis::Core::Hashable
@@ -500,6 +743,84 @@ module Google
500
743
  end
501
744
  end
502
745
 
746
+ # Request for SeekSubscription.
747
+ class SeekSubscriptionRequest
748
+ include Google::Apis::Core::Hashable
749
+
750
+ # Seek to a named position with respect to the message backlog.
751
+ # Corresponds to the JSON property `namedTarget`
752
+ # @return [String]
753
+ attr_accessor :named_target
754
+
755
+ # A target publish or event time. Can be used for seeking to or retrieving the
756
+ # corresponding cursor.
757
+ # Corresponds to the JSON property `timeTarget`
758
+ # @return [Google::Apis::PubsubliteV1::TimeTarget]
759
+ attr_accessor :time_target
760
+
761
+ def initialize(**args)
762
+ update!(**args)
763
+ end
764
+
765
+ # Update properties of this object
766
+ def update!(**args)
767
+ @named_target = args[:named_target] if args.key?(:named_target)
768
+ @time_target = args[:time_target] if args.key?(:time_target)
769
+ end
770
+ end
771
+
772
+ # Response for SeekSubscription long running operation.
773
+ class SeekSubscriptionResponse
774
+ include Google::Apis::Core::Hashable
775
+
776
+ def initialize(**args)
777
+ update!(**args)
778
+ end
779
+
780
+ # Update properties of this object
781
+ def update!(**args)
782
+ end
783
+ end
784
+
785
+ # The `Status` type defines a logical error model that is suitable for different
786
+ # programming environments, including REST APIs and RPC APIs. It is used by [
787
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
788
+ # data: error code, error message, and error details. You can find out more
789
+ # about this error model and how to work with it in the [API Design Guide](https:
790
+ # //cloud.google.com/apis/design/errors).
791
+ class Status
792
+ include Google::Apis::Core::Hashable
793
+
794
+ # The status code, which should be an enum value of google.rpc.Code.
795
+ # Corresponds to the JSON property `code`
796
+ # @return [Fixnum]
797
+ attr_accessor :code
798
+
799
+ # A list of messages that carry the error details. There is a common set of
800
+ # message types for APIs to use.
801
+ # Corresponds to the JSON property `details`
802
+ # @return [Array<Hash<String,Object>>]
803
+ attr_accessor :details
804
+
805
+ # A developer-facing error message, which should be in English. Any user-facing
806
+ # error message should be localized and sent in the google.rpc.Status.details
807
+ # field, or localized by the client.
808
+ # Corresponds to the JSON property `message`
809
+ # @return [String]
810
+ attr_accessor :message
811
+
812
+ def initialize(**args)
813
+ update!(**args)
814
+ end
815
+
816
+ # Update properties of this object
817
+ def update!(**args)
818
+ @code = args[:code] if args.key?(:code)
819
+ @details = args[:details] if args.key?(:details)
820
+ @message = args[:message] if args.key?(:message)
821
+ end
822
+ end
823
+
503
824
  # Metadata about a subscription resource.
504
825
  class Subscription
505
826
  include Google::Apis::Core::Hashable
@@ -580,6 +901,11 @@ module Google
580
901
  # @return [Google::Apis::PubsubliteV1::PartitionConfig]
581
902
  attr_accessor :partition_config
582
903
 
904
+ # The settings for this topic's Reservation usage.
905
+ # Corresponds to the JSON property `reservationConfig`
906
+ # @return [Google::Apis::PubsubliteV1::ReservationConfig]
907
+ attr_accessor :reservation_config
908
+
583
909
  # The settings for a topic's message retention.
584
910
  # Corresponds to the JSON property `retentionConfig`
585
911
  # @return [Google::Apis::PubsubliteV1::RetentionConfig]
@@ -593,6 +919,7 @@ module Google
593
919
  def update!(**args)
594
920
  @name = args[:name] if args.key?(:name)
595
921
  @partition_config = args[:partition_config] if args.key?(:partition_config)
922
+ @reservation_config = args[:reservation_config] if args.key?(:reservation_config)
596
923
  @retention_config = args[:retention_config] if args.key?(:retention_config)
597
924
  end
598
925
  end
@@ -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.8.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
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 = "20210909"
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,12 +100,30 @@ 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
 
100
112
  include Google::Apis::Core::JsonObjectSupport
101
113
  end
102
114
 
115
+ class ListReservationTopicsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListReservationsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
103
127
  class ListSubscriptionsResponse
104
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
129
 
@@ -118,6 +142,18 @@ module Google
118
142
  include Google::Apis::Core::JsonObjectSupport
119
143
  end
120
144
 
145
+ class Operation
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class OperationMetadata
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
121
157
  class PartitionConfig
122
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
159
 
@@ -130,12 +166,42 @@ module Google
130
166
  include Google::Apis::Core::JsonObjectSupport
131
167
  end
132
168
 
169
+ class Reservation
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class ReservationConfig
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
133
181
  class RetentionConfig
134
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
183
 
136
184
  include Google::Apis::Core::JsonObjectSupport
137
185
  end
138
186
 
187
+ class SeekSubscriptionRequest
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class SeekSubscriptionResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class Status
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
139
205
  class Subscription
140
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
207
 
@@ -160,6 +226,12 @@ module Google
160
226
  include Google::Apis::Core::JsonObjectSupport
161
227
  end
162
228
 
229
+ class CancelOperationRequest
230
+ # @private
231
+ class Representation < Google::Apis::Core::JsonRepresentation
232
+ end
233
+ end
234
+
163
235
  class Capacity
164
236
  # @private
165
237
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -256,6 +328,15 @@ module Google
256
328
  end
257
329
  end
258
330
 
331
+ class ListOperationsResponse
332
+ # @private
333
+ class Representation < Google::Apis::Core::JsonRepresentation
334
+ property :next_page_token, as: 'nextPageToken'
335
+ collection :operations, as: 'operations', class: Google::Apis::PubsubliteV1::Operation, decorator: Google::Apis::PubsubliteV1::Operation::Representation
336
+
337
+ end
338
+ end
339
+
259
340
  class ListPartitionCursorsResponse
260
341
  # @private
261
342
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -265,6 +346,23 @@ module Google
265
346
  end
266
347
  end
267
348
 
349
+ class ListReservationTopicsResponse
350
+ # @private
351
+ class Representation < Google::Apis::Core::JsonRepresentation
352
+ property :next_page_token, as: 'nextPageToken'
353
+ collection :topics, as: 'topics'
354
+ end
355
+ end
356
+
357
+ class ListReservationsResponse
358
+ # @private
359
+ class Representation < Google::Apis::Core::JsonRepresentation
360
+ property :next_page_token, as: 'nextPageToken'
361
+ collection :reservations, as: 'reservations', class: Google::Apis::PubsubliteV1::Reservation, decorator: Google::Apis::PubsubliteV1::Reservation::Representation
362
+
363
+ end
364
+ end
365
+
268
366
  class ListSubscriptionsResponse
269
367
  # @private
270
368
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -291,6 +389,28 @@ module Google
291
389
  end
292
390
  end
293
391
 
392
+ class Operation
393
+ # @private
394
+ class Representation < Google::Apis::Core::JsonRepresentation
395
+ property :done, as: 'done'
396
+ property :error, as: 'error', class: Google::Apis::PubsubliteV1::Status, decorator: Google::Apis::PubsubliteV1::Status::Representation
397
+
398
+ hash :metadata, as: 'metadata'
399
+ property :name, as: 'name'
400
+ hash :response, as: 'response'
401
+ end
402
+ end
403
+
404
+ class OperationMetadata
405
+ # @private
406
+ class Representation < Google::Apis::Core::JsonRepresentation
407
+ property :create_time, as: 'createTime'
408
+ property :end_time, as: 'endTime'
409
+ property :target, as: 'target'
410
+ property :verb, as: 'verb'
411
+ end
412
+ end
413
+
294
414
  class PartitionConfig
295
415
  # @private
296
416
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -310,6 +430,21 @@ module Google
310
430
  end
311
431
  end
312
432
 
433
+ class Reservation
434
+ # @private
435
+ class Representation < Google::Apis::Core::JsonRepresentation
436
+ property :name, as: 'name'
437
+ property :throughput_capacity, :numeric_string => true, as: 'throughputCapacity'
438
+ end
439
+ end
440
+
441
+ class ReservationConfig
442
+ # @private
443
+ class Representation < Google::Apis::Core::JsonRepresentation
444
+ property :throughput_reservation, as: 'throughputReservation'
445
+ end
446
+ end
447
+
313
448
  class RetentionConfig
314
449
  # @private
315
450
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -318,6 +453,30 @@ module Google
318
453
  end
319
454
  end
320
455
 
456
+ class SeekSubscriptionRequest
457
+ # @private
458
+ class Representation < Google::Apis::Core::JsonRepresentation
459
+ property :named_target, as: 'namedTarget'
460
+ property :time_target, as: 'timeTarget', class: Google::Apis::PubsubliteV1::TimeTarget, decorator: Google::Apis::PubsubliteV1::TimeTarget::Representation
461
+
462
+ end
463
+ end
464
+
465
+ class SeekSubscriptionResponse
466
+ # @private
467
+ class Representation < Google::Apis::Core::JsonRepresentation
468
+ end
469
+ end
470
+
471
+ class Status
472
+ # @private
473
+ class Representation < Google::Apis::Core::JsonRepresentation
474
+ property :code, as: 'code'
475
+ collection :details, as: 'details'
476
+ property :message, as: 'message'
477
+ end
478
+ end
479
+
321
480
  class Subscription
322
481
  # @private
323
482
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -342,6 +501,8 @@ module Google
342
501
  property :name, as: 'name'
343
502
  property :partition_config, as: 'partitionConfig', class: Google::Apis::PubsubliteV1::PartitionConfig, decorator: Google::Apis::PubsubliteV1::PartitionConfig::Representation
344
503
 
504
+ property :reservation_config, as: 'reservationConfig', class: Google::Apis::PubsubliteV1::ReservationConfig, decorator: Google::Apis::PubsubliteV1::ReservationConfig::Representation
505
+
345
506
  property :retention_config, as: 'retentionConfig', class: Google::Apis::PubsubliteV1::RetentionConfig, decorator: Google::Apis::PubsubliteV1::RetentionConfig::Representation
346
507
 
347
508
  end
@@ -49,6 +49,378 @@ 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
+
202
+ # Creates a new reservation.
203
+ # @param [String] parent
204
+ # Required. The parent location in which to create the reservation. Structured
205
+ # like `projects/`project_number`/locations/`location``.
206
+ # @param [Google::Apis::PubsubliteV1::Reservation] reservation_object
207
+ # @param [String] reservation_id
208
+ # Required. The ID to use for the reservation, which will become the final
209
+ # component of the reservation's name. This value is structured like: `my-
210
+ # reservation-name`.
211
+ # @param [String] fields
212
+ # Selector specifying which fields to include in a partial response.
213
+ # @param [String] quota_user
214
+ # Available to use for quota purposes for server-side applications. Can be any
215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
216
+ # @param [Google::Apis::RequestOptions] options
217
+ # Request-specific options
218
+ #
219
+ # @yield [result, err] Result & error if block supplied
220
+ # @yieldparam result [Google::Apis::PubsubliteV1::Reservation] parsed result object
221
+ # @yieldparam err [StandardError] error object if request failed
222
+ #
223
+ # @return [Google::Apis::PubsubliteV1::Reservation]
224
+ #
225
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
226
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
227
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
228
+ def create_admin_project_location_reservation(parent, reservation_object = nil, reservation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
229
+ command = make_simple_command(:post, 'v1/admin/{+parent}/reservations', options)
230
+ command.request_representation = Google::Apis::PubsubliteV1::Reservation::Representation
231
+ command.request_object = reservation_object
232
+ command.response_representation = Google::Apis::PubsubliteV1::Reservation::Representation
233
+ command.response_class = Google::Apis::PubsubliteV1::Reservation
234
+ command.params['parent'] = parent unless parent.nil?
235
+ command.query['reservationId'] = reservation_id unless reservation_id.nil?
236
+ command.query['fields'] = fields unless fields.nil?
237
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
238
+ execute_or_queue_command(command, &block)
239
+ end
240
+
241
+ # Deletes the specified reservation.
242
+ # @param [String] name
243
+ # Required. The name of the reservation to delete. Structured like: projects/`
244
+ # project_number`/locations/`location`/reservations/`reservation_id`
245
+ # @param [String] fields
246
+ # Selector specifying which fields to include in a partial response.
247
+ # @param [String] quota_user
248
+ # Available to use for quota purposes for server-side applications. Can be any
249
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
250
+ # @param [Google::Apis::RequestOptions] options
251
+ # Request-specific options
252
+ #
253
+ # @yield [result, err] Result & error if block supplied
254
+ # @yieldparam result [Google::Apis::PubsubliteV1::Empty] parsed result object
255
+ # @yieldparam err [StandardError] error object if request failed
256
+ #
257
+ # @return [Google::Apis::PubsubliteV1::Empty]
258
+ #
259
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
260
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
261
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
262
+ def delete_admin_project_location_reservation(name, fields: nil, quota_user: nil, options: nil, &block)
263
+ command = make_simple_command(:delete, 'v1/admin/{+name}', options)
264
+ command.response_representation = Google::Apis::PubsubliteV1::Empty::Representation
265
+ command.response_class = Google::Apis::PubsubliteV1::Empty
266
+ command.params['name'] = name unless name.nil?
267
+ command.query['fields'] = fields unless fields.nil?
268
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
269
+ execute_or_queue_command(command, &block)
270
+ end
271
+
272
+ # Returns the reservation configuration.
273
+ # @param [String] name
274
+ # Required. The name of the reservation whose configuration to return.
275
+ # Structured like: projects/`project_number`/locations/`location`/reservations/`
276
+ # reservation_id`
277
+ # @param [String] fields
278
+ # Selector specifying which fields to include in a partial response.
279
+ # @param [String] quota_user
280
+ # Available to use for quota purposes for server-side applications. Can be any
281
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
282
+ # @param [Google::Apis::RequestOptions] options
283
+ # Request-specific options
284
+ #
285
+ # @yield [result, err] Result & error if block supplied
286
+ # @yieldparam result [Google::Apis::PubsubliteV1::Reservation] parsed result object
287
+ # @yieldparam err [StandardError] error object if request failed
288
+ #
289
+ # @return [Google::Apis::PubsubliteV1::Reservation]
290
+ #
291
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
292
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
293
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
294
+ def get_admin_project_location_reservation(name, fields: nil, quota_user: nil, options: nil, &block)
295
+ command = make_simple_command(:get, 'v1/admin/{+name}', options)
296
+ command.response_representation = Google::Apis::PubsubliteV1::Reservation::Representation
297
+ command.response_class = Google::Apis::PubsubliteV1::Reservation
298
+ command.params['name'] = name unless name.nil?
299
+ command.query['fields'] = fields unless fields.nil?
300
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
301
+ execute_or_queue_command(command, &block)
302
+ end
303
+
304
+ # Returns the list of reservations for the given project.
305
+ # @param [String] parent
306
+ # Required. The parent whose reservations are to be listed. Structured like `
307
+ # projects/`project_number`/locations/`location``.
308
+ # @param [Fixnum] page_size
309
+ # The maximum number of reservations to return. The service may return fewer
310
+ # than this value. If unset or zero, all reservations for the parent will be
311
+ # returned.
312
+ # @param [String] page_token
313
+ # A page token, received from a previous `ListReservations` call. Provide this
314
+ # to retrieve the subsequent page. When paginating, all other parameters
315
+ # provided to `ListReservations` must match the call that provided the page
316
+ # token.
317
+ # @param [String] fields
318
+ # Selector specifying which fields to include in a partial response.
319
+ # @param [String] quota_user
320
+ # Available to use for quota purposes for server-side applications. Can be any
321
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
322
+ # @param [Google::Apis::RequestOptions] options
323
+ # Request-specific options
324
+ #
325
+ # @yield [result, err] Result & error if block supplied
326
+ # @yieldparam result [Google::Apis::PubsubliteV1::ListReservationsResponse] parsed result object
327
+ # @yieldparam err [StandardError] error object if request failed
328
+ #
329
+ # @return [Google::Apis::PubsubliteV1::ListReservationsResponse]
330
+ #
331
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
332
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
333
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
334
+ def list_admin_project_location_reservations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
335
+ command = make_simple_command(:get, 'v1/admin/{+parent}/reservations', options)
336
+ command.response_representation = Google::Apis::PubsubliteV1::ListReservationsResponse::Representation
337
+ command.response_class = Google::Apis::PubsubliteV1::ListReservationsResponse
338
+ command.params['parent'] = parent unless parent.nil?
339
+ command.query['pageSize'] = page_size unless page_size.nil?
340
+ command.query['pageToken'] = page_token unless page_token.nil?
341
+ command.query['fields'] = fields unless fields.nil?
342
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
343
+ execute_or_queue_command(command, &block)
344
+ end
345
+
346
+ # Updates properties of the specified reservation.
347
+ # @param [String] name
348
+ # The name of the reservation. Structured like: projects/`project_number`/
349
+ # locations/`location`/reservations/`reservation_id`
350
+ # @param [Google::Apis::PubsubliteV1::Reservation] reservation_object
351
+ # @param [String] update_mask
352
+ # Required. A mask specifying the reservation fields to change.
353
+ # @param [String] fields
354
+ # Selector specifying which fields to include in a partial response.
355
+ # @param [String] quota_user
356
+ # Available to use for quota purposes for server-side applications. Can be any
357
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
358
+ # @param [Google::Apis::RequestOptions] options
359
+ # Request-specific options
360
+ #
361
+ # @yield [result, err] Result & error if block supplied
362
+ # @yieldparam result [Google::Apis::PubsubliteV1::Reservation] parsed result object
363
+ # @yieldparam err [StandardError] error object if request failed
364
+ #
365
+ # @return [Google::Apis::PubsubliteV1::Reservation]
366
+ #
367
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
368
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
369
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
370
+ def patch_admin_project_location_reservation(name, reservation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
371
+ command = make_simple_command(:patch, 'v1/admin/{+name}', options)
372
+ command.request_representation = Google::Apis::PubsubliteV1::Reservation::Representation
373
+ command.request_object = reservation_object
374
+ command.response_representation = Google::Apis::PubsubliteV1::Reservation::Representation
375
+ command.response_class = Google::Apis::PubsubliteV1::Reservation
376
+ command.params['name'] = name unless name.nil?
377
+ command.query['updateMask'] = update_mask unless update_mask.nil?
378
+ command.query['fields'] = fields unless fields.nil?
379
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
380
+ execute_or_queue_command(command, &block)
381
+ end
382
+
383
+ # Lists the topics attached to the specified reservation.
384
+ # @param [String] name
385
+ # Required. The name of the reservation whose topics to list. Structured like:
386
+ # projects/`project_number`/locations/`location`/reservations/`reservation_id`
387
+ # @param [Fixnum] page_size
388
+ # The maximum number of topics to return. The service may return fewer than this
389
+ # value. If unset or zero, all topics for the given reservation will be returned.
390
+ # @param [String] page_token
391
+ # A page token, received from a previous `ListReservationTopics` call. Provide
392
+ # this to retrieve the subsequent page. When paginating, all other parameters
393
+ # provided to `ListReservationTopics` must match the call that provided the page
394
+ # token.
395
+ # @param [String] fields
396
+ # Selector specifying which fields to include in a partial response.
397
+ # @param [String] quota_user
398
+ # Available to use for quota purposes for server-side applications. Can be any
399
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
400
+ # @param [Google::Apis::RequestOptions] options
401
+ # Request-specific options
402
+ #
403
+ # @yield [result, err] Result & error if block supplied
404
+ # @yieldparam result [Google::Apis::PubsubliteV1::ListReservationTopicsResponse] parsed result object
405
+ # @yieldparam err [StandardError] error object if request failed
406
+ #
407
+ # @return [Google::Apis::PubsubliteV1::ListReservationTopicsResponse]
408
+ #
409
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
410
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
411
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
412
+ def list_admin_project_location_reservation_topics(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
413
+ command = make_simple_command(:get, 'v1/admin/{+name}/topics', options)
414
+ command.response_representation = Google::Apis::PubsubliteV1::ListReservationTopicsResponse::Representation
415
+ command.response_class = Google::Apis::PubsubliteV1::ListReservationTopicsResponse
416
+ command.params['name'] = name unless name.nil?
417
+ command.query['pageSize'] = page_size unless page_size.nil?
418
+ command.query['pageToken'] = page_token unless page_token.nil?
419
+ command.query['fields'] = fields unless fields.nil?
420
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
421
+ execute_or_queue_command(command, &block)
422
+ end
423
+
52
424
  # Creates a new subscription.
53
425
  # @param [String] parent
54
426
  # Required. The parent location in which to create the subscription. Structured
@@ -232,6 +604,53 @@ module Google
232
604
  execute_or_queue_command(command, &block)
233
605
  end
234
606
 
607
+ # Performs an out-of-band seek for a subscription to a specified target, which
608
+ # may be timestamps or named positions within the message backlog. Seek
609
+ # translates these targets to cursors for each partition and orchestrates
610
+ # subscribers to start consuming messages from these seek cursors. If an
611
+ # operation is returned, the seek has been registered and subscribers will
612
+ # eventually receive messages from the seek cursors (i.e. eventual consistency),
613
+ # as long as they are using a minimum supported client library version and not a
614
+ # system that tracks cursors independently of Pub/Sub Lite (e.g. Apache Beam,
615
+ # Dataflow, Spark). The seek operation will fail for unsupported clients. If
616
+ # clients would like to know when subscribers react to the seek (or not), they
617
+ # can poll the operation. The seek operation will succeed and complete once
618
+ # subscribers are ready to receive messages from the seek cursors for all
619
+ # partitions of the topic. This means that the seek operation will not complete
620
+ # until all subscribers come online. If the previous seek operation has not yet
621
+ # completed, it will be aborted and the new invocation of seek will supersede it.
622
+ # @param [String] name
623
+ # Required. The name of the subscription to seek.
624
+ # @param [Google::Apis::PubsubliteV1::SeekSubscriptionRequest] seek_subscription_request_object
625
+ # @param [String] fields
626
+ # Selector specifying which fields to include in a partial response.
627
+ # @param [String] quota_user
628
+ # Available to use for quota purposes for server-side applications. Can be any
629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
630
+ # @param [Google::Apis::RequestOptions] options
631
+ # Request-specific options
632
+ #
633
+ # @yield [result, err] Result & error if block supplied
634
+ # @yieldparam result [Google::Apis::PubsubliteV1::Operation] parsed result object
635
+ # @yieldparam err [StandardError] error object if request failed
636
+ #
637
+ # @return [Google::Apis::PubsubliteV1::Operation]
638
+ #
639
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
640
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
641
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
642
+ def seek_subscription(name, seek_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
643
+ command = make_simple_command(:post, 'v1/admin/{+name}:seek', options)
644
+ command.request_representation = Google::Apis::PubsubliteV1::SeekSubscriptionRequest::Representation
645
+ command.request_object = seek_subscription_request_object
646
+ command.response_representation = Google::Apis::PubsubliteV1::Operation::Representation
647
+ command.response_class = Google::Apis::PubsubliteV1::Operation
648
+ command.params['name'] = name unless name.nil?
649
+ command.query['fields'] = fields unless fields.nil?
650
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
651
+ execute_or_queue_command(command, &block)
652
+ end
653
+
235
654
  # Creates a new topic.
236
655
  # @param [String] parent
237
656
  # 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,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-pubsublite_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.12.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-05-24 00:00:00.000000000 Z
11
+ date: 2021-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Pub/Sub Lite API V1. Simple REST clients
28
34
  are Ruby client libraries that provide access to Google services via their HTTP
29
35
  REST API endpoints. These libraries are generated and updated automatically based
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-pubsublite_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-pubsublite_v1/v0.8.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-pubsublite_v1/v0.12.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-pubsublite_v1
57
63
  post_install_message:
58
64
  rdoc_options: []