gcloud 0.6.3 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +8 -8
  2. data/AUTHENTICATION.md +13 -9
  3. data/CHANGELOG.md +8 -3
  4. data/OVERVIEW.md +46 -8
  5. data/lib/gcloud.rb +123 -117
  6. data/lib/gcloud/backoff.rb +43 -15
  7. data/lib/gcloud/bigquery.rb +211 -195
  8. data/lib/gcloud/bigquery/connection.rb +9 -9
  9. data/lib/gcloud/bigquery/copy_job.rb +15 -16
  10. data/lib/gcloud/bigquery/credentials.rb +3 -3
  11. data/lib/gcloud/bigquery/data.rb +12 -11
  12. data/lib/gcloud/bigquery/dataset.rb +162 -216
  13. data/lib/gcloud/bigquery/dataset/access.rb +59 -43
  14. data/lib/gcloud/bigquery/dataset/list.rb +3 -3
  15. data/lib/gcloud/bigquery/errors.rb +9 -5
  16. data/lib/gcloud/bigquery/extract_job.rb +18 -18
  17. data/lib/gcloud/bigquery/insert_response.rb +7 -4
  18. data/lib/gcloud/bigquery/job.rb +48 -44
  19. data/lib/gcloud/bigquery/job/list.rb +3 -3
  20. data/lib/gcloud/bigquery/load_job.rb +24 -25
  21. data/lib/gcloud/bigquery/project.rb +145 -204
  22. data/lib/gcloud/bigquery/query_data.rb +10 -9
  23. data/lib/gcloud/bigquery/query_job.rb +23 -32
  24. data/lib/gcloud/bigquery/table.rb +238 -280
  25. data/lib/gcloud/bigquery/table/list.rb +3 -3
  26. data/lib/gcloud/bigquery/table/schema.rb +79 -87
  27. data/lib/gcloud/bigquery/view.rb +69 -82
  28. data/lib/gcloud/credentials.rb +3 -9
  29. data/lib/gcloud/datastore.rb +194 -170
  30. data/lib/gcloud/datastore/connection.rb +12 -8
  31. data/lib/gcloud/datastore/credentials.rb +6 -4
  32. data/lib/gcloud/datastore/dataset.rb +74 -141
  33. data/lib/gcloud/datastore/dataset/lookup_results.rb +6 -4
  34. data/lib/gcloud/datastore/dataset/query_results.rb +6 -4
  35. data/lib/gcloud/datastore/entity.rb +81 -76
  36. data/lib/gcloud/datastore/errors.rb +10 -8
  37. data/lib/gcloud/datastore/key.rb +41 -77
  38. data/lib/gcloud/datastore/properties.rb +3 -3
  39. data/lib/gcloud/datastore/proto.rb +7 -4
  40. data/lib/gcloud/datastore/query.rb +26 -3
  41. data/lib/gcloud/datastore/transaction.rb +12 -8
  42. data/lib/gcloud/dns.rb +180 -152
  43. data/lib/gcloud/dns/change.rb +16 -16
  44. data/lib/gcloud/dns/change/list.rb +3 -3
  45. data/lib/gcloud/dns/connection.rb +9 -10
  46. data/lib/gcloud/dns/credentials.rb +3 -3
  47. data/lib/gcloud/dns/errors.rb +9 -5
  48. data/lib/gcloud/dns/importer.rb +17 -23
  49. data/lib/gcloud/dns/project.rb +42 -64
  50. data/lib/gcloud/dns/record.rb +58 -46
  51. data/lib/gcloud/dns/record/list.rb +6 -7
  52. data/lib/gcloud/dns/zone.rb +198 -289
  53. data/lib/gcloud/dns/zone/list.rb +3 -3
  54. data/lib/gcloud/dns/zone/transaction.rb +56 -72
  55. data/lib/gcloud/errors.rb +174 -3
  56. data/lib/gcloud/gce.rb +3 -4
  57. data/lib/gcloud/grpc_utils.rb +76 -0
  58. data/lib/gcloud/logging.rb +308 -0
  59. data/lib/gcloud/logging/credentials.rb +29 -0
  60. data/lib/gcloud/logging/entry.rb +303 -0
  61. data/lib/gcloud/logging/entry/http_request.rb +141 -0
  62. data/lib/gcloud/logging/entry/list.rb +111 -0
  63. data/lib/gcloud/logging/entry/operation.rb +90 -0
  64. data/lib/gcloud/logging/logger.rb +307 -0
  65. data/lib/gcloud/logging/metric.rb +175 -0
  66. data/lib/gcloud/logging/metric/list.rb +98 -0
  67. data/lib/gcloud/logging/project.rb +650 -0
  68. data/lib/gcloud/logging/resource.rb +95 -0
  69. data/lib/gcloud/logging/resource_descriptor.rb +140 -0
  70. data/lib/gcloud/logging/resource_descriptor/list.rb +78 -0
  71. data/lib/gcloud/logging/service.rb +258 -0
  72. data/lib/gcloud/logging/sink.rb +233 -0
  73. data/lib/gcloud/logging/sink/list.rb +97 -0
  74. data/lib/gcloud/pubsub.rb +241 -199
  75. data/lib/gcloud/pubsub/credentials.rb +3 -3
  76. data/lib/gcloud/pubsub/message.rb +26 -20
  77. data/lib/gcloud/pubsub/project.rb +166 -233
  78. data/lib/gcloud/pubsub/received_message.rb +28 -38
  79. data/lib/gcloud/pubsub/service.rb +323 -0
  80. data/lib/gcloud/pubsub/subscription.rb +172 -242
  81. data/lib/gcloud/pubsub/subscription/list.rb +11 -9
  82. data/lib/gcloud/pubsub/topic.rb +152 -271
  83. data/lib/gcloud/pubsub/topic/batch.rb +66 -0
  84. data/lib/gcloud/pubsub/topic/list.rb +9 -7
  85. data/lib/gcloud/resource_manager.rb +158 -138
  86. data/lib/gcloud/resource_manager/connection.rb +6 -5
  87. data/lib/gcloud/resource_manager/credentials.rb +3 -3
  88. data/lib/gcloud/resource_manager/errors.rb +9 -5
  89. data/lib/gcloud/resource_manager/manager.rb +54 -86
  90. data/lib/gcloud/resource_manager/project.rb +69 -88
  91. data/lib/gcloud/resource_manager/project/list.rb +4 -5
  92. data/lib/gcloud/resource_manager/project/updater.rb +12 -14
  93. data/lib/gcloud/search.rb +158 -135
  94. data/lib/gcloud/search/api_client.rb +7 -7
  95. data/lib/gcloud/search/connection.rb +8 -8
  96. data/lib/gcloud/search/credentials.rb +3 -3
  97. data/lib/gcloud/search/document.rb +64 -87
  98. data/lib/gcloud/search/document/list.rb +5 -5
  99. data/lib/gcloud/search/errors.rb +9 -5
  100. data/lib/gcloud/search/field_value.rb +32 -38
  101. data/lib/gcloud/search/field_values.rb +50 -80
  102. data/lib/gcloud/search/fields.rb +44 -65
  103. data/lib/gcloud/search/index.rb +163 -204
  104. data/lib/gcloud/search/index/list.rb +5 -5
  105. data/lib/gcloud/search/project.rb +31 -47
  106. data/lib/gcloud/search/result.rb +27 -31
  107. data/lib/gcloud/search/result/list.rb +6 -6
  108. data/lib/gcloud/storage.rb +224 -190
  109. data/lib/gcloud/storage/bucket.rb +202 -227
  110. data/lib/gcloud/storage/bucket/acl.rb +83 -170
  111. data/lib/gcloud/storage/bucket/cors.rb +31 -34
  112. data/lib/gcloud/storage/bucket/list.rb +3 -3
  113. data/lib/gcloud/storage/connection.rb +11 -7
  114. data/lib/gcloud/storage/credentials.rb +3 -3
  115. data/lib/gcloud/storage/errors.rb +11 -8
  116. data/lib/gcloud/storage/file.rb +129 -171
  117. data/lib/gcloud/storage/file/acl.rb +51 -99
  118. data/lib/gcloud/storage/file/list.rb +3 -3
  119. data/lib/gcloud/storage/file/verifier.rb +3 -2
  120. data/lib/gcloud/storage/project.rb +111 -132
  121. data/lib/gcloud/upload.rb +4 -7
  122. data/lib/gcloud/version.rb +2 -4
  123. data/lib/google/api/annotations.rb +14 -0
  124. data/lib/google/api/http.rb +30 -0
  125. data/lib/google/api/label.rb +24 -0
  126. data/lib/google/api/monitored_resource.rb +25 -0
  127. data/lib/google/datastore/v1beta3/datastore.rb +115 -0
  128. data/lib/google/datastore/v1beta3/datastore_services.rb +33 -0
  129. data/lib/google/datastore/v1beta3/entity.rb +63 -0
  130. data/lib/google/datastore/v1beta3/query.rb +128 -0
  131. data/lib/google/devtools/cloudtrace/v1/trace.rb +78 -0
  132. data/lib/google/devtools/cloudtrace/v1/trace_services.rb +32 -0
  133. data/lib/google/example/library/v1/library.rb +91 -0
  134. data/lib/google/example/library/v1/library_services.rb +40 -0
  135. data/lib/google/iam/v1/iam_policy.rb +33 -0
  136. data/lib/google/iam/v1/iam_policy_services.rb +30 -0
  137. data/lib/google/iam/v1/policy.rb +25 -0
  138. data/lib/google/logging/type/http_request.rb +28 -0
  139. data/lib/google/logging/type/log_severity.rb +27 -0
  140. data/lib/google/logging/v2/log_entry.rb +44 -0
  141. data/lib/google/logging/v2/logging.rb +56 -0
  142. data/lib/google/logging/v2/logging_config.rb +59 -0
  143. data/lib/google/logging/v2/logging_config_services.rb +32 -0
  144. data/lib/google/logging/v2/logging_metrics.rb +51 -0
  145. data/lib/google/logging/v2/logging_metrics_services.rb +32 -0
  146. data/lib/google/logging/v2/logging_services.rb +31 -0
  147. data/lib/google/longrunning/operations.rb +50 -0
  148. data/lib/google/longrunning/operations_services.rb +29 -0
  149. data/lib/google/protobuf/any.rb +17 -0
  150. data/lib/google/protobuf/api.rb +31 -0
  151. data/lib/google/protobuf/descriptor.rb +0 -0
  152. data/lib/google/protobuf/duration.rb +17 -0
  153. data/lib/google/protobuf/empty.rb +15 -0
  154. data/lib/google/protobuf/field_mask.rb +16 -0
  155. data/lib/google/protobuf/source_context.rb +16 -0
  156. data/lib/google/protobuf/struct.rb +35 -0
  157. data/lib/google/protobuf/timestamp.rb +17 -0
  158. data/lib/google/protobuf/type.rb +79 -0
  159. data/lib/google/protobuf/wrappers.rb +48 -0
  160. data/lib/google/pubsub/v1/pubsub.rb +129 -0
  161. data/lib/google/pubsub/v1/pubsub_services.rb +56 -0
  162. data/lib/google/pubsub/v1beta2/pubsub.rb +126 -0
  163. data/lib/google/pubsub/v1beta2/pubsub_services.rb +56 -0
  164. data/lib/google/rpc/code.rb +32 -0
  165. data/lib/google/rpc/error_details.rb +61 -0
  166. data/lib/google/rpc/status.rb +19 -0
  167. data/lib/google/type/color.rb +20 -0
  168. data/lib/google/type/date.rb +18 -0
  169. data/lib/google/type/dayofweek.rb +23 -0
  170. data/lib/google/type/latlng.rb +17 -0
  171. data/lib/google/type/money.rb +18 -0
  172. data/lib/google/type/timeofday.rb +19 -0
  173. metadata +101 -4
  174. data/lib/gcloud/pubsub/connection.rb +0 -295
  175. data/lib/gcloud/pubsub/errors.rb +0 -93
@@ -0,0 +1,17 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/protobuf/timestamp.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "google.protobuf.Timestamp" do
8
+ optional :seconds, :int64, 1
9
+ optional :nanos, :int32, 2
10
+ end
11
+ end
12
+
13
+ module Google
14
+ module Protobuf
15
+ Timestamp = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Timestamp").msgclass
16
+ end
17
+ end
@@ -0,0 +1,79 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/protobuf/type.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/any'
7
+ require 'google/protobuf/source_context'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_message "google.protobuf.Type" do
10
+ optional :name, :string, 1
11
+ repeated :fields, :message, 2, "google.protobuf.Field"
12
+ repeated :oneofs, :string, 3
13
+ repeated :options, :message, 4, "google.protobuf.Option"
14
+ optional :source_context, :message, 5, "google.protobuf.SourceContext"
15
+ end
16
+ add_message "google.protobuf.Field" do
17
+ optional :kind, :enum, 1, "google.protobuf.Field.Kind"
18
+ optional :cardinality, :enum, 2, "google.protobuf.Field.Cardinality"
19
+ optional :number, :int32, 3
20
+ optional :name, :string, 4
21
+ optional :type_url, :string, 6
22
+ optional :oneof_index, :int32, 7
23
+ optional :packed, :bool, 8
24
+ repeated :options, :message, 9, "google.protobuf.Option"
25
+ end
26
+ add_enum "google.protobuf.Field.Kind" do
27
+ value :TYPE_UNKNOWN, 0
28
+ value :TYPE_DOUBLE, 1
29
+ value :TYPE_FLOAT, 2
30
+ value :TYPE_INT64, 3
31
+ value :TYPE_UINT64, 4
32
+ value :TYPE_INT32, 5
33
+ value :TYPE_FIXED64, 6
34
+ value :TYPE_FIXED32, 7
35
+ value :TYPE_BOOL, 8
36
+ value :TYPE_STRING, 9
37
+ value :TYPE_MESSAGE, 11
38
+ value :TYPE_BYTES, 12
39
+ value :TYPE_UINT32, 13
40
+ value :TYPE_ENUM, 14
41
+ value :TYPE_SFIXED32, 15
42
+ value :TYPE_SFIXED64, 16
43
+ value :TYPE_SINT32, 17
44
+ value :TYPE_SINT64, 18
45
+ end
46
+ add_enum "google.protobuf.Field.Cardinality" do
47
+ value :CARDINALITY_UNKNOWN, 0
48
+ value :CARDINALITY_OPTIONAL, 1
49
+ value :CARDINALITY_REQUIRED, 2
50
+ value :CARDINALITY_REPEATED, 3
51
+ end
52
+ add_message "google.protobuf.Enum" do
53
+ optional :name, :string, 1
54
+ repeated :enumvalue, :message, 2, "google.protobuf.EnumValue"
55
+ repeated :options, :message, 3, "google.protobuf.Option"
56
+ optional :source_context, :message, 4, "google.protobuf.SourceContext"
57
+ end
58
+ add_message "google.protobuf.EnumValue" do
59
+ optional :name, :string, 1
60
+ optional :number, :int32, 2
61
+ repeated :options, :message, 3, "google.protobuf.Option"
62
+ end
63
+ add_message "google.protobuf.Option" do
64
+ optional :name, :string, 1
65
+ optional :value, :message, 2, "google.protobuf.Any"
66
+ end
67
+ end
68
+
69
+ module Google
70
+ module Protobuf
71
+ Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Type").msgclass
72
+ Field = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Field").msgclass
73
+ Field::Kind = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Field.Kind").enummodule
74
+ Field::Cardinality = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Field.Cardinality").enummodule
75
+ Enum = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Enum").msgclass
76
+ EnumValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.EnumValue").msgclass
77
+ Option = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Option").msgclass
78
+ end
79
+ end
@@ -0,0 +1,48 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/protobuf/wrappers.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "google.protobuf.DoubleValue" do
8
+ optional :value, :double, 1
9
+ end
10
+ add_message "google.protobuf.FloatValue" do
11
+ optional :value, :float, 1
12
+ end
13
+ add_message "google.protobuf.Int64Value" do
14
+ optional :value, :int64, 1
15
+ end
16
+ add_message "google.protobuf.UInt64Value" do
17
+ optional :value, :uint64, 1
18
+ end
19
+ add_message "google.protobuf.Int32Value" do
20
+ optional :value, :int32, 1
21
+ end
22
+ add_message "google.protobuf.UInt32Value" do
23
+ optional :value, :uint32, 1
24
+ end
25
+ add_message "google.protobuf.BoolValue" do
26
+ optional :value, :bool, 1
27
+ end
28
+ add_message "google.protobuf.StringValue" do
29
+ optional :value, :string, 1
30
+ end
31
+ add_message "google.protobuf.BytesValue" do
32
+ optional :value, :bytes, 1
33
+ end
34
+ end
35
+
36
+ module Google
37
+ module Protobuf
38
+ DoubleValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.DoubleValue").msgclass
39
+ FloatValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.FloatValue").msgclass
40
+ Int64Value = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Int64Value").msgclass
41
+ UInt64Value = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.UInt64Value").msgclass
42
+ Int32Value = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Int32Value").msgclass
43
+ UInt32Value = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.UInt32Value").msgclass
44
+ BoolValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.BoolValue").msgclass
45
+ StringValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.StringValue").msgclass
46
+ BytesValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.BytesValue").msgclass
47
+ end
48
+ end
@@ -0,0 +1,129 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/pubsub/v1/pubsub.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations'
7
+ require 'google/protobuf/empty'
8
+ require 'google/protobuf/timestamp'
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_message "google.pubsub.v1.Topic" do
11
+ optional :name, :string, 1
12
+ end
13
+ add_message "google.pubsub.v1.PubsubMessage" do
14
+ optional :data, :bytes, 1
15
+ map :attributes, :string, :string, 2
16
+ optional :message_id, :string, 3
17
+ optional :publish_time, :message, 4, "google.protobuf.Timestamp"
18
+ end
19
+ add_message "google.pubsub.v1.GetTopicRequest" do
20
+ optional :topic, :string, 1
21
+ end
22
+ add_message "google.pubsub.v1.PublishRequest" do
23
+ optional :topic, :string, 1
24
+ repeated :messages, :message, 2, "google.pubsub.v1.PubsubMessage"
25
+ end
26
+ add_message "google.pubsub.v1.PublishResponse" do
27
+ repeated :message_ids, :string, 1
28
+ end
29
+ add_message "google.pubsub.v1.ListTopicsRequest" do
30
+ optional :project, :string, 1
31
+ optional :page_size, :int32, 2
32
+ optional :page_token, :string, 3
33
+ end
34
+ add_message "google.pubsub.v1.ListTopicsResponse" do
35
+ repeated :topics, :message, 1, "google.pubsub.v1.Topic"
36
+ optional :next_page_token, :string, 2
37
+ end
38
+ add_message "google.pubsub.v1.ListTopicSubscriptionsRequest" do
39
+ optional :topic, :string, 1
40
+ optional :page_size, :int32, 2
41
+ optional :page_token, :string, 3
42
+ end
43
+ add_message "google.pubsub.v1.ListTopicSubscriptionsResponse" do
44
+ repeated :subscriptions, :string, 1
45
+ optional :next_page_token, :string, 2
46
+ end
47
+ add_message "google.pubsub.v1.DeleteTopicRequest" do
48
+ optional :topic, :string, 1
49
+ end
50
+ add_message "google.pubsub.v1.Subscription" do
51
+ optional :name, :string, 1
52
+ optional :topic, :string, 2
53
+ optional :push_config, :message, 4, "google.pubsub.v1.PushConfig"
54
+ optional :ack_deadline_seconds, :int32, 5
55
+ end
56
+ add_message "google.pubsub.v1.PushConfig" do
57
+ optional :push_endpoint, :string, 1
58
+ map :attributes, :string, :string, 2
59
+ end
60
+ add_message "google.pubsub.v1.ReceivedMessage" do
61
+ optional :ack_id, :string, 1
62
+ optional :message, :message, 2, "google.pubsub.v1.PubsubMessage"
63
+ end
64
+ add_message "google.pubsub.v1.GetSubscriptionRequest" do
65
+ optional :subscription, :string, 1
66
+ end
67
+ add_message "google.pubsub.v1.ListSubscriptionsRequest" do
68
+ optional :project, :string, 1
69
+ optional :page_size, :int32, 2
70
+ optional :page_token, :string, 3
71
+ end
72
+ add_message "google.pubsub.v1.ListSubscriptionsResponse" do
73
+ repeated :subscriptions, :message, 1, "google.pubsub.v1.Subscription"
74
+ optional :next_page_token, :string, 2
75
+ end
76
+ add_message "google.pubsub.v1.DeleteSubscriptionRequest" do
77
+ optional :subscription, :string, 1
78
+ end
79
+ add_message "google.pubsub.v1.ModifyPushConfigRequest" do
80
+ optional :subscription, :string, 1
81
+ optional :push_config, :message, 2, "google.pubsub.v1.PushConfig"
82
+ end
83
+ add_message "google.pubsub.v1.PullRequest" do
84
+ optional :subscription, :string, 1
85
+ optional :return_immediately, :bool, 2
86
+ optional :max_messages, :int32, 3
87
+ end
88
+ add_message "google.pubsub.v1.PullResponse" do
89
+ repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
90
+ end
91
+ add_message "google.pubsub.v1.ModifyAckDeadlineRequest" do
92
+ optional :subscription, :string, 1
93
+ repeated :ack_ids, :string, 4
94
+ optional :ack_deadline_seconds, :int32, 3
95
+ end
96
+ add_message "google.pubsub.v1.AcknowledgeRequest" do
97
+ optional :subscription, :string, 1
98
+ repeated :ack_ids, :string, 2
99
+ end
100
+ end
101
+
102
+ module Google
103
+ module Pubsub
104
+ module V1
105
+ Topic = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Topic").msgclass
106
+ PubsubMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PubsubMessage").msgclass
107
+ GetTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetTopicRequest").msgclass
108
+ PublishRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PublishRequest").msgclass
109
+ PublishResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PublishResponse").msgclass
110
+ ListTopicsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicsRequest").msgclass
111
+ ListTopicsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicsResponse").msgclass
112
+ ListTopicSubscriptionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSubscriptionsRequest").msgclass
113
+ ListTopicSubscriptionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSubscriptionsResponse").msgclass
114
+ DeleteTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteTopicRequest").msgclass
115
+ Subscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Subscription").msgclass
116
+ PushConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PushConfig").msgclass
117
+ ReceivedMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ReceivedMessage").msgclass
118
+ GetSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetSubscriptionRequest").msgclass
119
+ ListSubscriptionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSubscriptionsRequest").msgclass
120
+ ListSubscriptionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSubscriptionsResponse").msgclass
121
+ DeleteSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteSubscriptionRequest").msgclass
122
+ ModifyPushConfigRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ModifyPushConfigRequest").msgclass
123
+ PullRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PullRequest").msgclass
124
+ PullResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PullResponse").msgclass
125
+ ModifyAckDeadlineRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ModifyAckDeadlineRequest").msgclass
126
+ AcknowledgeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.AcknowledgeRequest").msgclass
127
+ end
128
+ end
129
+ end
@@ -0,0 +1,56 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/pubsub/v1/pubsub.proto for package 'google.pubsub.v1'
3
+
4
+ require 'grpc'
5
+ require 'google/pubsub/v1/pubsub'
6
+
7
+ module Google
8
+ module Pubsub
9
+ module V1
10
+ module Subscriber
11
+
12
+ # TODO: add proto service documentation here
13
+ class Service
14
+
15
+ include GRPC::GenericService
16
+
17
+ self.marshal_class_method = :encode
18
+ self.unmarshal_class_method = :decode
19
+ self.service_name = 'google.pubsub.v1.Subscriber'
20
+
21
+ rpc :CreateSubscription, Subscription, Subscription
22
+ rpc :GetSubscription, GetSubscriptionRequest, Subscription
23
+ rpc :ListSubscriptions, ListSubscriptionsRequest, ListSubscriptionsResponse
24
+ rpc :DeleteSubscription, DeleteSubscriptionRequest, Google::Protobuf::Empty
25
+ rpc :ModifyAckDeadline, ModifyAckDeadlineRequest, Google::Protobuf::Empty
26
+ rpc :Acknowledge, AcknowledgeRequest, Google::Protobuf::Empty
27
+ rpc :Pull, PullRequest, PullResponse
28
+ rpc :ModifyPushConfig, ModifyPushConfigRequest, Google::Protobuf::Empty
29
+ end
30
+
31
+ Stub = Service.rpc_stub_class
32
+ end
33
+ module Publisher
34
+
35
+ # TODO: add proto service documentation here
36
+ class Service
37
+
38
+ include GRPC::GenericService
39
+
40
+ self.marshal_class_method = :encode
41
+ self.unmarshal_class_method = :decode
42
+ self.service_name = 'google.pubsub.v1.Publisher'
43
+
44
+ rpc :CreateTopic, Topic, Topic
45
+ rpc :Publish, PublishRequest, PublishResponse
46
+ rpc :GetTopic, GetTopicRequest, Topic
47
+ rpc :ListTopics, ListTopicsRequest, ListTopicsResponse
48
+ rpc :ListTopicSubscriptions, ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse
49
+ rpc :DeleteTopic, DeleteTopicRequest, Google::Protobuf::Empty
50
+ end
51
+
52
+ Stub = Service.rpc_stub_class
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,126 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/pubsub/v1beta2/pubsub.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/empty'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_message "google.pubsub.v1beta2.Topic" do
9
+ optional :name, :string, 1
10
+ end
11
+ add_message "google.pubsub.v1beta2.PubsubMessage" do
12
+ optional :data, :bytes, 1
13
+ map :attributes, :string, :string, 2
14
+ optional :message_id, :string, 3
15
+ end
16
+ add_message "google.pubsub.v1beta2.GetTopicRequest" do
17
+ optional :topic, :string, 1
18
+ end
19
+ add_message "google.pubsub.v1beta2.PublishRequest" do
20
+ optional :topic, :string, 1
21
+ repeated :messages, :message, 2, "google.pubsub.v1beta2.PubsubMessage"
22
+ end
23
+ add_message "google.pubsub.v1beta2.PublishResponse" do
24
+ repeated :message_ids, :string, 1
25
+ end
26
+ add_message "google.pubsub.v1beta2.ListTopicsRequest" do
27
+ optional :project, :string, 1
28
+ optional :page_size, :int32, 2
29
+ optional :page_token, :string, 3
30
+ end
31
+ add_message "google.pubsub.v1beta2.ListTopicsResponse" do
32
+ repeated :topics, :message, 1, "google.pubsub.v1beta2.Topic"
33
+ optional :next_page_token, :string, 2
34
+ end
35
+ add_message "google.pubsub.v1beta2.ListTopicSubscriptionsRequest" do
36
+ optional :topic, :string, 1
37
+ optional :page_size, :int32, 2
38
+ optional :page_token, :string, 3
39
+ end
40
+ add_message "google.pubsub.v1beta2.ListTopicSubscriptionsResponse" do
41
+ repeated :subscriptions, :string, 1
42
+ optional :next_page_token, :string, 2
43
+ end
44
+ add_message "google.pubsub.v1beta2.DeleteTopicRequest" do
45
+ optional :topic, :string, 1
46
+ end
47
+ add_message "google.pubsub.v1beta2.Subscription" do
48
+ optional :name, :string, 1
49
+ optional :topic, :string, 2
50
+ optional :push_config, :message, 4, "google.pubsub.v1beta2.PushConfig"
51
+ optional :ack_deadline_seconds, :int32, 5
52
+ end
53
+ add_message "google.pubsub.v1beta2.PushConfig" do
54
+ optional :push_endpoint, :string, 1
55
+ map :attributes, :string, :string, 2
56
+ end
57
+ add_message "google.pubsub.v1beta2.ReceivedMessage" do
58
+ optional :ack_id, :string, 1
59
+ optional :message, :message, 2, "google.pubsub.v1beta2.PubsubMessage"
60
+ end
61
+ add_message "google.pubsub.v1beta2.GetSubscriptionRequest" do
62
+ optional :subscription, :string, 1
63
+ end
64
+ add_message "google.pubsub.v1beta2.ListSubscriptionsRequest" do
65
+ optional :project, :string, 1
66
+ optional :page_size, :int32, 2
67
+ optional :page_token, :string, 3
68
+ end
69
+ add_message "google.pubsub.v1beta2.ListSubscriptionsResponse" do
70
+ repeated :subscriptions, :message, 1, "google.pubsub.v1beta2.Subscription"
71
+ optional :next_page_token, :string, 2
72
+ end
73
+ add_message "google.pubsub.v1beta2.DeleteSubscriptionRequest" do
74
+ optional :subscription, :string, 1
75
+ end
76
+ add_message "google.pubsub.v1beta2.ModifyPushConfigRequest" do
77
+ optional :subscription, :string, 1
78
+ optional :push_config, :message, 2, "google.pubsub.v1beta2.PushConfig"
79
+ end
80
+ add_message "google.pubsub.v1beta2.PullRequest" do
81
+ optional :subscription, :string, 1
82
+ optional :return_immediately, :bool, 2
83
+ optional :max_messages, :int32, 3
84
+ end
85
+ add_message "google.pubsub.v1beta2.PullResponse" do
86
+ repeated :received_messages, :message, 1, "google.pubsub.v1beta2.ReceivedMessage"
87
+ end
88
+ add_message "google.pubsub.v1beta2.ModifyAckDeadlineRequest" do
89
+ optional :subscription, :string, 1
90
+ optional :ack_id, :string, 2
91
+ optional :ack_deadline_seconds, :int32, 3
92
+ end
93
+ add_message "google.pubsub.v1beta2.AcknowledgeRequest" do
94
+ optional :subscription, :string, 1
95
+ repeated :ack_ids, :string, 2
96
+ end
97
+ end
98
+
99
+ module Google
100
+ module Pubsub
101
+ module V1beta2
102
+ Topic = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.Topic").msgclass
103
+ PubsubMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.PubsubMessage").msgclass
104
+ GetTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.GetTopicRequest").msgclass
105
+ PublishRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.PublishRequest").msgclass
106
+ PublishResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.PublishResponse").msgclass
107
+ ListTopicsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.ListTopicsRequest").msgclass
108
+ ListTopicsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.ListTopicsResponse").msgclass
109
+ ListTopicSubscriptionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.ListTopicSubscriptionsRequest").msgclass
110
+ ListTopicSubscriptionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.ListTopicSubscriptionsResponse").msgclass
111
+ DeleteTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.DeleteTopicRequest").msgclass
112
+ Subscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.Subscription").msgclass
113
+ PushConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.PushConfig").msgclass
114
+ ReceivedMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.ReceivedMessage").msgclass
115
+ GetSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.GetSubscriptionRequest").msgclass
116
+ ListSubscriptionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.ListSubscriptionsRequest").msgclass
117
+ ListSubscriptionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.ListSubscriptionsResponse").msgclass
118
+ DeleteSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.DeleteSubscriptionRequest").msgclass
119
+ ModifyPushConfigRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.ModifyPushConfigRequest").msgclass
120
+ PullRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.PullRequest").msgclass
121
+ PullResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.PullResponse").msgclass
122
+ ModifyAckDeadlineRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.ModifyAckDeadlineRequest").msgclass
123
+ AcknowledgeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1beta2.AcknowledgeRequest").msgclass
124
+ end
125
+ end
126
+ end