google-cloud-pubsub 0.22.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/pubsub.rb +17 -9
- data/lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb +0 -30
- data/lib/google/cloud/pubsub/v1/publisher_client_config.json +0 -2
- data/lib/google/cloud/pubsub/v1/subscriber_client_config.json +0 -2
- data/lib/google/cloud/pubsub/version.rb +1 -1
- metadata +7 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d0e9bc24ac24e253b616f802e54362dc8df6fc8
|
4
|
+
data.tar.gz: abac9248d857f8b09e4e5cc62159acd06e1d651f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 021dff90b476a4b5e27918eefe187df46fb0d1686c31f3efe3c6ecdce1b338b88b8fea0f1e84892b52200d8ce30b4f2147b9a3947be42f4707a93d9cd679c0fa
|
7
|
+
data.tar.gz: b4bd1fbb9f336c7caf81566118b33541590b74154cd2db267263e816122cc82c7c94afb0574317c5146b8d0a8b1d152d08c47366212ad42da0f9057dece4d979
|
data/lib/google/cloud/pubsub.rb
CHANGED
@@ -427,6 +427,8 @@ module Google
|
|
427
427
|
# @param [Integer] timeout Default timeout to use in requests. Optional.
|
428
428
|
# @param [Hash] client_config A hash of values to override the default
|
429
429
|
# behavior of the API client. Optional.
|
430
|
+
# @param [String] emulator_host Pub/Sub emulator host. Optional.
|
431
|
+
# If the param is nil, ENV["PUBSUB_EMULATOR_HOST"] will be used.
|
430
432
|
#
|
431
433
|
# @return [Google::Cloud::Pubsub::Project]
|
432
434
|
#
|
@@ -439,27 +441,33 @@ module Google
|
|
439
441
|
# topic.publish "task completed"
|
440
442
|
#
|
441
443
|
def self.new project: nil, keyfile: nil, scope: nil, timeout: nil,
|
442
|
-
client_config: nil
|
444
|
+
client_config: nil, emulator_host: nil
|
443
445
|
project ||= Google::Cloud::Pubsub::Project.default_project
|
444
446
|
project = project.to_s # Always cast to a string
|
445
|
-
|
447
|
+
emulator_host ||= ENV["PUBSUB_EMULATOR_HOST"]
|
448
|
+
if emulator_host
|
446
449
|
ps = Google::Cloud::Pubsub::Project.new(
|
447
450
|
Google::Cloud::Pubsub::Service.new(
|
448
451
|
project, :this_channel_is_insecure))
|
449
|
-
ps.service.host =
|
452
|
+
ps.service.host = emulator_host
|
450
453
|
return ps
|
451
454
|
end
|
452
|
-
|
453
|
-
credentials = Google::Cloud::Pubsub::Credentials.default scope: scope
|
454
|
-
else
|
455
|
-
credentials = Google::Cloud::Pubsub::Credentials.new \
|
456
|
-
keyfile, scope: scope
|
457
|
-
end
|
455
|
+
credentials = credentials_with_scope keyfile, scope
|
458
456
|
Google::Cloud::Pubsub::Project.new(
|
459
457
|
Google::Cloud::Pubsub::Service.new(
|
460
458
|
project, credentials, timeout: timeout,
|
461
459
|
client_config: client_config))
|
462
460
|
end
|
461
|
+
|
462
|
+
##
|
463
|
+
# @private
|
464
|
+
def self.credentials_with_scope keyfile, scope
|
465
|
+
if keyfile.nil?
|
466
|
+
Google::Cloud::Pubsub::Credentials.default(scope: scope)
|
467
|
+
else
|
468
|
+
Google::Cloud::Pubsub::Credentials.new(keyfile, scope: scope)
|
469
|
+
end
|
470
|
+
end
|
463
471
|
end
|
464
472
|
end
|
465
473
|
end
|
@@ -14,36 +14,6 @@
|
|
14
14
|
|
15
15
|
module Google
|
16
16
|
module Pubsub
|
17
|
-
##
|
18
|
-
# The `Google::Pubsub::V1` module provides the following types:
|
19
|
-
#
|
20
|
-
# Class | Description
|
21
|
-
# ----- | -----------
|
22
|
-
# {Google::Pubsub::V1::AcknowledgeRequest} | Request for the Acknowledge method.
|
23
|
-
# {Google::Pubsub::V1::DeleteSubscriptionRequest} | Request for the DeleteSubscription method.
|
24
|
-
# {Google::Pubsub::V1::DeleteTopicRequest} | Request for the DeleteTopic method.
|
25
|
-
# {Google::Pubsub::V1::GetSubscriptionRequest} | Request for the GetSubscription method.
|
26
|
-
# {Google::Pubsub::V1::GetTopicRequest} | Request for the GetTopic method.
|
27
|
-
# {Google::Pubsub::V1::ListSubscriptionsRequest} | Request for the ListSubscriptions method.
|
28
|
-
# {Google::Pubsub::V1::ListSubscriptionsResponse} | Response for the ListSubscriptions method.
|
29
|
-
# {Google::Pubsub::V1::ListTopicsRequest} | Request for the ListTopics method.
|
30
|
-
# {Google::Pubsub::V1::ListTopicsResponse} | Response for the ListTopics method.
|
31
|
-
# {Google::Pubsub::V1::ListTopicSubscriptionsRequest} | Request for the ListTopicSubscriptions method.
|
32
|
-
# {Google::Pubsub::V1::ListTopicSubscriptionsResponse} | Response for the ListTopicSubscriptions method.
|
33
|
-
# {Google::Pubsub::V1::ModifyAckDeadlineRequest} | Request for the ModifyAckDeadline method.
|
34
|
-
# {Google::Pubsub::V1::ModifyPushConfigRequest} | Request for the ModifyPushConfig method.
|
35
|
-
# {Google::Pubsub::V1::PublishRequest} | Request for the Publish method.
|
36
|
-
# {Google::Pubsub::V1::PublishResponse} | Response for the Publish method.
|
37
|
-
# {Google::Pubsub::V1::PubsubMessage} | A message data and its attributes.
|
38
|
-
# {Google::Pubsub::V1::PullRequest} | Request for the Pull method.
|
39
|
-
# {Google::Pubsub::V1::PullResponse} | Response for the Pull method.
|
40
|
-
# {Google::Pubsub::V1::PushConfig} | Configuration for a push delivery endpoint.
|
41
|
-
# {Google::Pubsub::V1::ReceivedMessage} | A message and its corresponding acknowledgment ID.
|
42
|
-
# {Google::Pubsub::V1::StreamingPullRequest} | Request for the StreamingPull streaming RPC method.
|
43
|
-
# {Google::Pubsub::V1::StreamingPullResponse} | Response for the StreamingPull streaming RPC method.
|
44
|
-
# {Google::Pubsub::V1::Subscription} | A subscription resource.
|
45
|
-
# {Google::Pubsub::V1::Topic} | A topic resource.
|
46
|
-
#
|
47
17
|
module V1
|
48
18
|
# A topic resource.
|
49
19
|
# @!attribute [rw] name
|
@@ -2,7 +2,6 @@
|
|
2
2
|
"interfaces": {
|
3
3
|
"google.pubsub.v1.Publisher": {
|
4
4
|
"retry_codes": {
|
5
|
-
"retry_codes_def": {
|
6
5
|
"idempotent": [
|
7
6
|
"DEADLINE_EXCEEDED",
|
8
7
|
"UNAVAILABLE"
|
@@ -12,7 +11,6 @@
|
|
12
11
|
"UNAVAILABLE"
|
13
12
|
],
|
14
13
|
"non_idempotent": []
|
15
|
-
}
|
16
14
|
},
|
17
15
|
"retry_params": {
|
18
16
|
"default": {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-pubsub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-02-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|
@@ -26,47 +26,19 @@ dependencies:
|
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 0.21.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - "~>"
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '1.0'
|
35
|
-
type: :runtime
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - "~>"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '1.0'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: google-protobuf
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - "~>"
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '3.0'
|
49
|
-
type: :runtime
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - "~>"
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '3.0'
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: googleapis-common-protos
|
29
|
+
name: google-gax
|
58
30
|
requirement: !ruby/object:Gem::Requirement
|
59
31
|
requirements:
|
60
32
|
- - "~>"
|
61
33
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
34
|
+
version: 0.8.0
|
63
35
|
type: :runtime
|
64
36
|
prerelease: false
|
65
37
|
version_requirements: !ruby/object:Gem::Requirement
|
66
38
|
requirements:
|
67
39
|
- - "~>"
|
68
40
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
41
|
+
version: 0.8.0
|
70
42
|
- !ruby/object:Gem::Dependency
|
71
43
|
name: grpc-google-iam-v1
|
72
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,34 +53,20 @@ dependencies:
|
|
81
53
|
- - "~>"
|
82
54
|
- !ruby/object:Gem::Version
|
83
55
|
version: 0.6.8
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: google-gax
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - "~>"
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: 0.6.0
|
91
|
-
type: :runtime
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - "~>"
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: 0.6.0
|
98
56
|
- !ruby/object:Gem::Dependency
|
99
57
|
name: minitest
|
100
58
|
requirement: !ruby/object:Gem::Requirement
|
101
59
|
requirements:
|
102
60
|
- - "~>"
|
103
61
|
- !ruby/object:Gem::Version
|
104
|
-
version: '5.
|
62
|
+
version: '5.10'
|
105
63
|
type: :development
|
106
64
|
prerelease: false
|
107
65
|
version_requirements: !ruby/object:Gem::Requirement
|
108
66
|
requirements:
|
109
67
|
- - "~>"
|
110
68
|
- !ruby/object:Gem::Version
|
111
|
-
version: '5.
|
69
|
+
version: '5.10'
|
112
70
|
- !ruby/object:Gem::Dependency
|
113
71
|
name: minitest-autotest
|
114
72
|
requirement: !ruby/object:Gem::Requirement
|