google-apis-pubsublite_v1 0.4.0 → 0.9.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: 1039a6c0934a956236babe069e786952608b05b94d5d6bf4956fe0fbbc12e79a
4
- data.tar.gz: 64194fba40bd3b0d0b4acb9fe26a180fea51b7b71201973048cace9fbaf131d0
3
+ metadata.gz: b42e582525d79be0edafefb7ca2107406fe480ce18e8406f85cc7cd6e904284b
4
+ data.tar.gz: 60e09440863c527f649cd388fa86cb073b1277acab3dc0f453827e109862a8a7
5
5
  SHA512:
6
- metadata.gz: 8d0cfdc3c71702892352fdc92144163ffd2270d9a05d0b6c592696f96ccaaa1994fe7d8ce4864d536a58e179e071a4638aeafc93b4235b40bbfea5e796264669
7
- data.tar.gz: 81faf695ac50026d2949683914699d4ec6e1b92c44f1bd9a52cf6f595cc7cc30336aae6ed8e6f007994f778f07650ce81e06ae4060fcf97dfbc3c8ad1f0a3316
6
+ metadata.gz: 22e344425afd9e3b12c6c6c704a83c04f9763961485cd4529413bd6cb72e081a7dbdf5d37bd0225a4f7ac06d430ce37b627642194f79ea9f5acfcf9b45a08498
7
+ data.tar.gz: 2294ceddb452fed6f92a4ac2a219b120d5a4cd0ef148458d34a9ed60fd20625e8eef5cb8fc1fa5bbd974df666faffcdb2a37a2f7de6a6180f9f92f6f33edfde9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-pubsublite_v1
2
2
 
3
+ ### v0.9.0 (2021-06-24)
4
+
5
+ * Regenerated using generator version 0.3.0
6
+
7
+ ### v0.8.0 (2021-05-19)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.7.0 (2021-05-14)
12
+
13
+ * Regenerated from discovery document revision 20210513
14
+
15
+ ### v0.6.0 (2021-03-27)
16
+
17
+ * Regenerated from discovery document revision 20210322
18
+
19
+ ### v0.5.0 (2021-03-20)
20
+
21
+ * Regenerated from discovery document revision 20210316
22
+ * Regenerated using generator version 0.2.0
23
+
3
24
  ### v0.4.0 (2021-03-05)
4
25
 
5
26
  * Regenerated from discovery document revision 20210302
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
32
- # View and manage your data across Google Cloud Platform services
32
+ # See, edit, configure, and delete your Google Cloud Platform data
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
@@ -47,6 +47,45 @@ module Google
47
47
  end
48
48
  end
49
49
 
50
+ # Request for CommitCursor.
51
+ class CommitCursorRequest
52
+ include Google::Apis::Core::Hashable
53
+
54
+ # A cursor that describes the position of a message within a topic partition.
55
+ # Corresponds to the JSON property `cursor`
56
+ # @return [Google::Apis::PubsubliteV1::Cursor]
57
+ attr_accessor :cursor
58
+
59
+ # The partition for which to update the cursor. Partitions are zero indexed, so `
60
+ # partition` must be in the range [0, topic.num_partitions).
61
+ # Corresponds to the JSON property `partition`
62
+ # @return [Fixnum]
63
+ attr_accessor :partition
64
+
65
+ def initialize(**args)
66
+ update!(**args)
67
+ end
68
+
69
+ # Update properties of this object
70
+ def update!(**args)
71
+ @cursor = args[:cursor] if args.key?(:cursor)
72
+ @partition = args[:partition] if args.key?(:partition)
73
+ end
74
+ end
75
+
76
+ # Response for CommitCursor.
77
+ class CommitCursorResponse
78
+ include Google::Apis::Core::Hashable
79
+
80
+ def initialize(**args)
81
+ update!(**args)
82
+ end
83
+
84
+ # Update properties of this object
85
+ def update!(**args)
86
+ end
87
+ end
88
+
50
89
  # Compute the current head cursor for a partition.
51
90
  class ComputeHeadCursorRequest
52
91
  include Google::Apis::Core::Hashable
@@ -157,6 +196,53 @@ module Google
157
196
  end
158
197
  end
159
198
 
199
+ # Compute the corresponding cursor for a publish or event time in a topic
200
+ # partition.
201
+ class ComputeTimeCursorRequest
202
+ include Google::Apis::Core::Hashable
203
+
204
+ # Required. The partition for which we should compute the cursor.
205
+ # Corresponds to the JSON property `partition`
206
+ # @return [Fixnum]
207
+ attr_accessor :partition
208
+
209
+ # A target publish or event time. Can be used for seeking to or retrieving the
210
+ # corresponding cursor.
211
+ # Corresponds to the JSON property `target`
212
+ # @return [Google::Apis::PubsubliteV1::TimeTarget]
213
+ attr_accessor :target
214
+
215
+ def initialize(**args)
216
+ update!(**args)
217
+ end
218
+
219
+ # Update properties of this object
220
+ def update!(**args)
221
+ @partition = args[:partition] if args.key?(:partition)
222
+ @target = args[:target] if args.key?(:target)
223
+ end
224
+ end
225
+
226
+ # Response containing the cursor corresponding to a publish or event time in a
227
+ # topic partition.
228
+ class ComputeTimeCursorResponse
229
+ include Google::Apis::Core::Hashable
230
+
231
+ # A cursor that describes the position of a message within a topic partition.
232
+ # Corresponds to the JSON property `cursor`
233
+ # @return [Google::Apis::PubsubliteV1::Cursor]
234
+ attr_accessor :cursor
235
+
236
+ def initialize(**args)
237
+ update!(**args)
238
+ end
239
+
240
+ # Update properties of this object
241
+ def update!(**args)
242
+ @cursor = args[:cursor] if args.key?(:cursor)
243
+ end
244
+ end
245
+
160
246
  # A cursor that describes the position of a message within a topic partition.
161
247
  class Cursor
162
248
  include Google::Apis::Core::Hashable
@@ -447,6 +533,38 @@ module Google
447
533
  end
448
534
  end
449
535
 
536
+ # A target publish or event time. Can be used for seeking to or retrieving the
537
+ # corresponding cursor.
538
+ class TimeTarget
539
+ include Google::Apis::Core::Hashable
540
+
541
+ # Request the cursor of the first message with event time greater than or equal
542
+ # to `event_time`. If messages are missing an event time, the publish time is
543
+ # used as a fallback. As event times are user supplied, subsequent messages may
544
+ # have event times less than `event_time` and should be filtered by the client,
545
+ # if necessary.
546
+ # Corresponds to the JSON property `eventTime`
547
+ # @return [String]
548
+ attr_accessor :event_time
549
+
550
+ # Request the cursor of the first message with publish time greater than or
551
+ # equal to `publish_time`. All messages thereafter are guaranteed to have
552
+ # publish times >= `publish_time`.
553
+ # Corresponds to the JSON property `publishTime`
554
+ # @return [String]
555
+ attr_accessor :publish_time
556
+
557
+ def initialize(**args)
558
+ update!(**args)
559
+ end
560
+
561
+ # Update properties of this object
562
+ def update!(**args)
563
+ @event_time = args[:event_time] if args.key?(:event_time)
564
+ @publish_time = args[:publish_time] if args.key?(:publish_time)
565
+ end
566
+ end
567
+
450
568
  # Metadata about a topic resource.
451
569
  class Topic
452
570
  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.4.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210302"
25
+ REVISION = "20210513"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,18 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class CommitCursorRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class CommitCursorResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
31
43
  class ComputeHeadCursorRequest
32
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
45
 
@@ -52,6 +64,18 @@ module Google
52
64
  include Google::Apis::Core::JsonObjectSupport
53
65
  end
54
66
 
67
+ class ComputeTimeCursorRequest
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ComputeTimeCursorResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
55
79
  class Cursor
56
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
81
 
@@ -118,6 +142,12 @@ module Google
118
142
  include Google::Apis::Core::JsonObjectSupport
119
143
  end
120
144
 
145
+ class TimeTarget
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
121
151
  class Topic
122
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
153
 
@@ -138,6 +168,21 @@ module Google
138
168
  end
139
169
  end
140
170
 
171
+ class CommitCursorRequest
172
+ # @private
173
+ class Representation < Google::Apis::Core::JsonRepresentation
174
+ property :cursor, as: 'cursor', class: Google::Apis::PubsubliteV1::Cursor, decorator: Google::Apis::PubsubliteV1::Cursor::Representation
175
+
176
+ property :partition, :numeric_string => true, as: 'partition'
177
+ end
178
+ end
179
+
180
+ class CommitCursorResponse
181
+ # @private
182
+ class Representation < Google::Apis::Core::JsonRepresentation
183
+ end
184
+ end
185
+
141
186
  class ComputeHeadCursorRequest
142
187
  # @private
143
188
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -174,6 +219,23 @@ module Google
174
219
  end
175
220
  end
176
221
 
222
+ class ComputeTimeCursorRequest
223
+ # @private
224
+ class Representation < Google::Apis::Core::JsonRepresentation
225
+ property :partition, :numeric_string => true, as: 'partition'
226
+ property :target, as: 'target', class: Google::Apis::PubsubliteV1::TimeTarget, decorator: Google::Apis::PubsubliteV1::TimeTarget::Representation
227
+
228
+ end
229
+ end
230
+
231
+ class ComputeTimeCursorResponse
232
+ # @private
233
+ class Representation < Google::Apis::Core::JsonRepresentation
234
+ property :cursor, as: 'cursor', class: Google::Apis::PubsubliteV1::Cursor, decorator: Google::Apis::PubsubliteV1::Cursor::Representation
235
+
236
+ end
237
+ end
238
+
177
239
  class Cursor
178
240
  # @private
179
241
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -266,6 +328,14 @@ module Google
266
328
  end
267
329
  end
268
330
 
331
+ class TimeTarget
332
+ # @private
333
+ class Representation < Google::Apis::Core::JsonRepresentation
334
+ property :event_time, as: 'eventTime'
335
+ property :publish_time, as: 'publishTime'
336
+ end
337
+ end
338
+
269
339
  class Topic
270
340
  # @private
271
341
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -54,6 +54,10 @@ module Google
54
54
  # Required. The parent location in which to create the subscription. Structured
55
55
  # like `projects/`project_number`/locations/`location``.
56
56
  # @param [Google::Apis::PubsubliteV1::Subscription] subscription_object
57
+ # @param [Boolean] skip_backlog
58
+ # If true, the newly created subscription will only receive messages published
59
+ # after the subscription was created. Otherwise, the entire message backlog will
60
+ # be received on the subscription. Defaults to false.
57
61
  # @param [String] subscription_id
58
62
  # Required. The ID to use for the subscription, which will become the final
59
63
  # component of the subscription's name. This value is structured like: `my-sub-
@@ -75,13 +79,14 @@ module Google
75
79
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
76
80
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
77
81
  # @raise [Google::Apis::AuthorizationError] Authorization is required
78
- def create_admin_project_location_subscription(parent, subscription_object = nil, subscription_id: nil, fields: nil, quota_user: nil, options: nil, &block)
82
+ def create_admin_project_location_subscription(parent, subscription_object = nil, skip_backlog: nil, subscription_id: nil, fields: nil, quota_user: nil, options: nil, &block)
79
83
  command = make_simple_command(:post, 'v1/admin/{+parent}/subscriptions', options)
80
84
  command.request_representation = Google::Apis::PubsubliteV1::Subscription::Representation
81
85
  command.request_object = subscription_object
82
86
  command.response_representation = Google::Apis::PubsubliteV1::Subscription::Representation
83
87
  command.response_class = Google::Apis::PubsubliteV1::Subscription
84
88
  command.params['parent'] = parent unless parent.nil?
89
+ command.query['skipBacklog'] = skip_backlog unless skip_backlog.nil?
85
90
  command.query['subscriptionId'] = subscription_id unless subscription_id.nil?
86
91
  command.query['fields'] = fields unless fields.nil?
87
92
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -473,6 +478,39 @@ module Google
473
478
  execute_or_queue_command(command, &block)
474
479
  end
475
480
 
481
+ # Updates the committed cursor.
482
+ # @param [String] subscription
483
+ # The subscription for which to update the cursor.
484
+ # @param [Google::Apis::PubsubliteV1::CommitCursorRequest] commit_cursor_request_object
485
+ # @param [String] fields
486
+ # Selector specifying which fields to include in a partial response.
487
+ # @param [String] quota_user
488
+ # Available to use for quota purposes for server-side applications. Can be any
489
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
490
+ # @param [Google::Apis::RequestOptions] options
491
+ # Request-specific options
492
+ #
493
+ # @yield [result, err] Result & error if block supplied
494
+ # @yieldparam result [Google::Apis::PubsubliteV1::CommitCursorResponse] parsed result object
495
+ # @yieldparam err [StandardError] error object if request failed
496
+ #
497
+ # @return [Google::Apis::PubsubliteV1::CommitCursorResponse]
498
+ #
499
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
500
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
501
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
502
+ def commit_subscription_cursor(subscription, commit_cursor_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
503
+ command = make_simple_command(:post, 'v1/cursor/{+subscription}:commitCursor', options)
504
+ command.request_representation = Google::Apis::PubsubliteV1::CommitCursorRequest::Representation
505
+ command.request_object = commit_cursor_request_object
506
+ command.response_representation = Google::Apis::PubsubliteV1::CommitCursorResponse::Representation
507
+ command.response_class = Google::Apis::PubsubliteV1::CommitCursorResponse
508
+ command.params['subscription'] = subscription unless subscription.nil?
509
+ command.query['fields'] = fields unless fields.nil?
510
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
511
+ execute_or_queue_command(command, &block)
512
+ end
513
+
476
514
  # Returns all committed cursor information for a subscription.
477
515
  # @param [String] parent
478
516
  # Required. The subscription for which to retrieve cursors. Structured like `
@@ -584,6 +622,40 @@ module Google
584
622
  command.query['quotaUser'] = quota_user unless quota_user.nil?
585
623
  execute_or_queue_command(command, &block)
586
624
  end
625
+
626
+ # Compute the corresponding cursor for a publish or event time in a topic
627
+ # partition.
628
+ # @param [String] topic
629
+ # Required. The topic for which we should compute the cursor.
630
+ # @param [Google::Apis::PubsubliteV1::ComputeTimeCursorRequest] compute_time_cursor_request_object
631
+ # @param [String] fields
632
+ # Selector specifying which fields to include in a partial response.
633
+ # @param [String] quota_user
634
+ # Available to use for quota purposes for server-side applications. Can be any
635
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
636
+ # @param [Google::Apis::RequestOptions] options
637
+ # Request-specific options
638
+ #
639
+ # @yield [result, err] Result & error if block supplied
640
+ # @yieldparam result [Google::Apis::PubsubliteV1::ComputeTimeCursorResponse] parsed result object
641
+ # @yieldparam err [StandardError] error object if request failed
642
+ #
643
+ # @return [Google::Apis::PubsubliteV1::ComputeTimeCursorResponse]
644
+ #
645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
648
+ def compute_topic_time_cursor(topic, compute_time_cursor_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
649
+ command = make_simple_command(:post, 'v1/topicStats/{+topic}:computeTimeCursor', options)
650
+ command.request_representation = Google::Apis::PubsubliteV1::ComputeTimeCursorRequest::Representation
651
+ command.request_object = compute_time_cursor_request_object
652
+ command.response_representation = Google::Apis::PubsubliteV1::ComputeTimeCursorResponse::Representation
653
+ command.response_class = Google::Apis::PubsubliteV1::ComputeTimeCursorResponse
654
+ command.params['topic'] = topic unless topic.nil?
655
+ command.query['fields'] = fields unless fields.nil?
656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
657
+ execute_or_queue_command(command, &block)
658
+ end
587
659
 
588
660
  protected
589
661
 
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.4.0
4
+ version: 0.9.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-03-08 00:00:00.000000000 Z
11
+ date: 2021-06-28 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.3'
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.3'
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.4.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-pubsublite_v1/v0.9.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: []
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.13
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for Pub/Sub Lite API V1