google-cloud-pubsub 1.0.2 → 2.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +16 -54
  3. data/CHANGELOG.md +464 -0
  4. data/CONTRIBUTING.md +328 -116
  5. data/EMULATOR.md +1 -1
  6. data/LOGGING.md +94 -2
  7. data/OVERVIEW.md +121 -68
  8. data/TROUBLESHOOTING.md +2 -8
  9. data/lib/google/cloud/pubsub/acknowledge_result.rb +79 -0
  10. data/lib/google/cloud/pubsub/async_publisher/batch.rb +319 -0
  11. data/lib/google/cloud/pubsub/async_publisher.rb +231 -156
  12. data/lib/google/cloud/pubsub/batch_publisher.rb +60 -30
  13. data/lib/google/cloud/pubsub/convert.rb +33 -7
  14. data/lib/google/cloud/pubsub/credentials.rb +2 -2
  15. data/lib/google/cloud/pubsub/errors.rb +93 -0
  16. data/lib/google/cloud/pubsub/flow_controller.rb +137 -0
  17. data/lib/google/cloud/pubsub/message.rb +45 -4
  18. data/lib/google/cloud/pubsub/policy.rb +3 -2
  19. data/lib/google/cloud/pubsub/project.rb +316 -49
  20. data/lib/google/cloud/pubsub/publish_result.rb +6 -1
  21. data/lib/google/cloud/pubsub/received_message.rb +171 -10
  22. data/lib/google/cloud/pubsub/retry_policy.rb +88 -0
  23. data/lib/google/cloud/pubsub/schema/list.rb +180 -0
  24. data/lib/google/cloud/pubsub/schema.rb +310 -0
  25. data/lib/google/cloud/pubsub/service.rb +285 -269
  26. data/lib/google/cloud/pubsub/snapshot/list.rb +4 -6
  27. data/lib/google/cloud/pubsub/snapshot.rb +5 -2
  28. data/lib/google/cloud/pubsub/subscriber/inventory.rb +69 -32
  29. data/lib/google/cloud/pubsub/subscriber/sequencer.rb +115 -0
  30. data/lib/google/cloud/pubsub/subscriber/stream.rb +108 -49
  31. data/lib/google/cloud/pubsub/subscriber/timed_unary_buffer.rb +191 -30
  32. data/lib/google/cloud/pubsub/subscriber.rb +155 -45
  33. data/lib/google/cloud/pubsub/subscription/list.rb +4 -6
  34. data/lib/google/cloud/pubsub/subscription/push_config.rb +55 -31
  35. data/lib/google/cloud/pubsub/subscription.rb +561 -77
  36. data/lib/google/cloud/pubsub/topic/list.rb +4 -6
  37. data/lib/google/cloud/pubsub/topic.rb +372 -52
  38. data/lib/google/cloud/pubsub/version.rb +1 -1
  39. data/lib/google/cloud/pubsub.rb +35 -46
  40. data/lib/google-cloud-pubsub.rb +21 -27
  41. metadata +26 -189
  42. data/lib/google/cloud/pubsub/v1/credentials.rb +0 -41
  43. data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb +0 -21
  44. data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/options.rb +0 -21
  45. data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb +0 -21
  46. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb +0 -91
  47. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb +0 -29
  48. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb +0 -222
  49. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb +0 -113
  50. data/lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb +0 -744
  51. data/lib/google/cloud/pubsub/v1/doc/google/type/expr.rb +0 -19
  52. data/lib/google/cloud/pubsub/v1/publisher_client.rb +0 -786
  53. data/lib/google/cloud/pubsub/v1/publisher_client_config.json +0 -105
  54. data/lib/google/cloud/pubsub/v1/subscriber_client.rb +0 -1385
  55. data/lib/google/cloud/pubsub/v1/subscriber_client_config.json +0 -138
  56. data/lib/google/cloud/pubsub/v1.rb +0 -17
  57. data/lib/google/pubsub/v1/pubsub_pb.rb +0 -249
  58. 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": 600000,
41
- "total_timeout_millis": 600000
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": 10,
61
- "element_count_limit": 1000,
62
- "request_byte_threshold": 1024,
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
- }