google-cloud-pubsub 1.1.3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +2 -1
  3. data/CHANGELOG.md +145 -0
  4. data/EMULATOR.md +1 -1
  5. data/TROUBLESHOOTING.md +2 -8
  6. data/lib/google/cloud/pubsub/async_publisher.rb +16 -21
  7. data/lib/google/cloud/pubsub/credentials.rb +2 -2
  8. data/lib/google/cloud/pubsub/project.rb +18 -26
  9. data/lib/google/cloud/pubsub/received_message.rb +38 -0
  10. data/lib/google/cloud/pubsub/retry_policy.rb +90 -0
  11. data/lib/google/cloud/pubsub/service.rb +125 -252
  12. data/lib/google/cloud/pubsub/subscriber/inventory.rb +43 -15
  13. data/lib/google/cloud/pubsub/subscriber/stream.rb +8 -10
  14. data/lib/google/cloud/pubsub/subscriber.rb +86 -15
  15. data/lib/google/cloud/pubsub/subscription/push_config.rb +2 -2
  16. data/lib/google/cloud/pubsub/subscription.rb +297 -7
  17. data/lib/google/cloud/pubsub/topic.rb +65 -2
  18. data/lib/google/cloud/pubsub/version.rb +1 -1
  19. data/lib/google/cloud/pubsub.rb +15 -18
  20. data/lib/google-cloud-pubsub.rb +13 -13
  21. metadata +11 -81
  22. data/lib/google/cloud/pubsub/v1/credentials.rb +0 -41
  23. data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb +0 -21
  24. data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/options.rb +0 -21
  25. data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb +0 -21
  26. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb +0 -91
  27. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb +0 -29
  28. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb +0 -222
  29. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb +0 -113
  30. data/lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb +0 -744
  31. data/lib/google/cloud/pubsub/v1/doc/google/type/expr.rb +0 -19
  32. data/lib/google/cloud/pubsub/v1/publisher_client.rb +0 -786
  33. data/lib/google/cloud/pubsub/v1/publisher_client_config.json +0 -105
  34. data/lib/google/cloud/pubsub/v1/subscriber_client.rb +0 -1385
  35. data/lib/google/cloud/pubsub/v1/subscriber_client_config.json +0 -144
  36. data/lib/google/cloud/pubsub/v1.rb +0 -17
  37. data/lib/google/pubsub/v1/pubsub_pb.rb +0 -249
  38. data/lib/google/pubsub/v1/pubsub_services_pb.rb +0 -211
@@ -1,105 +0,0 @@
1
- {
2
- "interfaces": {
3
- "google.pubsub.v1.Publisher": {
4
- "retry_codes": {
5
- "idempotent": [
6
- "ABORTED",
7
- "UNAVAILABLE",
8
- "UNKNOWN"
9
- ],
10
- "non_idempotent": [
11
- "UNAVAILABLE"
12
- ],
13
- "none": [],
14
- "publish": [
15
- "ABORTED",
16
- "CANCELLED",
17
- "DEADLINE_EXCEEDED",
18
- "INTERNAL",
19
- "RESOURCE_EXHAUSTED",
20
- "UNAVAILABLE",
21
- "UNKNOWN"
22
- ]
23
- },
24
- "retry_params": {
25
- "default": {
26
- "initial_retry_delay_millis": 100,
27
- "retry_delay_multiplier": 1.3,
28
- "max_retry_delay_millis": 60000,
29
- "initial_rpc_timeout_millis": 60000,
30
- "rpc_timeout_multiplier": 1.0,
31
- "max_rpc_timeout_millis": 60000,
32
- "total_timeout_millis": 600000
33
- },
34
- "messaging": {
35
- "initial_retry_delay_millis": 100,
36
- "retry_delay_multiplier": 1.3,
37
- "max_retry_delay_millis": 60000,
38
- "initial_rpc_timeout_millis": 5000,
39
- "rpc_timeout_multiplier": 1.3,
40
- "max_rpc_timeout_millis": 60000,
41
- "total_timeout_millis": 60000
42
- }
43
- },
44
- "methods": {
45
- "CreateTopic": {
46
- "timeout_millis": 60000,
47
- "retry_codes_name": "non_idempotent",
48
- "retry_params_name": "default"
49
- },
50
- "UpdateTopic": {
51
- "timeout_millis": 60000,
52
- "retry_codes_name": "non_idempotent",
53
- "retry_params_name": "default"
54
- },
55
- "Publish": {
56
- "timeout_millis": 60000,
57
- "retry_codes_name": "publish",
58
- "retry_params_name": "messaging",
59
- "bundling": {
60
- "element_count_threshold": 100,
61
- "element_count_limit": 1000,
62
- "request_byte_threshold": 1048576,
63
- "request_byte_limit": 10485760,
64
- "delay_threshold_millis": 10
65
- }
66
- },
67
- "GetTopic": {
68
- "timeout_millis": 60000,
69
- "retry_codes_name": "idempotent",
70
- "retry_params_name": "default"
71
- },
72
- "ListTopics": {
73
- "timeout_millis": 60000,
74
- "retry_codes_name": "idempotent",
75
- "retry_params_name": "default"
76
- },
77
- "ListTopicSubscriptions": {
78
- "timeout_millis": 60000,
79
- "retry_codes_name": "idempotent",
80
- "retry_params_name": "default"
81
- },
82
- "DeleteTopic": {
83
- "timeout_millis": 60000,
84
- "retry_codes_name": "non_idempotent",
85
- "retry_params_name": "default"
86
- },
87
- "SetIamPolicy": {
88
- "timeout_millis": 60000,
89
- "retry_codes_name": "non_idempotent",
90
- "retry_params_name": "default"
91
- },
92
- "GetIamPolicy": {
93
- "timeout_millis": 60000,
94
- "retry_codes_name": "idempotent",
95
- "retry_params_name": "default"
96
- },
97
- "TestIamPermissions": {
98
- "timeout_millis": 60000,
99
- "retry_codes_name": "non_idempotent",
100
- "retry_params_name": "default"
101
- }
102
- }
103
- }
104
- }
105
- }