gcloud 0.6.3 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/AUTHENTICATION.md +13 -9
- data/CHANGELOG.md +8 -3
- data/OVERVIEW.md +46 -8
- data/lib/gcloud.rb +123 -117
- data/lib/gcloud/backoff.rb +43 -15
- data/lib/gcloud/bigquery.rb +211 -195
- data/lib/gcloud/bigquery/connection.rb +9 -9
- data/lib/gcloud/bigquery/copy_job.rb +15 -16
- data/lib/gcloud/bigquery/credentials.rb +3 -3
- data/lib/gcloud/bigquery/data.rb +12 -11
- data/lib/gcloud/bigquery/dataset.rb +162 -216
- data/lib/gcloud/bigquery/dataset/access.rb +59 -43
- data/lib/gcloud/bigquery/dataset/list.rb +3 -3
- data/lib/gcloud/bigquery/errors.rb +9 -5
- data/lib/gcloud/bigquery/extract_job.rb +18 -18
- data/lib/gcloud/bigquery/insert_response.rb +7 -4
- data/lib/gcloud/bigquery/job.rb +48 -44
- data/lib/gcloud/bigquery/job/list.rb +3 -3
- data/lib/gcloud/bigquery/load_job.rb +24 -25
- data/lib/gcloud/bigquery/project.rb +145 -204
- data/lib/gcloud/bigquery/query_data.rb +10 -9
- data/lib/gcloud/bigquery/query_job.rb +23 -32
- data/lib/gcloud/bigquery/table.rb +238 -280
- data/lib/gcloud/bigquery/table/list.rb +3 -3
- data/lib/gcloud/bigquery/table/schema.rb +79 -87
- data/lib/gcloud/bigquery/view.rb +69 -82
- data/lib/gcloud/credentials.rb +3 -9
- data/lib/gcloud/datastore.rb +194 -170
- data/lib/gcloud/datastore/connection.rb +12 -8
- data/lib/gcloud/datastore/credentials.rb +6 -4
- data/lib/gcloud/datastore/dataset.rb +74 -141
- data/lib/gcloud/datastore/dataset/lookup_results.rb +6 -4
- data/lib/gcloud/datastore/dataset/query_results.rb +6 -4
- data/lib/gcloud/datastore/entity.rb +81 -76
- data/lib/gcloud/datastore/errors.rb +10 -8
- data/lib/gcloud/datastore/key.rb +41 -77
- data/lib/gcloud/datastore/properties.rb +3 -3
- data/lib/gcloud/datastore/proto.rb +7 -4
- data/lib/gcloud/datastore/query.rb +26 -3
- data/lib/gcloud/datastore/transaction.rb +12 -8
- data/lib/gcloud/dns.rb +180 -152
- data/lib/gcloud/dns/change.rb +16 -16
- data/lib/gcloud/dns/change/list.rb +3 -3
- data/lib/gcloud/dns/connection.rb +9 -10
- data/lib/gcloud/dns/credentials.rb +3 -3
- data/lib/gcloud/dns/errors.rb +9 -5
- data/lib/gcloud/dns/importer.rb +17 -23
- data/lib/gcloud/dns/project.rb +42 -64
- data/lib/gcloud/dns/record.rb +58 -46
- data/lib/gcloud/dns/record/list.rb +6 -7
- data/lib/gcloud/dns/zone.rb +198 -289
- data/lib/gcloud/dns/zone/list.rb +3 -3
- data/lib/gcloud/dns/zone/transaction.rb +56 -72
- data/lib/gcloud/errors.rb +174 -3
- data/lib/gcloud/gce.rb +3 -4
- data/lib/gcloud/grpc_utils.rb +76 -0
- data/lib/gcloud/logging.rb +308 -0
- data/lib/gcloud/logging/credentials.rb +29 -0
- data/lib/gcloud/logging/entry.rb +303 -0
- data/lib/gcloud/logging/entry/http_request.rb +141 -0
- data/lib/gcloud/logging/entry/list.rb +111 -0
- data/lib/gcloud/logging/entry/operation.rb +90 -0
- data/lib/gcloud/logging/logger.rb +307 -0
- data/lib/gcloud/logging/metric.rb +175 -0
- data/lib/gcloud/logging/metric/list.rb +98 -0
- data/lib/gcloud/logging/project.rb +650 -0
- data/lib/gcloud/logging/resource.rb +95 -0
- data/lib/gcloud/logging/resource_descriptor.rb +140 -0
- data/lib/gcloud/logging/resource_descriptor/list.rb +78 -0
- data/lib/gcloud/logging/service.rb +258 -0
- data/lib/gcloud/logging/sink.rb +233 -0
- data/lib/gcloud/logging/sink/list.rb +97 -0
- data/lib/gcloud/pubsub.rb +241 -199
- data/lib/gcloud/pubsub/credentials.rb +3 -3
- data/lib/gcloud/pubsub/message.rb +26 -20
- data/lib/gcloud/pubsub/project.rb +166 -233
- data/lib/gcloud/pubsub/received_message.rb +28 -38
- data/lib/gcloud/pubsub/service.rb +323 -0
- data/lib/gcloud/pubsub/subscription.rb +172 -242
- data/lib/gcloud/pubsub/subscription/list.rb +11 -9
- data/lib/gcloud/pubsub/topic.rb +152 -271
- data/lib/gcloud/pubsub/topic/batch.rb +66 -0
- data/lib/gcloud/pubsub/topic/list.rb +9 -7
- data/lib/gcloud/resource_manager.rb +158 -138
- data/lib/gcloud/resource_manager/connection.rb +6 -5
- data/lib/gcloud/resource_manager/credentials.rb +3 -3
- data/lib/gcloud/resource_manager/errors.rb +9 -5
- data/lib/gcloud/resource_manager/manager.rb +54 -86
- data/lib/gcloud/resource_manager/project.rb +69 -88
- data/lib/gcloud/resource_manager/project/list.rb +4 -5
- data/lib/gcloud/resource_manager/project/updater.rb +12 -14
- data/lib/gcloud/search.rb +158 -135
- data/lib/gcloud/search/api_client.rb +7 -7
- data/lib/gcloud/search/connection.rb +8 -8
- data/lib/gcloud/search/credentials.rb +3 -3
- data/lib/gcloud/search/document.rb +64 -87
- data/lib/gcloud/search/document/list.rb +5 -5
- data/lib/gcloud/search/errors.rb +9 -5
- data/lib/gcloud/search/field_value.rb +32 -38
- data/lib/gcloud/search/field_values.rb +50 -80
- data/lib/gcloud/search/fields.rb +44 -65
- data/lib/gcloud/search/index.rb +163 -204
- data/lib/gcloud/search/index/list.rb +5 -5
- data/lib/gcloud/search/project.rb +31 -47
- data/lib/gcloud/search/result.rb +27 -31
- data/lib/gcloud/search/result/list.rb +6 -6
- data/lib/gcloud/storage.rb +224 -190
- data/lib/gcloud/storage/bucket.rb +202 -227
- data/lib/gcloud/storage/bucket/acl.rb +83 -170
- data/lib/gcloud/storage/bucket/cors.rb +31 -34
- data/lib/gcloud/storage/bucket/list.rb +3 -3
- data/lib/gcloud/storage/connection.rb +11 -7
- data/lib/gcloud/storage/credentials.rb +3 -3
- data/lib/gcloud/storage/errors.rb +11 -8
- data/lib/gcloud/storage/file.rb +129 -171
- data/lib/gcloud/storage/file/acl.rb +51 -99
- data/lib/gcloud/storage/file/list.rb +3 -3
- data/lib/gcloud/storage/file/verifier.rb +3 -2
- data/lib/gcloud/storage/project.rb +111 -132
- data/lib/gcloud/upload.rb +4 -7
- data/lib/gcloud/version.rb +2 -4
- data/lib/google/api/annotations.rb +14 -0
- data/lib/google/api/http.rb +30 -0
- data/lib/google/api/label.rb +24 -0
- data/lib/google/api/monitored_resource.rb +25 -0
- data/lib/google/datastore/v1beta3/datastore.rb +115 -0
- data/lib/google/datastore/v1beta3/datastore_services.rb +33 -0
- data/lib/google/datastore/v1beta3/entity.rb +63 -0
- data/lib/google/datastore/v1beta3/query.rb +128 -0
- data/lib/google/devtools/cloudtrace/v1/trace.rb +78 -0
- data/lib/google/devtools/cloudtrace/v1/trace_services.rb +32 -0
- data/lib/google/example/library/v1/library.rb +91 -0
- data/lib/google/example/library/v1/library_services.rb +40 -0
- data/lib/google/iam/v1/iam_policy.rb +33 -0
- data/lib/google/iam/v1/iam_policy_services.rb +30 -0
- data/lib/google/iam/v1/policy.rb +25 -0
- data/lib/google/logging/type/http_request.rb +28 -0
- data/lib/google/logging/type/log_severity.rb +27 -0
- data/lib/google/logging/v2/log_entry.rb +44 -0
- data/lib/google/logging/v2/logging.rb +56 -0
- data/lib/google/logging/v2/logging_config.rb +59 -0
- data/lib/google/logging/v2/logging_config_services.rb +32 -0
- data/lib/google/logging/v2/logging_metrics.rb +51 -0
- data/lib/google/logging/v2/logging_metrics_services.rb +32 -0
- data/lib/google/logging/v2/logging_services.rb +31 -0
- data/lib/google/longrunning/operations.rb +50 -0
- data/lib/google/longrunning/operations_services.rb +29 -0
- data/lib/google/protobuf/any.rb +17 -0
- data/lib/google/protobuf/api.rb +31 -0
- data/lib/google/protobuf/descriptor.rb +0 -0
- data/lib/google/protobuf/duration.rb +17 -0
- data/lib/google/protobuf/empty.rb +15 -0
- data/lib/google/protobuf/field_mask.rb +16 -0
- data/lib/google/protobuf/source_context.rb +16 -0
- data/lib/google/protobuf/struct.rb +35 -0
- data/lib/google/protobuf/timestamp.rb +17 -0
- data/lib/google/protobuf/type.rb +79 -0
- data/lib/google/protobuf/wrappers.rb +48 -0
- data/lib/google/pubsub/v1/pubsub.rb +129 -0
- data/lib/google/pubsub/v1/pubsub_services.rb +56 -0
- data/lib/google/pubsub/v1beta2/pubsub.rb +126 -0
- data/lib/google/pubsub/v1beta2/pubsub_services.rb +56 -0
- data/lib/google/rpc/code.rb +32 -0
- data/lib/google/rpc/error_details.rb +61 -0
- data/lib/google/rpc/status.rb +19 -0
- data/lib/google/type/color.rb +20 -0
- data/lib/google/type/date.rb +18 -0
- data/lib/google/type/dayofweek.rb +23 -0
- data/lib/google/type/latlng.rb +17 -0
- data/lib/google/type/money.rb +18 -0
- data/lib/google/type/timeofday.rb +19 -0
- metadata +101 -4
- data/lib/gcloud/pubsub/connection.rb +0 -295
- data/lib/gcloud/pubsub/errors.rb +0 -93
@@ -0,0 +1,59 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/logging/v2/logging_config.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.logging.v2.LogSink" do
|
11
|
+
optional :name, :string, 1
|
12
|
+
optional :destination, :string, 3
|
13
|
+
optional :filter, :string, 5
|
14
|
+
optional :output_version_format, :enum, 6, "google.logging.v2.LogSink.VersionFormat"
|
15
|
+
end
|
16
|
+
add_enum "google.logging.v2.LogSink.VersionFormat" do
|
17
|
+
value :VERSION_FORMAT_UNSPECIFIED, 0
|
18
|
+
value :V2, 1
|
19
|
+
value :V1, 2
|
20
|
+
end
|
21
|
+
add_message "google.logging.v2.ListSinksRequest" do
|
22
|
+
optional :project_name, :string, 1
|
23
|
+
optional :page_token, :string, 2
|
24
|
+
optional :page_size, :int32, 3
|
25
|
+
end
|
26
|
+
add_message "google.logging.v2.ListSinksResponse" do
|
27
|
+
repeated :sinks, :message, 1, "google.logging.v2.LogSink"
|
28
|
+
optional :next_page_token, :string, 2
|
29
|
+
end
|
30
|
+
add_message "google.logging.v2.GetSinkRequest" do
|
31
|
+
optional :sink_name, :string, 1
|
32
|
+
end
|
33
|
+
add_message "google.logging.v2.CreateSinkRequest" do
|
34
|
+
optional :project_name, :string, 1
|
35
|
+
optional :sink, :message, 2, "google.logging.v2.LogSink"
|
36
|
+
end
|
37
|
+
add_message "google.logging.v2.UpdateSinkRequest" do
|
38
|
+
optional :sink_name, :string, 1
|
39
|
+
optional :sink, :message, 2, "google.logging.v2.LogSink"
|
40
|
+
end
|
41
|
+
add_message "google.logging.v2.DeleteSinkRequest" do
|
42
|
+
optional :sink_name, :string, 1
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
module Google
|
47
|
+
module Logging
|
48
|
+
module V2
|
49
|
+
LogSink = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogSink").msgclass
|
50
|
+
LogSink::VersionFormat = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogSink.VersionFormat").enummodule
|
51
|
+
ListSinksRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListSinksRequest").msgclass
|
52
|
+
ListSinksResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListSinksResponse").msgclass
|
53
|
+
GetSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetSinkRequest").msgclass
|
54
|
+
CreateSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CreateSinkRequest").msgclass
|
55
|
+
UpdateSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateSinkRequest").msgclass
|
56
|
+
DeleteSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteSinkRequest").msgclass
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,32 @@
|
|
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
|
@@ -0,0 +1,51 @@
|
|
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
|
@@ -0,0 +1,32 @@
|
|
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
|
@@ -0,0 +1,31 @@
|
|
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
|
@@ -0,0 +1,50 @@
|
|
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
|
@@ -0,0 +1,29 @@
|
|
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
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/protobuf/any.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "google.protobuf.Any" do
|
8
|
+
optional :type_url, :string, 1
|
9
|
+
optional :value, :bytes, 2
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module Google
|
14
|
+
module Protobuf
|
15
|
+
Any = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Any").msgclass
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/protobuf/api.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/protobuf/source_context'
|
7
|
+
require 'google/protobuf/type'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_message "google.protobuf.Api" do
|
10
|
+
optional :name, :string, 1
|
11
|
+
repeated :methods, :message, 2, "google.protobuf.Method"
|
12
|
+
repeated :options, :message, 3, "google.protobuf.Option"
|
13
|
+
optional :version, :string, 4
|
14
|
+
optional :source_context, :message, 5, "google.protobuf.SourceContext"
|
15
|
+
end
|
16
|
+
add_message "google.protobuf.Method" do
|
17
|
+
optional :name, :string, 1
|
18
|
+
optional :request_type_url, :string, 2
|
19
|
+
optional :request_streaming, :bool, 3
|
20
|
+
optional :response_type_url, :string, 4
|
21
|
+
optional :response_streaming, :bool, 5
|
22
|
+
repeated :options, :message, 6, "google.protobuf.Option"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
module Google
|
27
|
+
module Protobuf
|
28
|
+
Api = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Api").msgclass
|
29
|
+
Method = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Method").msgclass
|
30
|
+
end
|
31
|
+
end
|
File without changes
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/protobuf/duration.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "google.protobuf.Duration" do
|
8
|
+
optional :seconds, :int64, 1
|
9
|
+
optional :nanos, :int32, 2
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module Google
|
14
|
+
module Protobuf
|
15
|
+
Duration = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Duration").msgclass
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/protobuf/empty.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "google.protobuf.Empty" do
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
module Google
|
12
|
+
module Protobuf
|
13
|
+
Empty = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Empty").msgclass
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/protobuf/field_mask.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "google.protobuf.FieldMask" do
|
8
|
+
repeated :paths, :string, 1
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
module Google
|
13
|
+
module Protobuf
|
14
|
+
FieldMask = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.FieldMask").msgclass
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/protobuf/source_context.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "google.protobuf.SourceContext" do
|
8
|
+
optional :file_name, :string, 1
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
module Google
|
13
|
+
module Protobuf
|
14
|
+
SourceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.SourceContext").msgclass
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/protobuf/struct.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "google.protobuf.Struct" do
|
8
|
+
map :fields, :string, :message, 1, "google.protobuf.Value"
|
9
|
+
end
|
10
|
+
add_message "google.protobuf.Value" do
|
11
|
+
oneof :kind do
|
12
|
+
optional :null_value, :enum, 1, "google.protobuf.NullValue"
|
13
|
+
optional :number_value, :double, 2
|
14
|
+
optional :string_value, :string, 3
|
15
|
+
optional :bool_value, :bool, 4
|
16
|
+
optional :struct_value, :message, 5, "google.protobuf.Struct"
|
17
|
+
optional :list_value, :message, 6, "google.protobuf.ListValue"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
add_message "google.protobuf.ListValue" do
|
21
|
+
repeated :values, :message, 1, "google.protobuf.Value"
|
22
|
+
end
|
23
|
+
add_enum "google.protobuf.NullValue" do
|
24
|
+
value :NULL_VALUE, 0
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
module Google
|
29
|
+
module Protobuf
|
30
|
+
Struct = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Struct").msgclass
|
31
|
+
Value = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Value").msgclass
|
32
|
+
ListValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.ListValue").msgclass
|
33
|
+
NullValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.NullValue").enummodule
|
34
|
+
end
|
35
|
+
end
|