google-apis-pubsublite_v1 0.11.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2fce6dbb22dd81a82a804d542f6f77dfb24643c3b93dafba0005f278981a55e
|
4
|
+
data.tar.gz: f357f5f1580aec0ed46bd52c598e663c6964fae16bdfefec1effde960c3ddd59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40fc0ed69ed26fa9179491cecac6329a90550b3b6bb7bbfd76dd9fd4b01be128ff0c3ca8fbd7005665fe1365917df90e8bc6df519b1af9679df17e4303a11664
|
7
|
+
data.tar.gz: 97f3c00c2b29ffa1abbfed264f5f8e3b1ce584682281a42a8fab709c42fe2fe73f57eb03f98de88ddcc5fa1f28762fe4eddff7d5abdcb83bcdd90bfac1b2b4e1
|
data/CHANGELOG.md
CHANGED
@@ -363,6 +363,60 @@ module Google
|
|
363
363
|
end
|
364
364
|
end
|
365
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
|
+
|
366
420
|
# Response for ListSubscriptions.
|
367
421
|
class ListSubscriptionsResponse
|
368
422
|
include Google::Apis::Core::Hashable
|
@@ -610,6 +664,55 @@ module Google
|
|
610
664
|
end
|
611
665
|
end
|
612
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
|
+
|
613
716
|
# The settings for a topic's message retention.
|
614
717
|
class RetentionConfig
|
615
718
|
include Google::Apis::Core::Hashable
|
@@ -798,6 +901,11 @@ module Google
|
|
798
901
|
# @return [Google::Apis::PubsubliteV1::PartitionConfig]
|
799
902
|
attr_accessor :partition_config
|
800
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
|
+
|
801
909
|
# The settings for a topic's message retention.
|
802
910
|
# Corresponds to the JSON property `retentionConfig`
|
803
911
|
# @return [Google::Apis::PubsubliteV1::RetentionConfig]
|
@@ -811,6 +919,7 @@ module Google
|
|
811
919
|
def update!(**args)
|
812
920
|
@name = args[:name] if args.key?(:name)
|
813
921
|
@partition_config = args[:partition_config] if args.key?(:partition_config)
|
922
|
+
@reservation_config = args[:reservation_config] if args.key?(:reservation_config)
|
814
923
|
@retention_config = args[:retention_config] if args.key?(:retention_config)
|
815
924
|
end
|
816
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.
|
19
|
+
GEM_VERSION = "0.12.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 = "
|
25
|
+
REVISION = "20210909"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -112,6 +112,18 @@ module Google
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
113
113
|
end
|
114
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
|
+
|
115
127
|
class ListSubscriptionsResponse
|
116
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
129
|
|
@@ -154,6 +166,18 @@ module Google
|
|
154
166
|
include Google::Apis::Core::JsonObjectSupport
|
155
167
|
end
|
156
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
|
+
|
157
181
|
class RetentionConfig
|
158
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
183
|
|
@@ -322,6 +346,23 @@ module Google
|
|
322
346
|
end
|
323
347
|
end
|
324
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
|
+
|
325
366
|
class ListSubscriptionsResponse
|
326
367
|
# @private
|
327
368
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -389,6 +430,21 @@ module Google
|
|
389
430
|
end
|
390
431
|
end
|
391
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
|
+
|
392
448
|
class RetentionConfig
|
393
449
|
# @private
|
394
450
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -445,6 +501,8 @@ module Google
|
|
445
501
|
property :name, as: 'name'
|
446
502
|
property :partition_config, as: 'partitionConfig', class: Google::Apis::PubsubliteV1::PartitionConfig, decorator: Google::Apis::PubsubliteV1::PartitionConfig::Representation
|
447
503
|
|
504
|
+
property :reservation_config, as: 'reservationConfig', class: Google::Apis::PubsubliteV1::ReservationConfig, decorator: Google::Apis::PubsubliteV1::ReservationConfig::Representation
|
505
|
+
|
448
506
|
property :retention_config, as: 'retentionConfig', class: Google::Apis::PubsubliteV1::RetentionConfig, decorator: Google::Apis::PubsubliteV1::RetentionConfig::Representation
|
449
507
|
|
450
508
|
end
|
@@ -199,6 +199,228 @@ module Google
|
|
199
199
|
execute_or_queue_command(command, &block)
|
200
200
|
end
|
201
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
|
+
|
202
424
|
# Creates a new subscription.
|
203
425
|
# @param [String] parent
|
204
426
|
# Required. The parent location in which to create the subscription. Structured
|
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.
|
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-09-
|
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
|
@@ -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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-pubsublite_v1/v0.12.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: []
|