google-cloud-pubsub-v1 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +2 -2
- data/lib/google/cloud/pubsub/v1.rb +5 -1
- data/lib/google/cloud/pubsub/v1/publisher/client.rb +10 -3
- data/lib/google/cloud/pubsub/v1/publisher/paths.rb +17 -0
- data/lib/google/cloud/pubsub/v1/schema_service.rb +47 -0
- data/lib/google/cloud/pubsub/v1/schema_service/client.rb +777 -0
- data/lib/google/cloud/pubsub/v1/schema_service/credentials.rb +52 -0
- data/lib/google/cloud/pubsub/v1/schema_service/paths.rb +64 -0
- data/lib/google/cloud/pubsub/v1/subscriber/client.rb +2 -2
- data/lib/google/cloud/pubsub/v1/version.rb +1 -1
- data/lib/google/iam/v1/iam_policy_services_pb.rb +3 -3
- data/lib/google/pubsub/v1/pubsub_pb.rb +8 -0
- data/lib/google/pubsub/v1/pubsub_services_pb.rb +29 -29
- data/lib/google/pubsub/v1/schema_pb.rb +95 -0
- data/lib/google/pubsub/v1/schema_services_pb.rb +58 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/pubsub/v1/pubsub.rb +24 -0
- data/proto_docs/google/pubsub/v1/schema.rb +216 -0
- metadata +10 -3
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module PubSub
|
24
|
+
module V1
|
25
|
+
module SchemaService
|
26
|
+
# Credentials for the SchemaService API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
30
|
+
"https://www.googleapis.com/auth/pubsub"
|
31
|
+
]
|
32
|
+
self.env_vars = [
|
33
|
+
"PUBSUB_CREDENTIALS",
|
34
|
+
"PUBSUB_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE",
|
37
|
+
"GCLOUD_KEYFILE",
|
38
|
+
"PUBSUB_CREDENTIALS_JSON",
|
39
|
+
"PUBSUB_KEYFILE_JSON",
|
40
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
41
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
42
|
+
"GCLOUD_KEYFILE_JSON"
|
43
|
+
]
|
44
|
+
self.paths = [
|
45
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
46
|
+
]
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module PubSub
|
23
|
+
module V1
|
24
|
+
module SchemaService
|
25
|
+
# Path helper methods for the SchemaService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Project resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
#
|
36
|
+
# @return [::String]
|
37
|
+
def project_path project:
|
38
|
+
"projects/#{project}"
|
39
|
+
end
|
40
|
+
|
41
|
+
##
|
42
|
+
# Create a fully-qualified Schema resource string.
|
43
|
+
#
|
44
|
+
# The resource will be in the following format:
|
45
|
+
#
|
46
|
+
# `projects/{project}/schemas/{schema}`
|
47
|
+
#
|
48
|
+
# @param project [String]
|
49
|
+
# @param schema [String]
|
50
|
+
#
|
51
|
+
# @return [::String]
|
52
|
+
def schema_path project:, schema:
|
53
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
54
|
+
|
55
|
+
"projects/#{project}/schemas/#{schema}"
|
56
|
+
end
|
57
|
+
|
58
|
+
extend self
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -1499,8 +1499,8 @@ module Google
|
|
1499
1499
|
|
1500
1500
|
##
|
1501
1501
|
# Seeks an existing subscription to a point in time or to a given snapshot,
|
1502
|
-
# whichever is provided in the request. Snapshots are used in [Seek]
|
1503
|
-
# https://cloud.google.com/pubsub/docs/replay-overview) operations, which
|
1502
|
+
# whichever is provided in the request. Snapshots are used in [Seek]
|
1503
|
+
# (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
|
1504
1504
|
# allow you to manage message acknowledgments in bulk. That is, you can set
|
1505
1505
|
# the acknowledgment state of messages in an existing subscription to the
|
1506
1506
|
# state captured by a snapshot. Note that both the subscription and the
|
@@ -59,11 +59,11 @@ module Google
|
|
59
59
|
|
60
60
|
# Sets the access control policy on the specified resource. Replaces any
|
61
61
|
# existing policy.
|
62
|
-
rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
|
62
|
+
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
63
63
|
# Gets the access control policy for a resource.
|
64
64
|
# Returns an empty policy if the resource exists and does not have a policy
|
65
65
|
# set.
|
66
|
-
rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
|
66
|
+
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
67
67
|
# Returns permissions that a caller has on the specified resource.
|
68
68
|
# If the resource does not exist, this will return an empty set of
|
69
69
|
# permissions, not a NOT_FOUND error.
|
@@ -71,7 +71,7 @@ module Google
|
|
71
71
|
# Note: This operation is designed to be used for building permission-aware
|
72
72
|
# UIs and command-line tools, not for authorization checking. This operation
|
73
73
|
# may "fail open" without warning.
|
74
|
-
rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
|
74
|
+
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
75
75
|
end
|
76
76
|
|
77
77
|
Stub = Service.rpc_stub_class
|
@@ -11,16 +11,23 @@ require 'google/protobuf/duration_pb'
|
|
11
11
|
require 'google/protobuf/empty_pb'
|
12
12
|
require 'google/protobuf/field_mask_pb'
|
13
13
|
require 'google/protobuf/timestamp_pb'
|
14
|
+
require 'google/pubsub/v1/schema_pb'
|
14
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
16
|
add_file("google/pubsub/v1/pubsub.proto", :syntax => :proto3) do
|
16
17
|
add_message "google.pubsub.v1.MessageStoragePolicy" do
|
17
18
|
repeated :allowed_persistence_regions, :string, 1
|
18
19
|
end
|
20
|
+
add_message "google.pubsub.v1.SchemaSettings" do
|
21
|
+
optional :schema, :string, 1
|
22
|
+
optional :encoding, :enum, 2, "google.pubsub.v1.Encoding"
|
23
|
+
end
|
19
24
|
add_message "google.pubsub.v1.Topic" do
|
20
25
|
optional :name, :string, 1
|
21
26
|
map :labels, :string, :string, 2
|
22
27
|
optional :message_storage_policy, :message, 3, "google.pubsub.v1.MessageStoragePolicy"
|
23
28
|
optional :kms_key_name, :string, 5
|
29
|
+
optional :schema_settings, :message, 6, "google.pubsub.v1.SchemaSettings"
|
30
|
+
optional :satisfies_pzs, :bool, 7
|
24
31
|
end
|
25
32
|
add_message "google.pubsub.v1.PubsubMessage" do
|
26
33
|
optional :data, :bytes, 1
|
@@ -220,6 +227,7 @@ module Google
|
|
220
227
|
module PubSub
|
221
228
|
module V1
|
222
229
|
MessageStoragePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.MessageStoragePolicy").msgclass
|
230
|
+
SchemaSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.SchemaSettings").msgclass
|
223
231
|
Topic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Topic").msgclass
|
224
232
|
PubsubMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PubsubMessage").msgclass
|
225
233
|
GetTopicRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetTopicRequest").msgclass
|
@@ -34,38 +34,38 @@ module Google
|
|
34
34
|
self.unmarshal_class_method = :decode
|
35
35
|
self.service_name = 'google.pubsub.v1.Publisher'
|
36
36
|
|
37
|
-
# Creates the given topic with the given name. See the [resource name rules]
|
38
|
-
# https://cloud.google.com/pubsub/docs/admin#resource_names).
|
39
|
-
rpc :CreateTopic, Google::Cloud::PubSub::V1::Topic, Google::Cloud::PubSub::V1::Topic
|
37
|
+
# Creates the given topic with the given name. See the [resource name rules]
|
38
|
+
# (https://cloud.google.com/pubsub/docs/admin#resource_names).
|
39
|
+
rpc :CreateTopic, ::Google::Cloud::PubSub::V1::Topic, ::Google::Cloud::PubSub::V1::Topic
|
40
40
|
# Updates an existing topic. Note that certain properties of a
|
41
41
|
# topic are not modifiable.
|
42
|
-
rpc :UpdateTopic, Google::Cloud::PubSub::V1::UpdateTopicRequest, Google::Cloud::PubSub::V1::Topic
|
42
|
+
rpc :UpdateTopic, ::Google::Cloud::PubSub::V1::UpdateTopicRequest, ::Google::Cloud::PubSub::V1::Topic
|
43
43
|
# Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
|
44
44
|
# does not exist.
|
45
|
-
rpc :Publish, Google::Cloud::PubSub::V1::PublishRequest, Google::Cloud::PubSub::V1::PublishResponse
|
45
|
+
rpc :Publish, ::Google::Cloud::PubSub::V1::PublishRequest, ::Google::Cloud::PubSub::V1::PublishResponse
|
46
46
|
# Gets the configuration of a topic.
|
47
|
-
rpc :GetTopic, Google::Cloud::PubSub::V1::GetTopicRequest, Google::Cloud::PubSub::V1::Topic
|
47
|
+
rpc :GetTopic, ::Google::Cloud::PubSub::V1::GetTopicRequest, ::Google::Cloud::PubSub::V1::Topic
|
48
48
|
# Lists matching topics.
|
49
|
-
rpc :ListTopics, Google::Cloud::PubSub::V1::ListTopicsRequest, Google::Cloud::PubSub::V1::ListTopicsResponse
|
49
|
+
rpc :ListTopics, ::Google::Cloud::PubSub::V1::ListTopicsRequest, ::Google::Cloud::PubSub::V1::ListTopicsResponse
|
50
50
|
# Lists the names of the attached subscriptions on this topic.
|
51
|
-
rpc :ListTopicSubscriptions, Google::Cloud::PubSub::V1::ListTopicSubscriptionsRequest, Google::Cloud::PubSub::V1::ListTopicSubscriptionsResponse
|
51
|
+
rpc :ListTopicSubscriptions, ::Google::Cloud::PubSub::V1::ListTopicSubscriptionsRequest, ::Google::Cloud::PubSub::V1::ListTopicSubscriptionsResponse
|
52
52
|
# Lists the names of the snapshots on this topic. Snapshots are used in
|
53
53
|
# [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
|
54
54
|
# which allow you to manage message acknowledgments in bulk. That is, you can
|
55
55
|
# set the acknowledgment state of messages in an existing subscription to the
|
56
56
|
# state captured by a snapshot.
|
57
|
-
rpc :ListTopicSnapshots, Google::Cloud::PubSub::V1::ListTopicSnapshotsRequest, Google::Cloud::PubSub::V1::ListTopicSnapshotsResponse
|
57
|
+
rpc :ListTopicSnapshots, ::Google::Cloud::PubSub::V1::ListTopicSnapshotsRequest, ::Google::Cloud::PubSub::V1::ListTopicSnapshotsResponse
|
58
58
|
# Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
|
59
59
|
# does not exist. After a topic is deleted, a new topic may be created with
|
60
60
|
# the same name; this is an entirely new topic with none of the old
|
61
61
|
# configuration or subscriptions. Existing subscriptions to this topic are
|
62
62
|
# not deleted, but their `topic` field is set to `_deleted-topic_`.
|
63
|
-
rpc :DeleteTopic, Google::Cloud::PubSub::V1::DeleteTopicRequest, Google::Protobuf::Empty
|
63
|
+
rpc :DeleteTopic, ::Google::Cloud::PubSub::V1::DeleteTopicRequest, ::Google::Protobuf::Empty
|
64
64
|
# Detaches a subscription from this topic. All messages retained in the
|
65
65
|
# subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
|
66
66
|
# will return FAILED_PRECONDITION. If the subscription is a push
|
67
67
|
# subscription, pushes to the endpoint will stop.
|
68
|
-
rpc :DetachSubscription, Google::Cloud::PubSub::V1::DetachSubscriptionRequest, Google::Cloud::PubSub::V1::DetachSubscriptionResponse
|
68
|
+
rpc :DetachSubscription, ::Google::Cloud::PubSub::V1::DetachSubscriptionRequest, ::Google::Cloud::PubSub::V1::DetachSubscriptionResponse
|
69
69
|
end
|
70
70
|
|
71
71
|
Stub = Service.rpc_stub_class
|
@@ -93,26 +93,26 @@ module Google
|
|
93
93
|
# (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated
|
94
94
|
# name is populated in the returned Subscription object. Note that for REST
|
95
95
|
# API requests, you must specify a name in the request.
|
96
|
-
rpc :CreateSubscription, Google::Cloud::PubSub::V1::Subscription, Google::Cloud::PubSub::V1::Subscription
|
96
|
+
rpc :CreateSubscription, ::Google::Cloud::PubSub::V1::Subscription, ::Google::Cloud::PubSub::V1::Subscription
|
97
97
|
# Gets the configuration details of a subscription.
|
98
|
-
rpc :GetSubscription, Google::Cloud::PubSub::V1::GetSubscriptionRequest, Google::Cloud::PubSub::V1::Subscription
|
98
|
+
rpc :GetSubscription, ::Google::Cloud::PubSub::V1::GetSubscriptionRequest, ::Google::Cloud::PubSub::V1::Subscription
|
99
99
|
# Updates an existing subscription. Note that certain properties of a
|
100
100
|
# subscription, such as its topic, are not modifiable.
|
101
|
-
rpc :UpdateSubscription, Google::Cloud::PubSub::V1::UpdateSubscriptionRequest, Google::Cloud::PubSub::V1::Subscription
|
101
|
+
rpc :UpdateSubscription, ::Google::Cloud::PubSub::V1::UpdateSubscriptionRequest, ::Google::Cloud::PubSub::V1::Subscription
|
102
102
|
# Lists matching subscriptions.
|
103
|
-
rpc :ListSubscriptions, Google::Cloud::PubSub::V1::ListSubscriptionsRequest, Google::Cloud::PubSub::V1::ListSubscriptionsResponse
|
103
|
+
rpc :ListSubscriptions, ::Google::Cloud::PubSub::V1::ListSubscriptionsRequest, ::Google::Cloud::PubSub::V1::ListSubscriptionsResponse
|
104
104
|
# Deletes an existing subscription. All messages retained in the subscription
|
105
105
|
# are immediately dropped. Calls to `Pull` after deletion will return
|
106
106
|
# `NOT_FOUND`. After a subscription is deleted, a new one may be created with
|
107
107
|
# the same name, but the new one has no association with the old
|
108
108
|
# subscription or its topic unless the same topic is specified.
|
109
|
-
rpc :DeleteSubscription, Google::Cloud::PubSub::V1::DeleteSubscriptionRequest, Google::Protobuf::Empty
|
109
|
+
rpc :DeleteSubscription, ::Google::Cloud::PubSub::V1::DeleteSubscriptionRequest, ::Google::Protobuf::Empty
|
110
110
|
# Modifies the ack deadline for a specific message. This method is useful
|
111
111
|
# to indicate that more time is needed to process a message by the
|
112
112
|
# subscriber, or to make the message available for redelivery if the
|
113
113
|
# processing was interrupted. Note that this does not modify the
|
114
114
|
# subscription-level `ackDeadlineSeconds` used for subsequent messages.
|
115
|
-
rpc :ModifyAckDeadline, Google::Cloud::PubSub::V1::ModifyAckDeadlineRequest, Google::Protobuf::Empty
|
115
|
+
rpc :ModifyAckDeadline, ::Google::Cloud::PubSub::V1::ModifyAckDeadlineRequest, ::Google::Protobuf::Empty
|
116
116
|
# Acknowledges the messages associated with the `ack_ids` in the
|
117
117
|
# `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
|
118
118
|
# from the subscription.
|
@@ -120,11 +120,11 @@ module Google
|
|
120
120
|
# Acknowledging a message whose ack deadline has expired may succeed,
|
121
121
|
# but such a message may be redelivered later. Acknowledging a message more
|
122
122
|
# than once will not result in an error.
|
123
|
-
rpc :Acknowledge, Google::Cloud::PubSub::V1::AcknowledgeRequest, Google::Protobuf::Empty
|
123
|
+
rpc :Acknowledge, ::Google::Cloud::PubSub::V1::AcknowledgeRequest, ::Google::Protobuf::Empty
|
124
124
|
# Pulls messages from the server. The server may return `UNAVAILABLE` if
|
125
125
|
# there are too many concurrent pull requests pending for the given
|
126
126
|
# subscription.
|
127
|
-
rpc :Pull, Google::Cloud::PubSub::V1::PullRequest, Google::Cloud::PubSub::V1::PullResponse
|
127
|
+
rpc :Pull, ::Google::Cloud::PubSub::V1::PullRequest, ::Google::Cloud::PubSub::V1::PullResponse
|
128
128
|
# Establishes a stream with the server, which sends messages down to the
|
129
129
|
# client. The client streams acknowledgements and ack deadline modifications
|
130
130
|
# back to the server. The server will close the stream and return the status
|
@@ -132,26 +132,26 @@ module Google
|
|
132
132
|
# reassign server-side resources, in which case, the client should
|
133
133
|
# re-establish the stream. Flow control can be achieved by configuring the
|
134
134
|
# underlying RPC channel.
|
135
|
-
rpc :StreamingPull, stream(Google::Cloud::PubSub::V1::StreamingPullRequest), stream(Google::Cloud::PubSub::V1::StreamingPullResponse)
|
135
|
+
rpc :StreamingPull, stream(::Google::Cloud::PubSub::V1::StreamingPullRequest), stream(::Google::Cloud::PubSub::V1::StreamingPullResponse)
|
136
136
|
# Modifies the `PushConfig` for a specified subscription.
|
137
137
|
#
|
138
138
|
# This may be used to change a push subscription to a pull one (signified by
|
139
139
|
# an empty `PushConfig`) or vice versa, or change the endpoint URL and other
|
140
140
|
# attributes of a push subscription. Messages will accumulate for delivery
|
141
141
|
# continuously through the call regardless of changes to the `PushConfig`.
|
142
|
-
rpc :ModifyPushConfig, Google::Cloud::PubSub::V1::ModifyPushConfigRequest, Google::Protobuf::Empty
|
142
|
+
rpc :ModifyPushConfig, ::Google::Cloud::PubSub::V1::ModifyPushConfigRequest, ::Google::Protobuf::Empty
|
143
143
|
# Gets the configuration details of a snapshot. Snapshots are used in
|
144
144
|
# <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
|
145
145
|
# operations, which allow you to manage message acknowledgments in bulk. That
|
146
146
|
# is, you can set the acknowledgment state of messages in an existing
|
147
147
|
# subscription to the state captured by a snapshot.
|
148
|
-
rpc :GetSnapshot, Google::Cloud::PubSub::V1::GetSnapshotRequest, Google::Cloud::PubSub::V1::Snapshot
|
148
|
+
rpc :GetSnapshot, ::Google::Cloud::PubSub::V1::GetSnapshotRequest, ::Google::Cloud::PubSub::V1::Snapshot
|
149
149
|
# Lists the existing snapshots. Snapshots are used in [Seek](
|
150
150
|
# https://cloud.google.com/pubsub/docs/replay-overview) operations, which
|
151
151
|
# allow you to manage message acknowledgments in bulk. That is, you can set
|
152
152
|
# the acknowledgment state of messages in an existing subscription to the
|
153
153
|
# state captured by a snapshot.
|
154
|
-
rpc :ListSnapshots, Google::Cloud::PubSub::V1::ListSnapshotsRequest, Google::Cloud::PubSub::V1::ListSnapshotsResponse
|
154
|
+
rpc :ListSnapshots, ::Google::Cloud::PubSub::V1::ListSnapshotsRequest, ::Google::Cloud::PubSub::V1::ListSnapshotsResponse
|
155
155
|
# Creates a snapshot from the requested subscription. Snapshots are used in
|
156
156
|
# [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
|
157
157
|
# which allow you to manage message acknowledgments in bulk. That is, you can
|
@@ -168,14 +168,14 @@ module Google
|
|
168
168
|
# (https://cloud.google.com/pubsub/docs/admin#resource_names). The
|
169
169
|
# generated name is populated in the returned Snapshot object. Note that for
|
170
170
|
# REST API requests, you must specify a name in the request.
|
171
|
-
rpc :CreateSnapshot, Google::Cloud::PubSub::V1::CreateSnapshotRequest, Google::Cloud::PubSub::V1::Snapshot
|
171
|
+
rpc :CreateSnapshot, ::Google::Cloud::PubSub::V1::CreateSnapshotRequest, ::Google::Cloud::PubSub::V1::Snapshot
|
172
172
|
# Updates an existing snapshot. Snapshots are used in
|
173
173
|
# <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
|
174
174
|
# operations, which allow
|
175
175
|
# you to manage message acknowledgments in bulk. That is, you can set the
|
176
176
|
# acknowledgment state of messages in an existing subscription to the state
|
177
177
|
# captured by a snapshot.
|
178
|
-
rpc :UpdateSnapshot, Google::Cloud::PubSub::V1::UpdateSnapshotRequest, Google::Cloud::PubSub::V1::Snapshot
|
178
|
+
rpc :UpdateSnapshot, ::Google::Cloud::PubSub::V1::UpdateSnapshotRequest, ::Google::Cloud::PubSub::V1::Snapshot
|
179
179
|
# Removes an existing snapshot. Snapshots are used in [Seek]
|
180
180
|
# (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
|
181
181
|
# allow you to manage message acknowledgments in bulk. That is, you can set
|
@@ -185,15 +185,15 @@ module Google
|
|
185
185
|
# are immediately dropped. After a snapshot is deleted, a new one may be
|
186
186
|
# created with the same name, but the new one has no association with the old
|
187
187
|
# snapshot or its subscription, unless the same subscription is specified.
|
188
|
-
rpc :DeleteSnapshot, Google::Cloud::PubSub::V1::DeleteSnapshotRequest, Google::Protobuf::Empty
|
188
|
+
rpc :DeleteSnapshot, ::Google::Cloud::PubSub::V1::DeleteSnapshotRequest, ::Google::Protobuf::Empty
|
189
189
|
# Seeks an existing subscription to a point in time or to a given snapshot,
|
190
|
-
# whichever is provided in the request. Snapshots are used in [Seek]
|
191
|
-
# https://cloud.google.com/pubsub/docs/replay-overview) operations, which
|
190
|
+
# whichever is provided in the request. Snapshots are used in [Seek]
|
191
|
+
# (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
|
192
192
|
# allow you to manage message acknowledgments in bulk. That is, you can set
|
193
193
|
# the acknowledgment state of messages in an existing subscription to the
|
194
194
|
# state captured by a snapshot. Note that both the subscription and the
|
195
195
|
# snapshot must be on the same topic.
|
196
|
-
rpc :Seek, Google::Cloud::PubSub::V1::SeekRequest, Google::Cloud::PubSub::V1::SeekResponse
|
196
|
+
rpc :Seek, ::Google::Cloud::PubSub::V1::SeekRequest, ::Google::Cloud::PubSub::V1::SeekResponse
|
197
197
|
end
|
198
198
|
|
199
199
|
Stub = Service.rpc_stub_class
|
@@ -0,0 +1,95 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/pubsub/v1/schema.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/resource_pb'
|
10
|
+
require 'google/protobuf/empty_pb'
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/pubsub/v1/schema.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.pubsub.v1.Schema" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :type, :enum, 2, "google.pubsub.v1.Schema.Type"
|
16
|
+
optional :definition, :string, 3
|
17
|
+
end
|
18
|
+
add_enum "google.pubsub.v1.Schema.Type" do
|
19
|
+
value :TYPE_UNSPECIFIED, 0
|
20
|
+
value :PROTOCOL_BUFFER, 1
|
21
|
+
value :AVRO, 2
|
22
|
+
end
|
23
|
+
add_message "google.pubsub.v1.CreateSchemaRequest" do
|
24
|
+
optional :parent, :string, 1
|
25
|
+
optional :schema, :message, 2, "google.pubsub.v1.Schema"
|
26
|
+
optional :schema_id, :string, 3
|
27
|
+
end
|
28
|
+
add_message "google.pubsub.v1.GetSchemaRequest" do
|
29
|
+
optional :name, :string, 1
|
30
|
+
optional :view, :enum, 2, "google.pubsub.v1.SchemaView"
|
31
|
+
end
|
32
|
+
add_message "google.pubsub.v1.ListSchemasRequest" do
|
33
|
+
optional :parent, :string, 1
|
34
|
+
optional :view, :enum, 2, "google.pubsub.v1.SchemaView"
|
35
|
+
optional :page_size, :int32, 3
|
36
|
+
optional :page_token, :string, 4
|
37
|
+
end
|
38
|
+
add_message "google.pubsub.v1.ListSchemasResponse" do
|
39
|
+
repeated :schemas, :message, 1, "google.pubsub.v1.Schema"
|
40
|
+
optional :next_page_token, :string, 2
|
41
|
+
end
|
42
|
+
add_message "google.pubsub.v1.DeleteSchemaRequest" do
|
43
|
+
optional :name, :string, 1
|
44
|
+
end
|
45
|
+
add_message "google.pubsub.v1.ValidateSchemaRequest" do
|
46
|
+
optional :parent, :string, 1
|
47
|
+
optional :schema, :message, 2, "google.pubsub.v1.Schema"
|
48
|
+
end
|
49
|
+
add_message "google.pubsub.v1.ValidateSchemaResponse" do
|
50
|
+
end
|
51
|
+
add_message "google.pubsub.v1.ValidateMessageRequest" do
|
52
|
+
optional :parent, :string, 1
|
53
|
+
optional :message, :bytes, 4
|
54
|
+
optional :encoding, :enum, 5, "google.pubsub.v1.Encoding"
|
55
|
+
oneof :schema_spec do
|
56
|
+
optional :name, :string, 2
|
57
|
+
optional :schema, :message, 3, "google.pubsub.v1.Schema"
|
58
|
+
end
|
59
|
+
end
|
60
|
+
add_message "google.pubsub.v1.ValidateMessageResponse" do
|
61
|
+
end
|
62
|
+
add_enum "google.pubsub.v1.SchemaView" do
|
63
|
+
value :SCHEMA_VIEW_UNSPECIFIED, 0
|
64
|
+
value :BASIC, 1
|
65
|
+
value :FULL, 2
|
66
|
+
end
|
67
|
+
add_enum "google.pubsub.v1.Encoding" do
|
68
|
+
value :ENCODING_UNSPECIFIED, 0
|
69
|
+
value :JSON, 1
|
70
|
+
value :BINARY, 2
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
module Google
|
76
|
+
module Cloud
|
77
|
+
module PubSub
|
78
|
+
module V1
|
79
|
+
Schema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Schema").msgclass
|
80
|
+
Schema::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Schema.Type").enummodule
|
81
|
+
CreateSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CreateSchemaRequest").msgclass
|
82
|
+
GetSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetSchemaRequest").msgclass
|
83
|
+
ListSchemasRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSchemasRequest").msgclass
|
84
|
+
ListSchemasResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSchemasResponse").msgclass
|
85
|
+
DeleteSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteSchemaRequest").msgclass
|
86
|
+
ValidateSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ValidateSchemaRequest").msgclass
|
87
|
+
ValidateSchemaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ValidateSchemaResponse").msgclass
|
88
|
+
ValidateMessageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ValidateMessageRequest").msgclass
|
89
|
+
ValidateMessageResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ValidateMessageResponse").msgclass
|
90
|
+
SchemaView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.SchemaView").enummodule
|
91
|
+
Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Encoding").enummodule
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|