gcloud 0.12.2 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. checksums.yaml +5 -13
  2. data/lib/gcloud.rb +27 -456
  3. data/lib/gcloud/bigquery.rb +2 -382
  4. data/lib/gcloud/datastore.rb +2 -576
  5. data/lib/gcloud/dns.rb +2 -321
  6. data/lib/gcloud/logging.rb +1 -322
  7. data/lib/gcloud/pubsub.rb +2 -476
  8. data/lib/gcloud/resource_manager.rb +2 -273
  9. data/lib/gcloud/storage.rb +2 -440
  10. data/lib/gcloud/translate.rb +1 -250
  11. data/lib/gcloud/version.rb +2 -2
  12. data/lib/gcloud/vision.rb +1 -501
  13. metadata +36 -332
  14. data/AUTHENTICATION.md +0 -75
  15. data/CHANGELOG.md +0 -382
  16. data/OVERVIEW.md +0 -259
  17. data/lib/gcloud/backoff.rb +0 -150
  18. data/lib/gcloud/bigquery/copy_job.rb +0 -97
  19. data/lib/gcloud/bigquery/credentials.rb +0 -29
  20. data/lib/gcloud/bigquery/data.rb +0 -239
  21. data/lib/gcloud/bigquery/dataset.rb +0 -753
  22. data/lib/gcloud/bigquery/dataset/access.rb +0 -507
  23. data/lib/gcloud/bigquery/dataset/list.rb +0 -169
  24. data/lib/gcloud/bigquery/extract_job.rb +0 -117
  25. data/lib/gcloud/bigquery/insert_response.rb +0 -81
  26. data/lib/gcloud/bigquery/job.rb +0 -299
  27. data/lib/gcloud/bigquery/job/list.rb +0 -172
  28. data/lib/gcloud/bigquery/load_job.rb +0 -202
  29. data/lib/gcloud/bigquery/project.rb +0 -475
  30. data/lib/gcloud/bigquery/query_data.rb +0 -234
  31. data/lib/gcloud/bigquery/query_job.rb +0 -137
  32. data/lib/gcloud/bigquery/schema.rb +0 -359
  33. data/lib/gcloud/bigquery/service.rb +0 -506
  34. data/lib/gcloud/bigquery/table.rb +0 -1141
  35. data/lib/gcloud/bigquery/table/list.rb +0 -180
  36. data/lib/gcloud/bigquery/view.rb +0 -475
  37. data/lib/gcloud/credentials.rb +0 -129
  38. data/lib/gcloud/datastore/commit.rb +0 -148
  39. data/lib/gcloud/datastore/credentials.rb +0 -35
  40. data/lib/gcloud/datastore/cursor.rb +0 -76
  41. data/lib/gcloud/datastore/dataset.rb +0 -660
  42. data/lib/gcloud/datastore/dataset/lookup_results.rb +0 -219
  43. data/lib/gcloud/datastore/dataset/query_results.rb +0 -386
  44. data/lib/gcloud/datastore/entity.rb +0 -449
  45. data/lib/gcloud/datastore/errors.rb +0 -41
  46. data/lib/gcloud/datastore/gql_query.rb +0 -211
  47. data/lib/gcloud/datastore/grpc_utils.rb +0 -132
  48. data/lib/gcloud/datastore/key.rb +0 -281
  49. data/lib/gcloud/datastore/properties.rb +0 -128
  50. data/lib/gcloud/datastore/query.rb +0 -348
  51. data/lib/gcloud/datastore/service.rb +0 -167
  52. data/lib/gcloud/datastore/transaction.rb +0 -362
  53. data/lib/gcloud/dns/change.rb +0 -158
  54. data/lib/gcloud/dns/change/list.rb +0 -173
  55. data/lib/gcloud/dns/credentials.rb +0 -29
  56. data/lib/gcloud/dns/importer.rb +0 -183
  57. data/lib/gcloud/dns/project.rb +0 -247
  58. data/lib/gcloud/dns/record.rb +0 -170
  59. data/lib/gcloud/dns/record/list.rb +0 -174
  60. data/lib/gcloud/dns/service.rb +0 -167
  61. data/lib/gcloud/dns/zone.rb +0 -759
  62. data/lib/gcloud/dns/zone/list.rb +0 -168
  63. data/lib/gcloud/dns/zone/transaction.rb +0 -176
  64. data/lib/gcloud/errors.rb +0 -206
  65. data/lib/gcloud/gce.rb +0 -56
  66. data/lib/gcloud/grpc_utils.rb +0 -87
  67. data/lib/gcloud/logging/credentials.rb +0 -29
  68. data/lib/gcloud/logging/entry.rb +0 -465
  69. data/lib/gcloud/logging/entry/http_request.rb +0 -141
  70. data/lib/gcloud/logging/entry/list.rb +0 -177
  71. data/lib/gcloud/logging/entry/operation.rb +0 -90
  72. data/lib/gcloud/logging/logger.rb +0 -307
  73. data/lib/gcloud/logging/metric.rb +0 -169
  74. data/lib/gcloud/logging/metric/list.rb +0 -172
  75. data/lib/gcloud/logging/project.rb +0 -642
  76. data/lib/gcloud/logging/resource.rb +0 -84
  77. data/lib/gcloud/logging/resource_descriptor.rb +0 -137
  78. data/lib/gcloud/logging/resource_descriptor/list.rb +0 -174
  79. data/lib/gcloud/logging/service.rb +0 -267
  80. data/lib/gcloud/logging/sink.rb +0 -227
  81. data/lib/gcloud/logging/sink/list.rb +0 -171
  82. data/lib/gcloud/pubsub/credentials.rb +0 -29
  83. data/lib/gcloud/pubsub/message.rb +0 -94
  84. data/lib/gcloud/pubsub/policy.rb +0 -204
  85. data/lib/gcloud/pubsub/project.rb +0 -482
  86. data/lib/gcloud/pubsub/received_message.rb +0 -160
  87. data/lib/gcloud/pubsub/service.rb +0 -334
  88. data/lib/gcloud/pubsub/subscription.rb +0 -565
  89. data/lib/gcloud/pubsub/subscription/list.rb +0 -208
  90. data/lib/gcloud/pubsub/topic.rb +0 -511
  91. data/lib/gcloud/pubsub/topic/list.rb +0 -174
  92. data/lib/gcloud/pubsub/topic/publisher.rb +0 -85
  93. data/lib/gcloud/resource_manager/credentials.rb +0 -30
  94. data/lib/gcloud/resource_manager/manager.rb +0 -266
  95. data/lib/gcloud/resource_manager/policy.rb +0 -211
  96. data/lib/gcloud/resource_manager/project.rb +0 -484
  97. data/lib/gcloud/resource_manager/project/list.rb +0 -167
  98. data/lib/gcloud/resource_manager/project/updater.rb +0 -130
  99. data/lib/gcloud/resource_manager/service.rb +0 -127
  100. data/lib/gcloud/storage/bucket.rb +0 -775
  101. data/lib/gcloud/storage/bucket/acl.rb +0 -810
  102. data/lib/gcloud/storage/bucket/cors.rb +0 -153
  103. data/lib/gcloud/storage/bucket/list.rb +0 -172
  104. data/lib/gcloud/storage/credentials.rb +0 -29
  105. data/lib/gcloud/storage/errors.rb +0 -65
  106. data/lib/gcloud/storage/file.rb +0 -842
  107. data/lib/gcloud/storage/file/acl.rb +0 -425
  108. data/lib/gcloud/storage/file/list.rb +0 -191
  109. data/lib/gcloud/storage/file/verifier.rb +0 -67
  110. data/lib/gcloud/storage/project.rb +0 -316
  111. data/lib/gcloud/storage/service.rb +0 -347
  112. data/lib/gcloud/translate/api.rb +0 -241
  113. data/lib/gcloud/translate/detection.rb +0 -137
  114. data/lib/gcloud/translate/language.rb +0 -69
  115. data/lib/gcloud/translate/service.rb +0 -80
  116. data/lib/gcloud/translate/translation.rb +0 -112
  117. data/lib/gcloud/vision/annotate.rb +0 -224
  118. data/lib/gcloud/vision/annotation.rb +0 -455
  119. data/lib/gcloud/vision/annotation/entity.rb +0 -234
  120. data/lib/gcloud/vision/annotation/face.rb +0 -1750
  121. data/lib/gcloud/vision/annotation/properties.rb +0 -245
  122. data/lib/gcloud/vision/annotation/safe_search.rb +0 -161
  123. data/lib/gcloud/vision/annotation/text.rb +0 -236
  124. data/lib/gcloud/vision/annotation/vertex.rb +0 -108
  125. data/lib/gcloud/vision/credentials.rb +0 -29
  126. data/lib/gcloud/vision/image.rb +0 -590
  127. data/lib/gcloud/vision/location.rb +0 -115
  128. data/lib/gcloud/vision/project.rb +0 -278
  129. data/lib/gcloud/vision/service.rb +0 -66
  130. data/lib/google/api/annotations.rb +0 -14
  131. data/lib/google/api/http.rb +0 -30
  132. data/lib/google/api/label.rb +0 -24
  133. data/lib/google/api/monitored_resource.rb +0 -25
  134. data/lib/google/datastore/v1beta3/datastore.rb +0 -115
  135. data/lib/google/datastore/v1beta3/datastore_services.rb +0 -33
  136. data/lib/google/datastore/v1beta3/entity.rb +0 -63
  137. data/lib/google/datastore/v1beta3/query.rb +0 -128
  138. data/lib/google/devtools/cloudtrace/v1/trace.rb +0 -78
  139. data/lib/google/devtools/cloudtrace/v1/trace_services.rb +0 -32
  140. data/lib/google/example/library/v1/library.rb +0 -91
  141. data/lib/google/example/library/v1/library_services.rb +0 -40
  142. data/lib/google/iam/v1/iam_policy.rb +0 -33
  143. data/lib/google/iam/v1/iam_policy_services.rb +0 -30
  144. data/lib/google/iam/v1/policy.rb +0 -25
  145. data/lib/google/logging/type/http_request.rb +0 -28
  146. data/lib/google/logging/type/log_severity.rb +0 -27
  147. data/lib/google/logging/v2/log_entry.rb +0 -44
  148. data/lib/google/logging/v2/logging.rb +0 -56
  149. data/lib/google/logging/v2/logging_config.rb +0 -59
  150. data/lib/google/logging/v2/logging_config_services.rb +0 -32
  151. data/lib/google/logging/v2/logging_metrics.rb +0 -51
  152. data/lib/google/logging/v2/logging_metrics_services.rb +0 -32
  153. data/lib/google/logging/v2/logging_services.rb +0 -31
  154. data/lib/google/longrunning/operations.rb +0 -50
  155. data/lib/google/longrunning/operations_services.rb +0 -29
  156. data/lib/google/protobuf/descriptor.rb +0 -0
  157. data/lib/google/pubsub/v1/pubsub.rb +0 -129
  158. data/lib/google/pubsub/v1/pubsub_services.rb +0 -56
  159. data/lib/google/pubsub/v1beta2/pubsub.rb +0 -126
  160. data/lib/google/pubsub/v1beta2/pubsub_services.rb +0 -56
  161. data/lib/google/rpc/code.rb +0 -32
  162. data/lib/google/rpc/error_details.rb +0 -61
  163. data/lib/google/rpc/status.rb +0 -19
  164. data/lib/google/type/color.rb +0 -20
  165. data/lib/google/type/date.rb +0 -18
  166. data/lib/google/type/dayofweek.rb +0 -23
  167. data/lib/google/type/latlng.rb +0 -17
  168. data/lib/google/type/money.rb +0 -18
  169. data/lib/google/type/timeofday.rb +0 -19
@@ -1,32 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/logging/v2/logging_config.proto for package 'google.logging.v2'
3
-
4
- require 'grpc'
5
- require 'google/logging/v2/logging_config'
6
-
7
- module Google
8
- module Logging
9
- module V2
10
- module ConfigServiceV2
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.logging.v2.ConfigServiceV2'
20
-
21
- rpc :ListSinks, ListSinksRequest, ListSinksResponse
22
- rpc :GetSink, GetSinkRequest, LogSink
23
- rpc :CreateSink, CreateSinkRequest, LogSink
24
- rpc :UpdateSink, UpdateSinkRequest, LogSink
25
- rpc :DeleteSink, DeleteSinkRequest, Google::Protobuf::Empty
26
- end
27
-
28
- Stub = Service.rpc_stub_class
29
- end
30
- end
31
- end
32
- end
@@ -1,51 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/logging/v2/logging_metrics.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/api/annotations'
7
- require 'google/protobuf/empty'
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_message "google.logging.v2.LogMetric" do
10
- optional :name, :string, 1
11
- optional :description, :string, 2
12
- optional :filter, :string, 3
13
- end
14
- add_message "google.logging.v2.ListLogMetricsRequest" do
15
- optional :project_name, :string, 1
16
- optional :page_token, :string, 2
17
- optional :page_size, :int32, 3
18
- end
19
- add_message "google.logging.v2.ListLogMetricsResponse" do
20
- repeated :metrics, :message, 1, "google.logging.v2.LogMetric"
21
- optional :next_page_token, :string, 2
22
- end
23
- add_message "google.logging.v2.GetLogMetricRequest" do
24
- optional :metric_name, :string, 1
25
- end
26
- add_message "google.logging.v2.CreateLogMetricRequest" do
27
- optional :project_name, :string, 1
28
- optional :metric, :message, 2, "google.logging.v2.LogMetric"
29
- end
30
- add_message "google.logging.v2.UpdateLogMetricRequest" do
31
- optional :metric_name, :string, 1
32
- optional :metric, :message, 2, "google.logging.v2.LogMetric"
33
- end
34
- add_message "google.logging.v2.DeleteLogMetricRequest" do
35
- optional :metric_name, :string, 1
36
- end
37
- end
38
-
39
- module Google
40
- module Logging
41
- module V2
42
- LogMetric = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogMetric").msgclass
43
- ListLogMetricsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogMetricsRequest").msgclass
44
- ListLogMetricsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogMetricsResponse").msgclass
45
- GetLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetLogMetricRequest").msgclass
46
- CreateLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CreateLogMetricRequest").msgclass
47
- UpdateLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateLogMetricRequest").msgclass
48
- DeleteLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteLogMetricRequest").msgclass
49
- end
50
- end
51
- end
@@ -1,32 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/logging/v2/logging_metrics.proto for package 'google.logging.v2'
3
-
4
- require 'grpc'
5
- require 'google/logging/v2/logging_metrics'
6
-
7
- module Google
8
- module Logging
9
- module V2
10
- module MetricsServiceV2
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.logging.v2.MetricsServiceV2'
20
-
21
- rpc :ListLogMetrics, ListLogMetricsRequest, ListLogMetricsResponse
22
- rpc :GetLogMetric, GetLogMetricRequest, LogMetric
23
- rpc :CreateLogMetric, CreateLogMetricRequest, LogMetric
24
- rpc :UpdateLogMetric, UpdateLogMetricRequest, LogMetric
25
- rpc :DeleteLogMetric, DeleteLogMetricRequest, Google::Protobuf::Empty
26
- end
27
-
28
- Stub = Service.rpc_stub_class
29
- end
30
- end
31
- end
32
- end
@@ -1,31 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/logging/v2/logging.proto for package 'google.logging.v2'
3
-
4
- require 'grpc'
5
- require 'google/logging/v2/logging'
6
-
7
- module Google
8
- module Logging
9
- module V2
10
- module LoggingServiceV2
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.logging.v2.LoggingServiceV2'
20
-
21
- rpc :DeleteLog, DeleteLogRequest, Google::Protobuf::Empty
22
- rpc :WriteLogEntries, WriteLogEntriesRequest, WriteLogEntriesResponse
23
- rpc :ListLogEntries, ListLogEntriesRequest, ListLogEntriesResponse
24
- rpc :ListMonitoredResourceDescriptors, ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse
25
- end
26
-
27
- Stub = Service.rpc_stub_class
28
- end
29
- end
30
- end
31
- end
@@ -1,50 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/longrunning/operations.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/api/annotations'
7
- require 'google/protobuf/any'
8
- require 'google/protobuf/empty'
9
- require 'google/rpc/status'
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_message "google.longrunning.Operation" do
12
- optional :name, :string, 1
13
- optional :metadata, :message, 2, "google.protobuf.Any"
14
- optional :done, :bool, 3
15
- oneof :result do
16
- optional :error, :message, 4, "google.rpc.Status"
17
- optional :response, :message, 5, "google.protobuf.Any"
18
- end
19
- end
20
- add_message "google.longrunning.GetOperationRequest" do
21
- optional :name, :string, 1
22
- end
23
- add_message "google.longrunning.ListOperationsRequest" do
24
- optional :name, :string, 4
25
- optional :filter, :string, 1
26
- optional :page_size, :int32, 2
27
- optional :page_token, :string, 3
28
- end
29
- add_message "google.longrunning.ListOperationsResponse" do
30
- repeated :operations, :message, 1, "google.longrunning.Operation"
31
- optional :next_page_token, :string, 2
32
- end
33
- add_message "google.longrunning.CancelOperationRequest" do
34
- optional :name, :string, 1
35
- end
36
- add_message "google.longrunning.DeleteOperationRequest" do
37
- optional :name, :string, 1
38
- end
39
- end
40
-
41
- module Google
42
- module Longrunning
43
- Operation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.Operation").msgclass
44
- GetOperationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.GetOperationRequest").msgclass
45
- ListOperationsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.ListOperationsRequest").msgclass
46
- ListOperationsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.ListOperationsResponse").msgclass
47
- CancelOperationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.CancelOperationRequest").msgclass
48
- DeleteOperationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.DeleteOperationRequest").msgclass
49
- end
50
- end
@@ -1,29 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/longrunning/operations.proto for package 'google.longrunning'
3
-
4
- require 'grpc'
5
- require 'google/longrunning/operations'
6
-
7
- module Google
8
- module Longrunning
9
- module Operations
10
-
11
- # TODO: add proto service documentation here
12
- class Service
13
-
14
- include GRPC::GenericService
15
-
16
- self.marshal_class_method = :encode
17
- self.unmarshal_class_method = :decode
18
- self.service_name = 'google.longrunning.Operations'
19
-
20
- rpc :GetOperation, GetOperationRequest, Operation
21
- rpc :ListOperations, ListOperationsRequest, ListOperationsResponse
22
- rpc :CancelOperation, CancelOperationRequest, Empty
23
- rpc :DeleteOperation, DeleteOperationRequest, Empty
24
- end
25
-
26
- Stub = Service.rpc_stub_class
27
- end
28
- end
29
- end
File without changes
@@ -1,129 +0,0 @@
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
@@ -1,56 +0,0 @@
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
@@ -1,126 +0,0 @@
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