google-apis-pubsublite_v1 0.1.0 → 0.2.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: 2c1ea93e478c6ca8eeb0df5e1c2f9bd80c75a0f4100f71abd74995d37543d20e
4
- data.tar.gz: a31ca4de45c775ea54457c81677a9cd724a5e297a9689fe2d27757d5dd64a05d
3
+ metadata.gz: bd39f992772e40ef1b6515b62e89a600362caa10e342e9cff070a4c62541be25
4
+ data.tar.gz: 6aac6fed88ac0b109ae10c2f93939fa866db9eeab8fe6bfcef3ac3b365afd82d
5
5
  SHA512:
6
- metadata.gz: 40db00b4f2e43851f96806ad22734024c499d2e744a98ab150c87d3a84192e573b1fce28a10fd2a7c41162b2e85caa8096579a300b5c434617b0622763f07ca9
7
- data.tar.gz: 3b53c97e272865ad3921dbc9922e99d247dfba86604c69e55b602103d6ec755e1f04d32fcb4be1fe275e05b28f3ab822d08e740c4430300abdab770bdee30704
6
+ metadata.gz: 9d6e461b6dd2b331116e642d711bd67834bc718db311febee3b19499fdea188ffe12ba88b5a0540bf1984fe7eb3322e1f1f0d43659f04cff0248e324c66bac89
7
+ data.tar.gz: 1c2212c4485af6d835f0cf58fbcd568c8e4fcfc58147ca0f384b1e5009f77b4839bb7c710a4256aaed16b5bc1bac3d38adc86c5b1e6d4ca5010aa6eb659f0229
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-pubsublite_v1
2
2
 
3
+ ### v0.2.0 (2021-02-09)
4
+
5
+ * Regenerated from discovery document revision 20210202
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.1.0 (2021-01-07)
4
9
 
5
10
  * Regenerated using generator version 0.1.1
@@ -47,6 +47,44 @@ module Google
47
47
  end
48
48
  end
49
49
 
50
+ # Compute the current head cursor for a partition.
51
+ class ComputeHeadCursorRequest
52
+ include Google::Apis::Core::Hashable
53
+
54
+ # Required. The partition for which we should compute the head cursor.
55
+ # Corresponds to the JSON property `partition`
56
+ # @return [Fixnum]
57
+ attr_accessor :partition
58
+
59
+ def initialize(**args)
60
+ update!(**args)
61
+ end
62
+
63
+ # Update properties of this object
64
+ def update!(**args)
65
+ @partition = args[:partition] if args.key?(:partition)
66
+ end
67
+ end
68
+
69
+ # Response containing the head cursor for the requested topic and partition.
70
+ class ComputeHeadCursorResponse
71
+ include Google::Apis::Core::Hashable
72
+
73
+ # A cursor that describes the position of a message within a topic partition.
74
+ # Corresponds to the JSON property `headCursor`
75
+ # @return [Google::Apis::PubsubliteV1::Cursor]
76
+ attr_accessor :head_cursor
77
+
78
+ def initialize(**args)
79
+ update!(**args)
80
+ end
81
+
82
+ # Update properties of this object
83
+ def update!(**args)
84
+ @head_cursor = args[:head_cursor] if args.key?(:head_cursor)
85
+ end
86
+ end
87
+
50
88
  # Compute statistics about a range of messages in a given topic and partition.
51
89
  class ComputeMessageStatsRequest
52
90
  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.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20200929"
25
+ REVISION = "20210202"
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 ComputeHeadCursorRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ComputeHeadCursorResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
31
43
  class ComputeMessageStatsRequest
32
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
45
 
@@ -126,6 +138,21 @@ module Google
126
138
  end
127
139
  end
128
140
 
141
+ class ComputeHeadCursorRequest
142
+ # @private
143
+ class Representation < Google::Apis::Core::JsonRepresentation
144
+ property :partition, :numeric_string => true, as: 'partition'
145
+ end
146
+ end
147
+
148
+ class ComputeHeadCursorResponse
149
+ # @private
150
+ class Representation < Google::Apis::Core::JsonRepresentation
151
+ property :head_cursor, as: 'headCursor', class: Google::Apis::PubsubliteV1::Cursor, decorator: Google::Apis::PubsubliteV1::Cursor::Representation
152
+
153
+ end
154
+ end
155
+
129
156
  class ComputeMessageStatsRequest
130
157
  # @private
131
158
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -515,6 +515,43 @@ module Google
515
515
  execute_or_queue_command(command, &block)
516
516
  end
517
517
 
518
+ # Compute the head cursor for the partition. The head cursor’s offset is
519
+ # guaranteed to be before or equal to all messages which have not yet been
520
+ # acknowledged to be published, and greater than the offset of any message whose
521
+ # publish has already been acknowledged. It is 0 if there have never been
522
+ # messages on the partition.
523
+ # @param [String] topic
524
+ # Required. The topic for which we should compute the head cursor.
525
+ # @param [Google::Apis::PubsubliteV1::ComputeHeadCursorRequest] compute_head_cursor_request_object
526
+ # @param [String] fields
527
+ # Selector specifying which fields to include in a partial response.
528
+ # @param [String] quota_user
529
+ # Available to use for quota purposes for server-side applications. Can be any
530
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
531
+ # @param [Google::Apis::RequestOptions] options
532
+ # Request-specific options
533
+ #
534
+ # @yield [result, err] Result & error if block supplied
535
+ # @yieldparam result [Google::Apis::PubsubliteV1::ComputeHeadCursorResponse] parsed result object
536
+ # @yieldparam err [StandardError] error object if request failed
537
+ #
538
+ # @return [Google::Apis::PubsubliteV1::ComputeHeadCursorResponse]
539
+ #
540
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
541
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
542
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
543
+ def compute_topic_head_cursor(topic, compute_head_cursor_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
544
+ command = make_simple_command(:post, 'v1/topicStats/{+topic}:computeHeadCursor', options)
545
+ command.request_representation = Google::Apis::PubsubliteV1::ComputeHeadCursorRequest::Representation
546
+ command.request_object = compute_head_cursor_request_object
547
+ command.response_representation = Google::Apis::PubsubliteV1::ComputeHeadCursorResponse::Representation
548
+ command.response_class = Google::Apis::PubsubliteV1::ComputeHeadCursorResponse
549
+ command.params['topic'] = topic unless topic.nil?
550
+ command.query['fields'] = fields unless fields.nil?
551
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
552
+ execute_or_queue_command(command, &block)
553
+ end
554
+
518
555
  # Compute statistics about a range of messages in a given topic and partition.
519
556
  # @param [String] topic
520
557
  # Required. The topic for which we should compute message stats.
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.1.0
4
+ version: 0.2.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-01-08 00:00:00.000000000 Z
11
+ date: 2021-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  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.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-pubsublite_v1/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-pubsublite_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Pub/Sub Lite API V1