google-cloud-pubsub-v1 0.4.1 → 0.5.2
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/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/pubsub/v1/iam_policy/client.rb +1 -1
- data/lib/google/cloud/pubsub/v1/publisher/client.rb +10 -37
- data/lib/google/cloud/pubsub/v1/schema_service/client.rb +1 -1
- data/lib/google/cloud/pubsub/v1/subscriber/client.rb +17 -65
- data/lib/google/cloud/pubsub/v1/version.rb +1 -1
- data/lib/google/pubsub/v1/pubsub_pb.rb +5 -0
- data/lib/google/pubsub/v1/pubsub_services_pb.rb +2 -2
- data/lib/google/pubsub/v1/schema_services_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/pubsub/v1/pubsub.rb +12 -0
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +2 -3
- data/lib/google/iam/v1/iam_policy_services_pb.rb +0 -81
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6e2a4a9f6746191781373c0594d27f8dccef450607d23da6bc9abed9a13730c
|
4
|
+
data.tar.gz: 5f508e848d394c34604079c27aff3e465d95bee3a176cc89170e09c9fd025b3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64c8dd6ad2f2ac7ee7bd85e72a9abc1b6fee01b2b3a35ef208e923d542c5185946f89e721f4987459d4603c096208b07b6db76a4a08e0165d5f9ce7cc95a88b2
|
7
|
+
data.tar.gz: f0fb04598dc4cdb5ffaa92e045aba68e780afc9b53a7bf9e69d8763082e4cf8fda9565c695bb4173abeadb5a837769541ccb4e9a321fc4b5b395722ba41b021a
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-pubsub-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::PubSub::V1::SchemaService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `PUBSUB_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `PUBSUB_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/pubsub/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::PubSub::V1::SchemaService::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/pubsub/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::PubSub::V1::SchemaService::Client.new do |config|
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/pubsub/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/pubsub/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::PubSub::V1::SchemaService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::PubSub::V1::CreateSchemaRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_schema request
|
38
38
|
```
|
39
39
|
|
@@ -155,7 +155,7 @@ module Google
|
|
155
155
|
!@config.endpoint.split(".").first.include?("-")
|
156
156
|
credentials ||= Credentials.default scope: @config.scope,
|
157
157
|
enable_self_signed_jwt: enable_self_signed_jwt
|
158
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
158
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
159
159
|
credentials = Credentials.new credentials, scope: @config.scope
|
160
160
|
end
|
161
161
|
@quota_project_id = @config.quota_project
|
@@ -68,74 +68,47 @@ module Google
|
|
68
68
|
|
69
69
|
default_config.rpcs.create_topic.timeout = 60.0
|
70
70
|
default_config.rpcs.create_topic.retry_policy = {
|
71
|
-
initial_delay: 0.1,
|
72
|
-
max_delay: 60.0,
|
73
|
-
multiplier: 1.3,
|
74
|
-
retry_codes: [14]
|
71
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
75
72
|
}
|
76
73
|
|
77
74
|
default_config.rpcs.update_topic.timeout = 60.0
|
78
75
|
default_config.rpcs.update_topic.retry_policy = {
|
79
|
-
initial_delay: 0.1,
|
80
|
-
max_delay: 60.0,
|
81
|
-
multiplier: 1.3,
|
82
|
-
retry_codes: [14]
|
76
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
83
77
|
}
|
84
78
|
|
85
79
|
default_config.rpcs.publish.timeout = 60.0
|
86
80
|
default_config.rpcs.publish.retry_policy = {
|
87
|
-
initial_delay: 0.1,
|
88
|
-
max_delay: 60.0,
|
89
|
-
multiplier: 1.3,
|
90
|
-
retry_codes: [10, 1, 13, 8, 2, 14, 4]
|
81
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [10, 1, 13, 8, 2, 14, 4]
|
91
82
|
}
|
92
83
|
|
93
84
|
default_config.rpcs.get_topic.timeout = 60.0
|
94
85
|
default_config.rpcs.get_topic.retry_policy = {
|
95
|
-
initial_delay: 0.1,
|
96
|
-
max_delay: 60.0,
|
97
|
-
multiplier: 1.3,
|
98
|
-
retry_codes: [2, 10, 14]
|
86
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [2, 10, 14]
|
99
87
|
}
|
100
88
|
|
101
89
|
default_config.rpcs.list_topics.timeout = 60.0
|
102
90
|
default_config.rpcs.list_topics.retry_policy = {
|
103
|
-
initial_delay: 0.1,
|
104
|
-
max_delay: 60.0,
|
105
|
-
multiplier: 1.3,
|
106
|
-
retry_codes: [2, 10, 14]
|
91
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [2, 10, 14]
|
107
92
|
}
|
108
93
|
|
109
94
|
default_config.rpcs.list_topic_subscriptions.timeout = 60.0
|
110
95
|
default_config.rpcs.list_topic_subscriptions.retry_policy = {
|
111
|
-
initial_delay: 0.1,
|
112
|
-
max_delay: 60.0,
|
113
|
-
multiplier: 1.3,
|
114
|
-
retry_codes: [2, 10, 14]
|
96
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [2, 10, 14]
|
115
97
|
}
|
116
98
|
|
117
99
|
default_config.rpcs.list_topic_snapshots.timeout = 60.0
|
118
100
|
default_config.rpcs.list_topic_snapshots.retry_policy = {
|
119
|
-
initial_delay: 0.1,
|
120
|
-
max_delay: 60.0,
|
121
|
-
multiplier: 1.3,
|
122
|
-
retry_codes: [2, 10, 14]
|
101
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [2, 10, 14]
|
123
102
|
}
|
124
103
|
|
125
104
|
default_config.rpcs.delete_topic.timeout = 60.0
|
126
105
|
default_config.rpcs.delete_topic.retry_policy = {
|
127
|
-
initial_delay: 0.1,
|
128
|
-
max_delay: 60.0,
|
129
|
-
multiplier: 1.3,
|
130
|
-
retry_codes: [14]
|
106
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
131
107
|
}
|
132
108
|
|
133
109
|
default_config.rpcs.detach_subscription.timeout = 60.0
|
134
110
|
default_config.rpcs.detach_subscription.retry_policy = {
|
135
|
-
initial_delay: 0.1,
|
136
|
-
max_delay: 60.0,
|
137
|
-
multiplier: 1.3,
|
138
|
-
retry_codes: [14]
|
111
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
139
112
|
}
|
140
113
|
|
141
114
|
default_config
|
@@ -206,7 +179,7 @@ module Google
|
|
206
179
|
!@config.endpoint.split(".").first.include?("-")
|
207
180
|
credentials ||= Credentials.default scope: @config.scope,
|
208
181
|
enable_self_signed_jwt: enable_self_signed_jwt
|
209
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
182
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
210
183
|
credentials = Credentials.new credentials, scope: @config.scope
|
211
184
|
end
|
212
185
|
@quota_project_id = @config.quota_project
|
@@ -133,7 +133,7 @@ module Google
|
|
133
133
|
!@config.endpoint.split(".").first.include?("-")
|
134
134
|
credentials ||= Credentials.default scope: @config.scope,
|
135
135
|
enable_self_signed_jwt: enable_self_signed_jwt
|
136
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
136
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
137
137
|
credentials = Credentials.new credentials, scope: @config.scope
|
138
138
|
end
|
139
139
|
@quota_project_id = @config.quota_project
|
@@ -69,130 +69,82 @@ module Google
|
|
69
69
|
|
70
70
|
default_config.rpcs.create_subscription.timeout = 60.0
|
71
71
|
default_config.rpcs.create_subscription.retry_policy = {
|
72
|
-
initial_delay: 0.1,
|
73
|
-
max_delay: 60.0,
|
74
|
-
multiplier: 1.3,
|
75
|
-
retry_codes: [2, 10, 14]
|
72
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [2, 10, 14]
|
76
73
|
}
|
77
74
|
|
78
75
|
default_config.rpcs.get_subscription.timeout = 60.0
|
79
76
|
default_config.rpcs.get_subscription.retry_policy = {
|
80
|
-
initial_delay: 0.1,
|
81
|
-
max_delay: 60.0,
|
82
|
-
multiplier: 1.3,
|
83
|
-
retry_codes: [2, 10, 14]
|
77
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [2, 10, 14]
|
84
78
|
}
|
85
79
|
|
86
80
|
default_config.rpcs.update_subscription.timeout = 60.0
|
87
81
|
default_config.rpcs.update_subscription.retry_policy = {
|
88
|
-
initial_delay: 0.1,
|
89
|
-
max_delay: 60.0,
|
90
|
-
multiplier: 1.3,
|
91
|
-
retry_codes: [14]
|
82
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
92
83
|
}
|
93
84
|
|
94
85
|
default_config.rpcs.list_subscriptions.timeout = 60.0
|
95
86
|
default_config.rpcs.list_subscriptions.retry_policy = {
|
96
|
-
initial_delay: 0.1,
|
97
|
-
max_delay: 60.0,
|
98
|
-
multiplier: 1.3,
|
99
|
-
retry_codes: [2, 10, 14]
|
87
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [2, 10, 14]
|
100
88
|
}
|
101
89
|
|
102
90
|
default_config.rpcs.delete_subscription.timeout = 60.0
|
103
91
|
default_config.rpcs.delete_subscription.retry_policy = {
|
104
|
-
initial_delay: 0.1,
|
105
|
-
max_delay: 60.0,
|
106
|
-
multiplier: 1.3,
|
107
|
-
retry_codes: [14]
|
92
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
108
93
|
}
|
109
94
|
|
110
95
|
default_config.rpcs.modify_ack_deadline.timeout = 60.0
|
111
96
|
default_config.rpcs.modify_ack_deadline.retry_policy = {
|
112
|
-
initial_delay: 0.1,
|
113
|
-
max_delay: 60.0,
|
114
|
-
multiplier: 1.3,
|
115
|
-
retry_codes: [14]
|
97
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
116
98
|
}
|
117
99
|
|
118
100
|
default_config.rpcs.acknowledge.timeout = 60.0
|
119
101
|
default_config.rpcs.acknowledge.retry_policy = {
|
120
|
-
initial_delay: 0.1,
|
121
|
-
max_delay: 60.0,
|
122
|
-
multiplier: 1.3,
|
123
|
-
retry_codes: [14]
|
102
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
124
103
|
}
|
125
104
|
|
126
105
|
default_config.rpcs.pull.timeout = 60.0
|
127
106
|
default_config.rpcs.pull.retry_policy = {
|
128
|
-
initial_delay: 0.1,
|
129
|
-
max_delay: 60.0,
|
130
|
-
multiplier: 1.3,
|
131
|
-
retry_codes: [2, 10, 14]
|
107
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [2, 10, 14]
|
132
108
|
}
|
133
109
|
|
134
110
|
default_config.rpcs.streaming_pull.timeout = 900.0
|
135
111
|
default_config.rpcs.streaming_pull.retry_policy = {
|
136
|
-
initial_delay: 0.1,
|
137
|
-
max_delay: 60.0,
|
138
|
-
multiplier: 1.3,
|
139
|
-
retry_codes: [4, 8, 10, 13, 14]
|
112
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 8, 10, 13, 14]
|
140
113
|
}
|
141
114
|
|
142
115
|
default_config.rpcs.modify_push_config.timeout = 60.0
|
143
116
|
default_config.rpcs.modify_push_config.retry_policy = {
|
144
|
-
initial_delay: 0.1,
|
145
|
-
max_delay: 60.0,
|
146
|
-
multiplier: 1.3,
|
147
|
-
retry_codes: [14]
|
117
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
148
118
|
}
|
149
119
|
|
150
120
|
default_config.rpcs.get_snapshot.timeout = 60.0
|
151
121
|
default_config.rpcs.get_snapshot.retry_policy = {
|
152
|
-
initial_delay: 0.1,
|
153
|
-
max_delay: 60.0,
|
154
|
-
multiplier: 1.3,
|
155
|
-
retry_codes: [2, 10, 14]
|
122
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [2, 10, 14]
|
156
123
|
}
|
157
124
|
|
158
125
|
default_config.rpcs.list_snapshots.timeout = 60.0
|
159
126
|
default_config.rpcs.list_snapshots.retry_policy = {
|
160
|
-
initial_delay: 0.1,
|
161
|
-
max_delay: 60.0,
|
162
|
-
multiplier: 1.3,
|
163
|
-
retry_codes: [2, 10, 14]
|
127
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [2, 10, 14]
|
164
128
|
}
|
165
129
|
|
166
130
|
default_config.rpcs.create_snapshot.timeout = 60.0
|
167
131
|
default_config.rpcs.create_snapshot.retry_policy = {
|
168
|
-
initial_delay: 0.1,
|
169
|
-
max_delay: 60.0,
|
170
|
-
multiplier: 1.3,
|
171
|
-
retry_codes: [14]
|
132
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
172
133
|
}
|
173
134
|
|
174
135
|
default_config.rpcs.update_snapshot.timeout = 60.0
|
175
136
|
default_config.rpcs.update_snapshot.retry_policy = {
|
176
|
-
initial_delay: 0.1,
|
177
|
-
max_delay: 60.0,
|
178
|
-
multiplier: 1.3,
|
179
|
-
retry_codes: [14]
|
137
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
180
138
|
}
|
181
139
|
|
182
140
|
default_config.rpcs.delete_snapshot.timeout = 60.0
|
183
141
|
default_config.rpcs.delete_snapshot.retry_policy = {
|
184
|
-
initial_delay: 0.1,
|
185
|
-
max_delay: 60.0,
|
186
|
-
multiplier: 1.3,
|
187
|
-
retry_codes: [14]
|
142
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
188
143
|
}
|
189
144
|
|
190
145
|
default_config.rpcs.seek.timeout = 60.0
|
191
146
|
default_config.rpcs.seek.retry_policy = {
|
192
|
-
initial_delay: 0.1,
|
193
|
-
max_delay: 60.0,
|
194
|
-
multiplier: 1.3,
|
195
|
-
retry_codes: [2, 10, 14]
|
147
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [2, 10, 14]
|
196
148
|
}
|
197
149
|
|
198
150
|
default_config
|
@@ -263,7 +215,7 @@ module Google
|
|
263
215
|
!@config.endpoint.split(".").first.include?("-")
|
264
216
|
credentials ||= Credentials.default scope: @config.scope,
|
265
217
|
enable_self_signed_jwt: enable_self_signed_jwt
|
266
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
218
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
267
219
|
credentials = Credentials.new credentials, scope: @config.scope
|
268
220
|
end
|
269
221
|
@quota_project_id = @config.quota_project
|
@@ -179,6 +179,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
179
179
|
end
|
180
180
|
add_message "google.pubsub.v1.StreamingPullResponse" do
|
181
181
|
repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
|
182
|
+
optional :subscription_properties, :message, 4, "google.pubsub.v1.StreamingPullResponse.SubscriptionProperties"
|
183
|
+
end
|
184
|
+
add_message "google.pubsub.v1.StreamingPullResponse.SubscriptionProperties" do
|
185
|
+
optional :message_ordering_enabled, :bool, 2
|
182
186
|
end
|
183
187
|
add_message "google.pubsub.v1.CreateSnapshotRequest" do
|
184
188
|
optional :name, :string, 1
|
@@ -262,6 +266,7 @@ module Google
|
|
262
266
|
AcknowledgeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.AcknowledgeRequest").msgclass
|
263
267
|
StreamingPullRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullRequest").msgclass
|
264
268
|
StreamingPullResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse").msgclass
|
269
|
+
StreamingPullResponse::SubscriptionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse.SubscriptionProperties").msgclass
|
265
270
|
CreateSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CreateSnapshotRequest").msgclass
|
266
271
|
UpdateSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateSnapshotRequest").msgclass
|
267
272
|
Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Snapshot").msgclass
|
@@ -28,7 +28,7 @@ module Google
|
|
28
28
|
# messages to a topic.
|
29
29
|
class Service
|
30
30
|
|
31
|
-
include
|
31
|
+
include GRPC::GenericService
|
32
32
|
|
33
33
|
self.marshal_class_method = :encode
|
34
34
|
self.unmarshal_class_method = :decode
|
@@ -76,7 +76,7 @@ module Google
|
|
76
76
|
# establishing a bi-directional stream using the `StreamingPull` method.
|
77
77
|
class Service
|
78
78
|
|
79
|
-
include
|
79
|
+
include GRPC::GenericService
|
80
80
|
|
81
81
|
self.marshal_class_method = :encode
|
82
82
|
self.unmarshal_class_method = :decode
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -850,9 +850,21 @@ module Google
|
|
850
850
|
# @!attribute [rw] received_messages
|
851
851
|
# @return [::Array<::Google::Cloud::PubSub::V1::ReceivedMessage>]
|
852
852
|
# Received Pub/Sub messages. This will not be empty.
|
853
|
+
# @!attribute [rw] subscription_properties
|
854
|
+
# @return [::Google::Cloud::PubSub::V1::StreamingPullResponse::SubscriptionProperties]
|
855
|
+
# Properties associated with this subscription.
|
853
856
|
class StreamingPullResponse
|
854
857
|
include ::Google::Protobuf::MessageExts
|
855
858
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
859
|
+
|
860
|
+
# Subscription properties sent as part of the response.
|
861
|
+
# @!attribute [rw] message_ordering_enabled
|
862
|
+
# @return [::Boolean]
|
863
|
+
# True iff message ordering is enabled for this subscription.
|
864
|
+
class SubscriptionProperties
|
865
|
+
include ::Google::Protobuf::MessageExts
|
866
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
867
|
+
end
|
856
868
|
end
|
857
869
|
|
858
870
|
# Request for the `CreateSnapshot` method.
|
@@ -19,30 +19,53 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Type
|
22
|
-
# Represents
|
22
|
+
# Represents a textual expression in the Common Expression Language (CEL)
|
23
|
+
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
24
|
+
# are documented at https://github.com/google/cel-spec.
|
23
25
|
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
26
|
+
# Example (Comparison):
|
27
|
+
#
|
28
|
+
# title: "Summary size limit"
|
29
|
+
# description: "Determines if a summary is less than 100 chars"
|
30
|
+
# expression: "document.summary.size() < 100"
|
31
|
+
#
|
32
|
+
# Example (Equality):
|
33
|
+
#
|
34
|
+
# title: "Requestor is owner"
|
35
|
+
# description: "Determines if requestor is the document owner"
|
36
|
+
# expression: "document.owner == request.auth.claims.email"
|
37
|
+
#
|
38
|
+
# Example (Logic):
|
39
|
+
#
|
40
|
+
# title: "Public documents"
|
41
|
+
# description: "Determine whether the document should be publicly visible"
|
42
|
+
# expression: "document.type != 'private' && document.type != 'internal'"
|
43
|
+
#
|
44
|
+
# Example (Data Manipulation):
|
45
|
+
#
|
46
|
+
# title: "Notification string"
|
47
|
+
# description: "Create a notification string with a timestamp."
|
48
|
+
# expression: "'New message received at ' + string(document.create_time)"
|
49
|
+
#
|
50
|
+
# The exact variables and functions that may be referenced within an expression
|
51
|
+
# are determined by the service that evaluates it. See the service
|
52
|
+
# documentation for additional information.
|
27
53
|
# @!attribute [rw] expression
|
28
54
|
# @return [::String]
|
29
|
-
# Textual representation of an expression in
|
30
|
-
#
|
31
|
-
#
|
32
|
-
# The application context of the containing message determines which
|
33
|
-
# well-known feature set of CEL is supported.
|
55
|
+
# Textual representation of an expression in Common Expression Language
|
56
|
+
# syntax.
|
34
57
|
# @!attribute [rw] title
|
35
58
|
# @return [::String]
|
36
|
-
#
|
59
|
+
# Optional. Title for the expression, i.e. a short string describing
|
37
60
|
# its purpose. This can be used e.g. in UIs which allow to enter the
|
38
61
|
# expression.
|
39
62
|
# @!attribute [rw] description
|
40
63
|
# @return [::String]
|
41
|
-
#
|
64
|
+
# Optional. Description of the expression. This is a longer text which
|
42
65
|
# describes the expression, e.g. when hovered over it in a UI.
|
43
66
|
# @!attribute [rw] location
|
44
67
|
# @return [::String]
|
45
|
-
#
|
68
|
+
# Optional. String indicating the location of the expression for error
|
46
69
|
# reporting, e.g. a file name and a position in the file.
|
47
70
|
class Expr
|
48
71
|
include ::Google::Protobuf::MessageExts
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-pubsub-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.2
|
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-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -209,7 +209,6 @@ files:
|
|
209
209
|
- lib/google/cloud/pubsub/v1/subscriber/helpers.rb
|
210
210
|
- lib/google/cloud/pubsub/v1/subscriber/paths.rb
|
211
211
|
- lib/google/cloud/pubsub/v1/version.rb
|
212
|
-
- lib/google/iam/v1/iam_policy_services_pb.rb
|
213
212
|
- lib/google/pubsub/v1/pubsub_pb.rb
|
214
213
|
- lib/google/pubsub/v1/pubsub_services_pb.rb
|
215
214
|
- lib/google/pubsub/v1/schema_pb.rb
|
@@ -1,81 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/iam/v1/iam_policy.proto for package 'google.iam.v1'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2019 Google LLC.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
#
|
19
|
-
|
20
|
-
require 'grpc'
|
21
|
-
require 'google/iam/v1/iam_policy_pb'
|
22
|
-
|
23
|
-
module Google
|
24
|
-
module Iam
|
25
|
-
module V1
|
26
|
-
module IAMPolicy
|
27
|
-
# ## API Overview
|
28
|
-
#
|
29
|
-
# Manages Identity and Access Management (IAM) policies.
|
30
|
-
#
|
31
|
-
# Any implementation of an API that offers access control features
|
32
|
-
# implements the google.iam.v1.IAMPolicy interface.
|
33
|
-
#
|
34
|
-
# ## Data model
|
35
|
-
#
|
36
|
-
# Access control is applied when a principal (user or service account), takes
|
37
|
-
# some action on a resource exposed by a service. Resources, identified by
|
38
|
-
# URI-like names, are the unit of access control specification. Service
|
39
|
-
# implementations can choose the granularity of access control and the
|
40
|
-
# supported permissions for their resources.
|
41
|
-
# For example one database service may allow access control to be
|
42
|
-
# specified only at the Table level, whereas another might allow access control
|
43
|
-
# to also be specified at the Column level.
|
44
|
-
#
|
45
|
-
# ## Policy Structure
|
46
|
-
#
|
47
|
-
# See google.iam.v1.Policy
|
48
|
-
#
|
49
|
-
# This is intentionally not a CRUD style API because access control policies
|
50
|
-
# are created and deleted implicitly with the resources to which they are
|
51
|
-
# attached.
|
52
|
-
class Service
|
53
|
-
|
54
|
-
include ::GRPC::GenericService
|
55
|
-
|
56
|
-
self.marshal_class_method = :encode
|
57
|
-
self.unmarshal_class_method = :decode
|
58
|
-
self.service_name = 'google.iam.v1.IAMPolicy'
|
59
|
-
|
60
|
-
# Sets the access control policy on the specified resource. Replaces any
|
61
|
-
# existing policy.
|
62
|
-
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
63
|
-
# Gets the access control policy for a resource.
|
64
|
-
# Returns an empty policy if the resource exists and does not have a policy
|
65
|
-
# set.
|
66
|
-
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
67
|
-
# Returns permissions that a caller has on the specified resource.
|
68
|
-
# If the resource does not exist, this will return an empty set of
|
69
|
-
# permissions, not a NOT_FOUND error.
|
70
|
-
#
|
71
|
-
# Note: This operation is designed to be used for building permission-aware
|
72
|
-
# UIs and command-line tools, not for authorization checking. This operation
|
73
|
-
# may "fail open" without warning.
|
74
|
-
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
75
|
-
end
|
76
|
-
|
77
|
-
Stub = Service.rpc_stub_class
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|