google-apis-pubsublite_v1 0.1.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -0
- data/lib/google/apis/pubsublite_v1.rb +1 -1
- data/lib/google/apis/pubsublite_v1/classes.rb +42 -1
- data/lib/google/apis/pubsublite_v1/gem_version.rb +3 -3
- data/lib/google/apis/pubsublite_v1/representations.rb +27 -0
- data/lib/google/apis/pubsublite_v1/service.rb +43 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d3cf49e7efeb57f25bec3f18d930ef758f629d1deb5536b8ca00a1b40e87c93
|
4
|
+
data.tar.gz: e50cbdd0d8fbbf1d0b466b75910dbb626a3b811483c96d89e150d3543d5a5167
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89479329388aaea38036e3bbdba39c6712db185cc2cd4e4e14332505fc92b63e26e0d813672002e5f238d4f9a7a4ea70654b6a6831a1cba7849598f556a45dfa
|
7
|
+
data.tar.gz: 905853600f0f091c69dd813140ec493a2ddf92ce8a2d9f35e62d2df16c48bc049b405dc04720d4b2e77794d6a7ddda1938bc1c9a739521bb900f6975a5d44d5d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,28 @@
|
|
1
1
|
# Release history for google-apis-pubsublite_v1
|
2
2
|
|
3
|
+
### v0.6.0 (2021-03-27)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210322
|
6
|
+
|
7
|
+
### v0.5.0 (2021-03-20)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210316
|
10
|
+
* Regenerated using generator version 0.2.0
|
11
|
+
|
12
|
+
### v0.4.0 (2021-03-05)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210302
|
15
|
+
* Unspecified changes
|
16
|
+
|
17
|
+
### v0.3.0 (2021-02-27)
|
18
|
+
|
19
|
+
* Regenerated from discovery document revision 20210224
|
20
|
+
|
21
|
+
### v0.2.0 (2021-02-09)
|
22
|
+
|
23
|
+
* Regenerated from discovery document revision 20210202
|
24
|
+
* Regenerated using generator version 0.1.2
|
25
|
+
|
3
26
|
### v0.1.0 (2021-01-07)
|
4
27
|
|
5
28
|
* Regenerated using generator version 0.1.1
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1'
|
31
31
|
|
32
|
-
#
|
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,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
|
@@ -291,7 +329,10 @@ module Google
|
|
291
329
|
# @return [Google::Apis::PubsubliteV1::Capacity]
|
292
330
|
attr_accessor :capacity
|
293
331
|
|
294
|
-
# The number of partitions in the topic. Must be at least 1.
|
332
|
+
# The number of partitions in the topic. Must be at least 1. Once a topic has
|
333
|
+
# been created the number of partitions can be increased but not decreased.
|
334
|
+
# Message ordering is not guaranteed across a topic resize. For more information
|
335
|
+
# see https://cloud.google.com/pubsub/lite/docs/topics#scaling_capacity
|
295
336
|
# Corresponds to the JSON property `count`
|
296
337
|
# @return [Fixnum]
|
297
338
|
attr_accessor :count
|
@@ -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.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210322"
|
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
|
@@ -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?
|
@@ -515,6 +520,43 @@ module Google
|
|
515
520
|
execute_or_queue_command(command, &block)
|
516
521
|
end
|
517
522
|
|
523
|
+
# Compute the head cursor for the partition. The head cursor's offset is
|
524
|
+
# guaranteed to be less than or equal to all messages which have not yet been
|
525
|
+
# acknowledged as published, and greater than the offset of any message whose
|
526
|
+
# publish has already been acknowledged. It is zero if there have never been
|
527
|
+
# messages in the partition.
|
528
|
+
# @param [String] topic
|
529
|
+
# Required. The topic for which we should compute the head cursor.
|
530
|
+
# @param [Google::Apis::PubsubliteV1::ComputeHeadCursorRequest] compute_head_cursor_request_object
|
531
|
+
# @param [String] fields
|
532
|
+
# Selector specifying which fields to include in a partial response.
|
533
|
+
# @param [String] quota_user
|
534
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
535
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
536
|
+
# @param [Google::Apis::RequestOptions] options
|
537
|
+
# Request-specific options
|
538
|
+
#
|
539
|
+
# @yield [result, err] Result & error if block supplied
|
540
|
+
# @yieldparam result [Google::Apis::PubsubliteV1::ComputeHeadCursorResponse] parsed result object
|
541
|
+
# @yieldparam err [StandardError] error object if request failed
|
542
|
+
#
|
543
|
+
# @return [Google::Apis::PubsubliteV1::ComputeHeadCursorResponse]
|
544
|
+
#
|
545
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
546
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
547
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
548
|
+
def compute_topic_head_cursor(topic, compute_head_cursor_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
549
|
+
command = make_simple_command(:post, 'v1/topicStats/{+topic}:computeHeadCursor', options)
|
550
|
+
command.request_representation = Google::Apis::PubsubliteV1::ComputeHeadCursorRequest::Representation
|
551
|
+
command.request_object = compute_head_cursor_request_object
|
552
|
+
command.response_representation = Google::Apis::PubsubliteV1::ComputeHeadCursorResponse::Representation
|
553
|
+
command.response_class = Google::Apis::PubsubliteV1::ComputeHeadCursorResponse
|
554
|
+
command.params['topic'] = topic unless topic.nil?
|
555
|
+
command.query['fields'] = fields unless fields.nil?
|
556
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
557
|
+
execute_or_queue_command(command, &block)
|
558
|
+
end
|
559
|
+
|
518
560
|
# Compute statistics about a range of messages in a given topic and partition.
|
519
561
|
# @param [String] topic
|
520
562
|
# 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.
|
4
|
+
version: 0.6.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-
|
11
|
+
date: 2021-03-29 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.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-pubsublite_v1/v0.6.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: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.13
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Pub/Sub Lite API V1
|