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,56 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/pubsub/v1beta2/pubsub.proto for package 'google.pubsub.v1beta2'
3
-
4
- require 'grpc'
5
- require 'google/pubsub/v1beta2/pubsub'
6
-
7
- module Google
8
- module Pubsub
9
- module V1beta2
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.v1beta2.Subscriber'
20
-
21
- rpc :CreateSubscription, Subscription, Subscription
22
- rpc :GetSubscription, GetSubscriptionRequest, Subscription
23
- rpc :ListSubscriptions, ListSubscriptionsRequest, ListSubscriptionsResponse
24
- rpc :DeleteSubscription, DeleteSubscriptionRequest, Empty
25
- rpc :ModifyAckDeadline, ModifyAckDeadlineRequest, Empty
26
- rpc :Acknowledge, AcknowledgeRequest, Empty
27
- rpc :Pull, PullRequest, PullResponse
28
- rpc :ModifyPushConfig, ModifyPushConfigRequest, 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.v1beta2.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, Empty
50
- end
51
-
52
- Stub = Service.rpc_stub_class
53
- end
54
- end
55
- end
56
- end
@@ -1,32 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/rpc/code.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_enum "google.rpc.Code" do
8
- value :OK, 0
9
- value :CANCELLED, 1
10
- value :UNKNOWN, 2
11
- value :INVALID_ARGUMENT, 3
12
- value :DEADLINE_EXCEEDED, 4
13
- value :NOT_FOUND, 5
14
- value :ALREADY_EXISTS, 6
15
- value :PERMISSION_DENIED, 7
16
- value :UNAUTHENTICATED, 16
17
- value :RESOURCE_EXHAUSTED, 8
18
- value :FAILED_PRECONDITION, 9
19
- value :ABORTED, 10
20
- value :OUT_OF_RANGE, 11
21
- value :UNIMPLEMENTED, 12
22
- value :INTERNAL, 13
23
- value :UNAVAILABLE, 14
24
- value :DATA_LOSS, 15
25
- end
26
- end
27
-
28
- module Google
29
- module Rpc
30
- Code = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.Code").enummodule
31
- end
32
- end
@@ -1,61 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/rpc/error_details.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/protobuf/duration'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "google.rpc.RetryInfo" do
9
- optional :retry_delay, :message, 1, "google.protobuf.Duration"
10
- end
11
- add_message "google.rpc.DebugInfo" do
12
- repeated :stack_entries, :string, 1
13
- optional :detail, :string, 2
14
- end
15
- add_message "google.rpc.QuotaFailure" do
16
- repeated :violations, :message, 1, "google.rpc.QuotaFailure.Violation"
17
- end
18
- add_message "google.rpc.QuotaFailure.Violation" do
19
- optional :subject, :string, 1
20
- optional :description, :string, 2
21
- end
22
- add_message "google.rpc.BadRequest" do
23
- repeated :field_violations, :message, 1, "google.rpc.BadRequest.FieldViolation"
24
- end
25
- add_message "google.rpc.BadRequest.FieldViolation" do
26
- optional :field, :string, 1
27
- optional :description, :string, 2
28
- end
29
- add_message "google.rpc.RequestInfo" do
30
- optional :request_id, :string, 1
31
- optional :serving_data, :string, 2
32
- end
33
- add_message "google.rpc.ResourceInfo" do
34
- optional :resource_type, :string, 1
35
- optional :resource_name, :string, 2
36
- optional :owner, :string, 3
37
- optional :description, :string, 4
38
- end
39
- add_message "google.rpc.Help" do
40
- repeated :links, :message, 1, "google.rpc.Help.Link"
41
- end
42
- add_message "google.rpc.Help.Link" do
43
- optional :description, :string, 1
44
- optional :url, :string, 2
45
- end
46
- end
47
-
48
- module Google
49
- module Rpc
50
- RetryInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.RetryInfo").msgclass
51
- DebugInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.DebugInfo").msgclass
52
- QuotaFailure = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.QuotaFailure").msgclass
53
- QuotaFailure::Violation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.QuotaFailure.Violation").msgclass
54
- BadRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.BadRequest").msgclass
55
- BadRequest::FieldViolation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.BadRequest.FieldViolation").msgclass
56
- RequestInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.RequestInfo").msgclass
57
- ResourceInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.ResourceInfo").msgclass
58
- Help = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.Help").msgclass
59
- Help::Link = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.Help.Link").msgclass
60
- end
61
- end
@@ -1,19 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/rpc/status.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/protobuf/any'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "google.rpc.Status" do
9
- optional :code, :int32, 1
10
- optional :message, :string, 2
11
- repeated :details, :message, 3, "google.protobuf.Any"
12
- end
13
- end
14
-
15
- module Google
16
- module Rpc
17
- Status = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.Status").msgclass
18
- end
19
- end
@@ -1,20 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/type/color.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/protobuf/wrappers'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "google.type.Color" do
9
- optional :red, :float, 1
10
- optional :green, :float, 2
11
- optional :blue, :float, 3
12
- optional :alpha, :message, 4, "google.protobuf.FloatValue"
13
- end
14
- end
15
-
16
- module Google
17
- module Type
18
- Color = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Color").msgclass
19
- end
20
- end
@@ -1,18 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/type/date.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "google.type.Date" do
8
- optional :year, :int32, 1
9
- optional :month, :int32, 2
10
- optional :day, :int32, 3
11
- end
12
- end
13
-
14
- module Google
15
- module Type
16
- Date = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Date").msgclass
17
- end
18
- end
@@ -1,23 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/type/dayofweek.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_enum "google.type.DayOfWeek" do
8
- value :DAY_OF_WEEK_UNSPECIFIED, 0
9
- value :MONDAY, 1
10
- value :TUESDAY, 2
11
- value :WEDNESDAY, 3
12
- value :THURSDAY, 4
13
- value :FRIDAY, 5
14
- value :SATURDAY, 6
15
- value :SUNDAY, 7
16
- end
17
- end
18
-
19
- module Google
20
- module Type
21
- DayOfWeek = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.DayOfWeek").enummodule
22
- end
23
- end
@@ -1,17 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/type/latlng.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "google.type.LatLng" do
8
- optional :latitude, :double, 1
9
- optional :longitude, :double, 2
10
- end
11
- end
12
-
13
- module Google
14
- module Type
15
- LatLng = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.LatLng").msgclass
16
- end
17
- end
@@ -1,18 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/type/money.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "google.type.Money" do
8
- optional :currency_code, :string, 1
9
- optional :units, :int64, 2
10
- optional :nanos, :int32, 3
11
- end
12
- end
13
-
14
- module Google
15
- module Type
16
- Money = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Money").msgclass
17
- end
18
- end
@@ -1,19 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/type/timeofday.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "google.type.TimeOfDay" do
8
- optional :hours, :int32, 1
9
- optional :minutes, :int32, 2
10
- optional :seconds, :int32, 3
11
- optional :nanos, :int32, 4
12
- end
13
- end
14
-
15
- module Google
16
- module Type
17
- TimeOfDay = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.TimeOfDay").msgclass
18
- end
19
- end