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,78 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/devtools/cloudtrace/v1/trace.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.devtools.cloudtrace.v1.Trace" do
|
11
|
+
optional :project_id, :string, 1
|
12
|
+
optional :trace_id, :string, 2
|
13
|
+
repeated :spans, :message, 3, "google.devtools.cloudtrace.v1.TraceSpan"
|
14
|
+
end
|
15
|
+
add_message "google.devtools.cloudtrace.v1.Traces" do
|
16
|
+
repeated :traces, :message, 1, "google.devtools.cloudtrace.v1.Trace"
|
17
|
+
end
|
18
|
+
add_message "google.devtools.cloudtrace.v1.TraceSpan" do
|
19
|
+
optional :span_id, :fixed64, 1
|
20
|
+
optional :kind, :enum, 2, "google.devtools.cloudtrace.v1.TraceSpan.SpanKind"
|
21
|
+
optional :name, :string, 3
|
22
|
+
optional :start_time, :message, 4, "google.protobuf.Timestamp"
|
23
|
+
optional :end_time, :message, 5, "google.protobuf.Timestamp"
|
24
|
+
optional :parent_span_id, :fixed64, 6
|
25
|
+
map :labels, :string, :string, 7
|
26
|
+
end
|
27
|
+
add_enum "google.devtools.cloudtrace.v1.TraceSpan.SpanKind" do
|
28
|
+
value :SPAN_KIND_UNSPECIFIED, 0
|
29
|
+
value :RPC_SERVER, 1
|
30
|
+
value :RPC_CLIENT, 2
|
31
|
+
end
|
32
|
+
add_message "google.devtools.cloudtrace.v1.ListTracesRequest" do
|
33
|
+
optional :project_id, :string, 1
|
34
|
+
optional :view, :enum, 2, "google.devtools.cloudtrace.v1.ListTracesRequest.ViewType"
|
35
|
+
optional :page_size, :int32, 3
|
36
|
+
optional :page_token, :string, 4
|
37
|
+
optional :start_time, :message, 5, "google.protobuf.Timestamp"
|
38
|
+
optional :end_time, :message, 6, "google.protobuf.Timestamp"
|
39
|
+
optional :filter, :string, 7
|
40
|
+
optional :order_by, :string, 8
|
41
|
+
end
|
42
|
+
add_enum "google.devtools.cloudtrace.v1.ListTracesRequest.ViewType" do
|
43
|
+
value :VIEW_TYPE_UNSPECIFIED, 0
|
44
|
+
value :MINIMAL, 1
|
45
|
+
value :ROOTSPAN, 2
|
46
|
+
value :COMPLETE, 3
|
47
|
+
end
|
48
|
+
add_message "google.devtools.cloudtrace.v1.ListTracesResponse" do
|
49
|
+
repeated :traces, :message, 1, "google.devtools.cloudtrace.v1.Trace"
|
50
|
+
optional :next_page_token, :string, 2
|
51
|
+
end
|
52
|
+
add_message "google.devtools.cloudtrace.v1.GetTraceRequest" do
|
53
|
+
optional :project_id, :string, 1
|
54
|
+
optional :trace_id, :string, 2
|
55
|
+
end
|
56
|
+
add_message "google.devtools.cloudtrace.v1.PatchTracesRequest" do
|
57
|
+
optional :project_id, :string, 1
|
58
|
+
optional :traces, :message, 2, "google.devtools.cloudtrace.v1.Traces"
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
module Google
|
63
|
+
module Devtools
|
64
|
+
module Cloudtrace
|
65
|
+
module V1
|
66
|
+
Trace = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.Trace").msgclass
|
67
|
+
Traces = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.Traces").msgclass
|
68
|
+
TraceSpan = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.TraceSpan").msgclass
|
69
|
+
TraceSpan::SpanKind = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.TraceSpan.SpanKind").enummodule
|
70
|
+
ListTracesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.ListTracesRequest").msgclass
|
71
|
+
ListTracesRequest::ViewType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.ListTracesRequest.ViewType").enummodule
|
72
|
+
ListTracesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.ListTracesResponse").msgclass
|
73
|
+
GetTraceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.GetTraceRequest").msgclass
|
74
|
+
PatchTracesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.PatchTracesRequest").msgclass
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/devtools/cloudtrace/v1/trace.proto for package 'google.devtools.cloudtrace.v1'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'google/devtools/cloudtrace/v1/trace'
|
6
|
+
|
7
|
+
module Google
|
8
|
+
module Devtools
|
9
|
+
module Cloudtrace
|
10
|
+
module V1
|
11
|
+
module TraceService
|
12
|
+
|
13
|
+
# TODO: add proto service documentation here
|
14
|
+
class Service
|
15
|
+
|
16
|
+
include GRPC::GenericService
|
17
|
+
|
18
|
+
self.marshal_class_method = :encode
|
19
|
+
self.unmarshal_class_method = :decode
|
20
|
+
self.service_name = 'google.devtools.cloudtrace.v1.TraceService'
|
21
|
+
|
22
|
+
rpc :ListTraces, ListTracesRequest, ListTracesResponse
|
23
|
+
rpc :GetTrace, GetTraceRequest, Trace
|
24
|
+
rpc :PatchTraces, PatchTracesRequest, Empty
|
25
|
+
end
|
26
|
+
|
27
|
+
Stub = Service.rpc_stub_class
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,91 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/example/library/v1/library.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.example.library.v1.Book" do
|
10
|
+
optional :name, :string, 1
|
11
|
+
optional :author, :string, 2
|
12
|
+
optional :title, :string, 3
|
13
|
+
optional :read, :bool, 4
|
14
|
+
end
|
15
|
+
add_message "google.example.library.v1.Shelf" do
|
16
|
+
optional :name, :string, 1
|
17
|
+
optional :theme, :string, 2
|
18
|
+
end
|
19
|
+
add_message "google.example.library.v1.CreateShelfRequest" do
|
20
|
+
optional :shelf, :message, 1, "google.example.library.v1.Shelf"
|
21
|
+
end
|
22
|
+
add_message "google.example.library.v1.GetShelfRequest" do
|
23
|
+
optional :name, :string, 1
|
24
|
+
end
|
25
|
+
add_message "google.example.library.v1.ListShelvesRequest" do
|
26
|
+
optional :page_size, :int32, 1
|
27
|
+
optional :page_token, :string, 2
|
28
|
+
end
|
29
|
+
add_message "google.example.library.v1.ListShelvesResponse" do
|
30
|
+
repeated :shelves, :message, 1, "google.example.library.v1.Shelf"
|
31
|
+
optional :next_page_token, :string, 2
|
32
|
+
end
|
33
|
+
add_message "google.example.library.v1.DeleteShelfRequest" do
|
34
|
+
optional :name, :string, 1
|
35
|
+
end
|
36
|
+
add_message "google.example.library.v1.MergeShelvesRequest" do
|
37
|
+
optional :name, :string, 1
|
38
|
+
optional :other_shelf_name, :string, 2
|
39
|
+
end
|
40
|
+
add_message "google.example.library.v1.CreateBookRequest" do
|
41
|
+
optional :name, :string, 1
|
42
|
+
optional :book, :message, 2, "google.example.library.v1.Book"
|
43
|
+
end
|
44
|
+
add_message "google.example.library.v1.GetBookRequest" do
|
45
|
+
optional :name, :string, 1
|
46
|
+
end
|
47
|
+
add_message "google.example.library.v1.ListBooksRequest" do
|
48
|
+
optional :name, :string, 1
|
49
|
+
optional :page_size, :int32, 2
|
50
|
+
optional :page_token, :string, 3
|
51
|
+
end
|
52
|
+
add_message "google.example.library.v1.ListBooksResponse" do
|
53
|
+
repeated :books, :message, 1, "google.example.library.v1.Book"
|
54
|
+
optional :next_page_token, :string, 2
|
55
|
+
end
|
56
|
+
add_message "google.example.library.v1.UpdateBookRequest" do
|
57
|
+
optional :name, :string, 1
|
58
|
+
optional :book, :message, 2, "google.example.library.v1.Book"
|
59
|
+
end
|
60
|
+
add_message "google.example.library.v1.DeleteBookRequest" do
|
61
|
+
optional :name, :string, 1
|
62
|
+
end
|
63
|
+
add_message "google.example.library.v1.MoveBookRequest" do
|
64
|
+
optional :name, :string, 1
|
65
|
+
optional :other_shelf_name, :string, 2
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
module Google
|
70
|
+
module Example
|
71
|
+
module Library
|
72
|
+
module V1
|
73
|
+
Book = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.example.library.v1.Book").msgclass
|
74
|
+
Shelf = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.example.library.v1.Shelf").msgclass
|
75
|
+
CreateShelfRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.example.library.v1.CreateShelfRequest").msgclass
|
76
|
+
GetShelfRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.example.library.v1.GetShelfRequest").msgclass
|
77
|
+
ListShelvesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.example.library.v1.ListShelvesRequest").msgclass
|
78
|
+
ListShelvesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.example.library.v1.ListShelvesResponse").msgclass
|
79
|
+
DeleteShelfRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.example.library.v1.DeleteShelfRequest").msgclass
|
80
|
+
MergeShelvesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.example.library.v1.MergeShelvesRequest").msgclass
|
81
|
+
CreateBookRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.example.library.v1.CreateBookRequest").msgclass
|
82
|
+
GetBookRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.example.library.v1.GetBookRequest").msgclass
|
83
|
+
ListBooksRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.example.library.v1.ListBooksRequest").msgclass
|
84
|
+
ListBooksResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.example.library.v1.ListBooksResponse").msgclass
|
85
|
+
UpdateBookRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.example.library.v1.UpdateBookRequest").msgclass
|
86
|
+
DeleteBookRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.example.library.v1.DeleteBookRequest").msgclass
|
87
|
+
MoveBookRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.example.library.v1.MoveBookRequest").msgclass
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/example/library/v1/library.proto for package 'google.example.library.v1'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'google/example/library/v1/library'
|
6
|
+
|
7
|
+
module Google
|
8
|
+
module Example
|
9
|
+
module Library
|
10
|
+
module V1
|
11
|
+
module LibraryService
|
12
|
+
|
13
|
+
# TODO: add proto service documentation here
|
14
|
+
class Service
|
15
|
+
|
16
|
+
include GRPC::GenericService
|
17
|
+
|
18
|
+
self.marshal_class_method = :encode
|
19
|
+
self.unmarshal_class_method = :decode
|
20
|
+
self.service_name = 'google.example.library.v1.LibraryService'
|
21
|
+
|
22
|
+
rpc :CreateShelf, CreateShelfRequest, Shelf
|
23
|
+
rpc :GetShelf, GetShelfRequest, Shelf
|
24
|
+
rpc :ListShelves, ListShelvesRequest, ListShelvesResponse
|
25
|
+
rpc :DeleteShelf, DeleteShelfRequest, Empty
|
26
|
+
rpc :MergeShelves, MergeShelvesRequest, Shelf
|
27
|
+
rpc :CreateBook, CreateBookRequest, Book
|
28
|
+
rpc :GetBook, GetBookRequest, Book
|
29
|
+
rpc :ListBooks, ListBooksRequest, ListBooksResponse
|
30
|
+
rpc :DeleteBook, DeleteBookRequest, Empty
|
31
|
+
rpc :UpdateBook, UpdateBookRequest, Book
|
32
|
+
rpc :MoveBook, MoveBookRequest, Book
|
33
|
+
end
|
34
|
+
|
35
|
+
Stub = Service.rpc_stub_class
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/iam/v1/iam_policy.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/iam/v1/policy'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "google.iam.v1.SetIamPolicyRequest" do
|
9
|
+
optional :resource, :string, 1
|
10
|
+
optional :policy, :message, 2, "google.iam.v1.Policy"
|
11
|
+
end
|
12
|
+
add_message "google.iam.v1.GetIamPolicyRequest" do
|
13
|
+
optional :resource, :string, 1
|
14
|
+
end
|
15
|
+
add_message "google.iam.v1.TestIamPermissionsRequest" do
|
16
|
+
optional :resource, :string, 1
|
17
|
+
repeated :permissions, :string, 2
|
18
|
+
end
|
19
|
+
add_message "google.iam.v1.TestIamPermissionsResponse" do
|
20
|
+
repeated :permissions, :string, 1
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
module Google
|
25
|
+
module Iam
|
26
|
+
module V1
|
27
|
+
SetIamPolicyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.SetIamPolicyRequest").msgclass
|
28
|
+
GetIamPolicyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.GetIamPolicyRequest").msgclass
|
29
|
+
TestIamPermissionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.TestIamPermissionsRequest").msgclass
|
30
|
+
TestIamPermissionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.TestIamPermissionsResponse").msgclass
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/iam/v1/iam_policy.proto for package 'google.iam.v1'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'google/iam/v1/iam_policy'
|
6
|
+
|
7
|
+
module Google
|
8
|
+
module Iam
|
9
|
+
module V1
|
10
|
+
module IAMPolicy
|
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.iam.v1.IAMPolicy'
|
20
|
+
|
21
|
+
rpc :SetIamPolicy, SetIamPolicyRequest, Policy
|
22
|
+
rpc :GetIamPolicy, GetIamPolicyRequest, Policy
|
23
|
+
rpc :TestIamPermissions, TestIamPermissionsRequest, TestIamPermissionsResponse
|
24
|
+
end
|
25
|
+
|
26
|
+
Stub = Service.rpc_stub_class
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/iam/v1/policy.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "google.iam.v1.Policy" do
|
8
|
+
optional :version, :int32, 1
|
9
|
+
repeated :bindings, :message, 4, "google.iam.v1.Binding"
|
10
|
+
optional :etag, :bytes, 3
|
11
|
+
end
|
12
|
+
add_message "google.iam.v1.Binding" do
|
13
|
+
optional :role, :string, 1
|
14
|
+
repeated :members, :string, 2
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
module Google
|
19
|
+
module Iam
|
20
|
+
module V1
|
21
|
+
Policy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.Policy").msgclass
|
22
|
+
Binding = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.Binding").msgclass
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/logging/type/http_request.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "google.logging.type.HttpRequest" do
|
9
|
+
optional :request_method, :string, 1
|
10
|
+
optional :request_url, :string, 2
|
11
|
+
optional :request_size, :int64, 3
|
12
|
+
optional :status, :int32, 4
|
13
|
+
optional :response_size, :int64, 5
|
14
|
+
optional :user_agent, :string, 6
|
15
|
+
optional :remote_ip, :string, 7
|
16
|
+
optional :referer, :string, 8
|
17
|
+
optional :cache_hit, :bool, 9
|
18
|
+
optional :validated_with_origin_server, :bool, 10
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Logging
|
24
|
+
module Type
|
25
|
+
HttpRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.type.HttpRequest").msgclass
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/logging/type/log_severity.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_enum "google.logging.type.LogSeverity" do
|
9
|
+
value :DEFAULT, 0
|
10
|
+
value :DEBUG, 100
|
11
|
+
value :INFO, 200
|
12
|
+
value :NOTICE, 300
|
13
|
+
value :WARNING, 400
|
14
|
+
value :ERROR, 500
|
15
|
+
value :CRITICAL, 600
|
16
|
+
value :ALERT, 700
|
17
|
+
value :EMERGENCY, 800
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Logging
|
23
|
+
module Type
|
24
|
+
LogSeverity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.type.LogSeverity").enummodule
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/logging/v2/log_entry.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations'
|
7
|
+
require 'google/api/monitored_resource'
|
8
|
+
require 'google/logging/type/http_request'
|
9
|
+
require 'google/logging/type/log_severity'
|
10
|
+
require 'google/protobuf/any'
|
11
|
+
require 'google/protobuf/struct'
|
12
|
+
require 'google/protobuf/timestamp'
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_message "google.logging.v2.LogEntry" do
|
15
|
+
optional :log_name, :string, 12
|
16
|
+
optional :resource, :message, 8, "google.api.MonitoredResource"
|
17
|
+
optional :timestamp, :message, 9, "google.protobuf.Timestamp"
|
18
|
+
optional :severity, :enum, 10, "google.logging.type.LogSeverity"
|
19
|
+
optional :insert_id, :string, 4
|
20
|
+
optional :http_request, :message, 7, "google.logging.type.HttpRequest"
|
21
|
+
map :labels, :string, :string, 11
|
22
|
+
optional :operation, :message, 15, "google.logging.v2.LogEntryOperation"
|
23
|
+
oneof :payload do
|
24
|
+
optional :proto_payload, :message, 2, "google.protobuf.Any"
|
25
|
+
optional :text_payload, :string, 3
|
26
|
+
optional :json_payload, :message, 6, "google.protobuf.Struct"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
add_message "google.logging.v2.LogEntryOperation" do
|
30
|
+
optional :id, :string, 1
|
31
|
+
optional :producer, :string, 2
|
32
|
+
optional :first, :bool, 3
|
33
|
+
optional :last, :bool, 4
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
module Google
|
38
|
+
module Logging
|
39
|
+
module V2
|
40
|
+
LogEntry = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogEntry").msgclass
|
41
|
+
LogEntryOperation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogEntryOperation").msgclass
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/logging/v2/logging.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations'
|
7
|
+
require 'google/api/monitored_resource'
|
8
|
+
require 'google/logging/v2/log_entry'
|
9
|
+
require 'google/protobuf/empty'
|
10
|
+
require 'google/rpc/status'
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_message "google.logging.v2.DeleteLogRequest" do
|
13
|
+
optional :log_name, :string, 1
|
14
|
+
end
|
15
|
+
add_message "google.logging.v2.WriteLogEntriesRequest" do
|
16
|
+
optional :log_name, :string, 1
|
17
|
+
optional :resource, :message, 2, "google.api.MonitoredResource"
|
18
|
+
map :labels, :string, :string, 3
|
19
|
+
repeated :entries, :message, 4, "google.logging.v2.LogEntry"
|
20
|
+
end
|
21
|
+
add_message "google.logging.v2.WriteLogEntriesResponse" do
|
22
|
+
end
|
23
|
+
add_message "google.logging.v2.ListLogEntriesRequest" do
|
24
|
+
repeated :project_ids, :string, 1
|
25
|
+
optional :filter, :string, 2
|
26
|
+
optional :order_by, :string, 3
|
27
|
+
optional :page_size, :int32, 4
|
28
|
+
optional :page_token, :string, 5
|
29
|
+
end
|
30
|
+
add_message "google.logging.v2.ListLogEntriesResponse" do
|
31
|
+
repeated :entries, :message, 1, "google.logging.v2.LogEntry"
|
32
|
+
optional :next_page_token, :string, 2
|
33
|
+
end
|
34
|
+
add_message "google.logging.v2.ListMonitoredResourceDescriptorsRequest" do
|
35
|
+
optional :page_size, :int32, 1
|
36
|
+
optional :page_token, :string, 2
|
37
|
+
end
|
38
|
+
add_message "google.logging.v2.ListMonitoredResourceDescriptorsResponse" do
|
39
|
+
repeated :resource_descriptors, :message, 1, "google.api.MonitoredResourceDescriptor"
|
40
|
+
optional :next_page_token, :string, 2
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
module Google
|
45
|
+
module Logging
|
46
|
+
module V2
|
47
|
+
DeleteLogRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteLogRequest").msgclass
|
48
|
+
WriteLogEntriesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.WriteLogEntriesRequest").msgclass
|
49
|
+
WriteLogEntriesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.WriteLogEntriesResponse").msgclass
|
50
|
+
ListLogEntriesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogEntriesRequest").msgclass
|
51
|
+
ListLogEntriesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogEntriesResponse").msgclass
|
52
|
+
ListMonitoredResourceDescriptorsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListMonitoredResourceDescriptorsRequest").msgclass
|
53
|
+
ListMonitoredResourceDescriptorsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListMonitoredResourceDescriptorsResponse").msgclass
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|