google-cloud-pubsub-v1 0.4.1 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34394d23e1c9ca07f73149bc9a528d85c906ae10f14f7ede296f199edd68d901
4
- data.tar.gz: 676c53a8c27a43666f970f21d8308e530467e217a535763e9282431c3a87e668
3
+ metadata.gz: 2f7d1c69dbbebade711c381290821b22d0e8205d613b3b615e2fc1ce1de949ff
4
+ data.tar.gz: 0700d32c025dc6a8a872cdf95183e72f69480a926cd1a47e4c4e3c38cf6ba209
5
5
  SHA512:
6
- metadata.gz: 8c1c9c673682cebbfdcbcb554fa5ed7abac4d280ccf801ddcf0b89f1e2f121b6096ab6eed297da1737cc1fd82f297c5ce9c52e5b3f3359f644b174b87d3613cc
7
- data.tar.gz: ff41342162ae5ea88592d60cff3b5b6bfff535f5d0de0806c542c3c7565a6e02a2c03f8b50d2f65af71ae538c07b44f8709a03b960200ba771b4e6da00fa71dd
6
+ metadata.gz: f808f020eea3ffdbd6274b0748ed72bd59c9c7cf2e1fcdb85534088a60fc81fe3e45c891c94443a8472b5b33c0ec465818c346382e18dc7e8cffe1f8a52a8970
7
+ data.tar.gz: 2b8d9fb7e95d30951805c13df5e42ada749733ef334acadfda225246fcfc1a0ba5e1d693c7abd1bd80dfb25a3782ee192dcf6f4f74ea48939647cb715b9183d2
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
- 1. `PUBSUB_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `PUBSUB_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
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"
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 = my_create_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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PubSub
23
23
  module V1
24
- VERSION = "0.4.1"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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
@@ -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.
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.1
4
+ version: 0.5.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-06-17 00:00:00.000000000 Z
11
+ date: 2021-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common