googleapis-common-protos-types 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/google/api/annotations_pb.rb +13 -0
- data/lib/google/api/auth_pb.rb +42 -0
- data/lib/google/api/backend_pb.rb +22 -0
- data/lib/google/api/billing_pb.rb +24 -0
- data/lib/google/api/config_change_pb.rb +31 -0
- data/lib/google/api/consumer_pb.rb +30 -0
- data/lib/google/api/context_pb.rb +22 -0
- data/lib/google/api/control_pb.rb +16 -0
- data/lib/google/api/distribution_pb.rb +53 -0
- data/lib/google/api/documentation_pb.rb +32 -0
- data/lib/google/api/endpoint_pb.rb +22 -0
- data/lib/google/api/http_pb.rb +35 -0
- data/lib/google/api/httpbody_pb.rb +17 -0
- data/lib/google/api/label_pb.rb +24 -0
- data/lib/google/api/log_pb.rb +20 -0
- data/lib/google/api/logging_pb.rb +23 -0
- data/lib/google/api/metric_pb.rb +46 -0
- data/lib/google/api/monitored_resource_pb.rb +26 -0
- data/lib/google/api/monitoring_pb.rb +23 -0
- data/lib/google/api/quota_pb.rb +36 -0
- data/lib/google/api/service_pb.rb +63 -0
- data/lib/google/api/source_info_pb.rb +17 -0
- data/lib/google/api/system_parameter_pb.rb +27 -0
- data/lib/google/api/usage_pb.rb +25 -0
- data/lib/google/logging/type/http_request_pb.rb +34 -0
- data/lib/google/logging/type/log_severity_pb.rb +27 -0
- data/lib/google/longrunning/operations_pb.rb +50 -0
- data/lib/google/longrunning/operations_services_pb.rb +73 -0
- data/lib/google/rpc/code_pb.rb +32 -0
- data/lib/google/rpc/error_details_pb.rb +76 -0
- data/lib/google/rpc/status_pb.rb +19 -0
- data/lib/google/type/color_pb.rb +20 -0
- data/lib/google/type/date_pb.rb +18 -0
- data/lib/google/type/dayofweek_pb.rb +23 -0
- data/lib/google/type/latlng_pb.rb +17 -0
- data/lib/google/type/money_pb.rb +18 -0
- data/lib/google/type/postal_address_pb.rb +26 -0
- data/lib/google/type/timeofday_pb.rb +19 -0
- metadata +123 -0
@@ -0,0 +1,46 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/api/metric.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/label_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "google.api.MetricDescriptor" do
|
9
|
+
optional :name, :string, 1
|
10
|
+
optional :type, :string, 8
|
11
|
+
repeated :labels, :message, 2, "google.api.LabelDescriptor"
|
12
|
+
optional :metric_kind, :enum, 3, "google.api.MetricDescriptor.MetricKind"
|
13
|
+
optional :value_type, :enum, 4, "google.api.MetricDescriptor.ValueType"
|
14
|
+
optional :unit, :string, 5
|
15
|
+
optional :description, :string, 6
|
16
|
+
optional :display_name, :string, 7
|
17
|
+
end
|
18
|
+
add_enum "google.api.MetricDescriptor.MetricKind" do
|
19
|
+
value :METRIC_KIND_UNSPECIFIED, 0
|
20
|
+
value :GAUGE, 1
|
21
|
+
value :DELTA, 2
|
22
|
+
value :CUMULATIVE, 3
|
23
|
+
end
|
24
|
+
add_enum "google.api.MetricDescriptor.ValueType" do
|
25
|
+
value :VALUE_TYPE_UNSPECIFIED, 0
|
26
|
+
value :BOOL, 1
|
27
|
+
value :INT64, 2
|
28
|
+
value :DOUBLE, 3
|
29
|
+
value :STRING, 4
|
30
|
+
value :DISTRIBUTION, 5
|
31
|
+
value :MONEY, 6
|
32
|
+
end
|
33
|
+
add_message "google.api.Metric" do
|
34
|
+
optional :type, :string, 3
|
35
|
+
map :labels, :string, :string, 2
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
module Google
|
40
|
+
module Api
|
41
|
+
MetricDescriptor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor").msgclass
|
42
|
+
MetricDescriptor::MetricKind = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.MetricKind").enummodule
|
43
|
+
MetricDescriptor::ValueType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.ValueType").enummodule
|
44
|
+
Metric = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Metric").msgclass
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/api/monitored_resource.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/label_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "google.api.MonitoredResourceDescriptor" do
|
9
|
+
optional :name, :string, 5
|
10
|
+
optional :type, :string, 1
|
11
|
+
optional :display_name, :string, 2
|
12
|
+
optional :description, :string, 3
|
13
|
+
repeated :labels, :message, 4, "google.api.LabelDescriptor"
|
14
|
+
end
|
15
|
+
add_message "google.api.MonitoredResource" do
|
16
|
+
optional :type, :string, 1
|
17
|
+
map :labels, :string, :string, 2
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Api
|
23
|
+
MonitoredResourceDescriptor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MonitoredResourceDescriptor").msgclass
|
24
|
+
MonitoredResource = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MonitoredResource").msgclass
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/api/monitoring.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "google.api.Monitoring" do
|
9
|
+
repeated :producer_destinations, :message, 1, "google.api.Monitoring.MonitoringDestination"
|
10
|
+
repeated :consumer_destinations, :message, 2, "google.api.Monitoring.MonitoringDestination"
|
11
|
+
end
|
12
|
+
add_message "google.api.Monitoring.MonitoringDestination" do
|
13
|
+
optional :monitored_resource, :string, 1
|
14
|
+
repeated :metrics, :string, 2
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
module Google
|
19
|
+
module Api
|
20
|
+
Monitoring = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Monitoring").msgclass
|
21
|
+
Monitoring::MonitoringDestination = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Monitoring.MonitoringDestination").msgclass
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/api/quota.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "google.api.Quota" do
|
9
|
+
repeated :limits, :message, 3, "google.api.QuotaLimit"
|
10
|
+
repeated :metric_rules, :message, 4, "google.api.MetricRule"
|
11
|
+
end
|
12
|
+
add_message "google.api.MetricRule" do
|
13
|
+
optional :selector, :string, 1
|
14
|
+
map :metric_costs, :string, :int64, 2
|
15
|
+
end
|
16
|
+
add_message "google.api.QuotaLimit" do
|
17
|
+
optional :name, :string, 6
|
18
|
+
optional :description, :string, 2
|
19
|
+
optional :default_limit, :int64, 3
|
20
|
+
optional :max_limit, :int64, 4
|
21
|
+
optional :free_tier, :int64, 7
|
22
|
+
optional :duration, :string, 5
|
23
|
+
optional :metric, :string, 8
|
24
|
+
optional :unit, :string, 9
|
25
|
+
map :values, :string, :int64, 10
|
26
|
+
optional :display_name, :string, 12
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Api
|
32
|
+
Quota = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Quota").msgclass
|
33
|
+
MetricRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricRule").msgclass
|
34
|
+
QuotaLimit = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.QuotaLimit").msgclass
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/api/service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/auth_pb'
|
8
|
+
require 'google/api/backend_pb'
|
9
|
+
require 'google/api/context_pb'
|
10
|
+
require 'google/api/control_pb'
|
11
|
+
require 'google/api/documentation_pb'
|
12
|
+
require 'google/api/endpoint_pb'
|
13
|
+
require 'google/api/experimental/experimental_pb'
|
14
|
+
require 'google/api/http_pb'
|
15
|
+
require 'google/api/label_pb'
|
16
|
+
require 'google/api/log_pb'
|
17
|
+
require 'google/api/logging_pb'
|
18
|
+
require 'google/api/metric_pb'
|
19
|
+
require 'google/api/monitored_resource_pb'
|
20
|
+
require 'google/api/monitoring_pb'
|
21
|
+
require 'google/api/quota_pb'
|
22
|
+
require 'google/api/source_info_pb'
|
23
|
+
require 'google/api/system_parameter_pb'
|
24
|
+
require 'google/api/usage_pb'
|
25
|
+
require 'google/protobuf/any_pb'
|
26
|
+
require 'google/protobuf/api_pb'
|
27
|
+
require 'google/protobuf/type_pb'
|
28
|
+
require 'google/protobuf/wrappers_pb'
|
29
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
30
|
+
add_message "google.api.Service" do
|
31
|
+
optional :config_version, :message, 20, "google.protobuf.UInt32Value"
|
32
|
+
optional :name, :string, 1
|
33
|
+
optional :id, :string, 33
|
34
|
+
optional :title, :string, 2
|
35
|
+
optional :producer_project_id, :string, 22
|
36
|
+
repeated :apis, :message, 3, "google.protobuf.Api"
|
37
|
+
repeated :types, :message, 4, "google.protobuf.Type"
|
38
|
+
repeated :enums, :message, 5, "google.protobuf.Enum"
|
39
|
+
optional :documentation, :message, 6, "google.api.Documentation"
|
40
|
+
optional :backend, :message, 8, "google.api.Backend"
|
41
|
+
optional :http, :message, 9, "google.api.Http"
|
42
|
+
optional :quota, :message, 10, "google.api.Quota"
|
43
|
+
optional :authentication, :message, 11, "google.api.Authentication"
|
44
|
+
optional :context, :message, 12, "google.api.Context"
|
45
|
+
optional :usage, :message, 15, "google.api.Usage"
|
46
|
+
repeated :endpoints, :message, 18, "google.api.Endpoint"
|
47
|
+
optional :control, :message, 21, "google.api.Control"
|
48
|
+
repeated :logs, :message, 23, "google.api.LogDescriptor"
|
49
|
+
repeated :metrics, :message, 24, "google.api.MetricDescriptor"
|
50
|
+
repeated :monitored_resources, :message, 25, "google.api.MonitoredResourceDescriptor"
|
51
|
+
optional :logging, :message, 27, "google.api.Logging"
|
52
|
+
optional :monitoring, :message, 28, "google.api.Monitoring"
|
53
|
+
optional :system_parameters, :message, 29, "google.api.SystemParameters"
|
54
|
+
optional :source_info, :message, 37, "google.api.SourceInfo"
|
55
|
+
optional :experimental, :message, 101, "google.api.Experimental"
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
module Google
|
60
|
+
module Api
|
61
|
+
Service = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Service").msgclass
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/api/source_info.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/protobuf/any_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "google.api.SourceInfo" do
|
9
|
+
repeated :source_files, :message, 1, "google.protobuf.Any"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module Google
|
14
|
+
module Api
|
15
|
+
SourceInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SourceInfo").msgclass
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/api/system_parameter.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "google.api.SystemParameters" do
|
8
|
+
repeated :rules, :message, 1, "google.api.SystemParameterRule"
|
9
|
+
end
|
10
|
+
add_message "google.api.SystemParameterRule" do
|
11
|
+
optional :selector, :string, 1
|
12
|
+
repeated :parameters, :message, 2, "google.api.SystemParameter"
|
13
|
+
end
|
14
|
+
add_message "google.api.SystemParameter" do
|
15
|
+
optional :name, :string, 1
|
16
|
+
optional :http_header, :string, 2
|
17
|
+
optional :url_query_parameter, :string, 3
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Api
|
23
|
+
SystemParameters = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SystemParameters").msgclass
|
24
|
+
SystemParameterRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SystemParameterRule").msgclass
|
25
|
+
SystemParameter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SystemParameter").msgclass
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/api/usage.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "google.api.Usage" do
|
9
|
+
repeated :requirements, :string, 1
|
10
|
+
repeated :rules, :message, 6, "google.api.UsageRule"
|
11
|
+
optional :producer_notification_channel, :string, 7
|
12
|
+
end
|
13
|
+
add_message "google.api.UsageRule" do
|
14
|
+
optional :selector, :string, 1
|
15
|
+
optional :allow_unregistered_calls, :bool, 2
|
16
|
+
optional :skip_service_control, :bool, 3
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Api
|
22
|
+
Usage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Usage").msgclass
|
23
|
+
UsageRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.UsageRule").msgclass
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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_pb'
|
7
|
+
require 'google/protobuf/duration_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_message "google.logging.type.HttpRequest" do
|
10
|
+
optional :request_method, :string, 1
|
11
|
+
optional :request_url, :string, 2
|
12
|
+
optional :request_size, :int64, 3
|
13
|
+
optional :status, :int32, 4
|
14
|
+
optional :response_size, :int64, 5
|
15
|
+
optional :user_agent, :string, 6
|
16
|
+
optional :remote_ip, :string, 7
|
17
|
+
optional :server_ip, :string, 13
|
18
|
+
optional :referer, :string, 8
|
19
|
+
optional :latency, :message, 14, "google.protobuf.Duration"
|
20
|
+
optional :cache_lookup, :bool, 11
|
21
|
+
optional :cache_hit, :bool, 9
|
22
|
+
optional :cache_validated_with_origin_server, :bool, 10
|
23
|
+
optional :cache_fill_bytes, :int64, 12
|
24
|
+
optional :protocol, :string, 15
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
module Google
|
29
|
+
module Logging
|
30
|
+
module Type
|
31
|
+
HttpRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.type.HttpRequest").msgclass
|
32
|
+
end
|
33
|
+
end
|
34
|
+
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_pb'
|
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,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_pb'
|
7
|
+
require 'google/protobuf/any_pb'
|
8
|
+
require 'google/protobuf/empty_pb'
|
9
|
+
require 'google/rpc/status_pb'
|
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,73 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/longrunning/operations.proto for package 'google.longrunning'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2016 Google Inc.
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/longrunning/operations_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Longrunning
|
24
|
+
module Operations
|
25
|
+
# Manages long-running operations with an API service.
|
26
|
+
#
|
27
|
+
# When an API method normally takes long time to complete, it can be designed
|
28
|
+
# to return [Operation][google.longrunning.Operation] to the client, and the client can use this
|
29
|
+
# interface to receive the real response asynchronously by polling the
|
30
|
+
# operation resource, or pass the operation resource to another API (such as
|
31
|
+
# Google Cloud Pub/Sub API) to receive the response. Any API service that
|
32
|
+
# returns long-running operations should implement the `Operations` interface
|
33
|
+
# so developers can have a consistent client experience.
|
34
|
+
class Service
|
35
|
+
|
36
|
+
include GRPC::GenericService
|
37
|
+
|
38
|
+
self.marshal_class_method = :encode
|
39
|
+
self.unmarshal_class_method = :decode
|
40
|
+
self.service_name = 'google.longrunning.Operations'
|
41
|
+
|
42
|
+
# Lists operations that match the specified filter in the request. If the
|
43
|
+
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
44
|
+
#
|
45
|
+
# NOTE: the `name` binding below allows API services to override the binding
|
46
|
+
# to use different resource name schemes, such as `users/*/operations`.
|
47
|
+
rpc :ListOperations, ListOperationsRequest, ListOperationsResponse
|
48
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
49
|
+
# method to poll the operation result at intervals as recommended by the API
|
50
|
+
# service.
|
51
|
+
rpc :GetOperation, GetOperationRequest, Operation
|
52
|
+
# Deletes a long-running operation. This method indicates that the client is
|
53
|
+
# no longer interested in the operation result. It does not cancel the
|
54
|
+
# operation. If the server doesn't support this method, it returns
|
55
|
+
# `google.rpc.Code.UNIMPLEMENTED`.
|
56
|
+
rpc :DeleteOperation, DeleteOperationRequest, Google::Protobuf::Empty
|
57
|
+
# Starts asynchronous cancellation on a long-running operation. The server
|
58
|
+
# makes a best effort to cancel the operation, but success is not
|
59
|
+
# guaranteed. If the server doesn't support this method, it returns
|
60
|
+
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
61
|
+
# [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
|
62
|
+
# other methods to check whether the cancellation succeeded or whether the
|
63
|
+
# operation completed despite cancellation. On successful cancellation,
|
64
|
+
# the operation is not deleted; instead, it becomes an operation with
|
65
|
+
# an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
|
66
|
+
# corresponding to `Code.CANCELLED`.
|
67
|
+
rpc :CancelOperation, CancelOperationRequest, Google::Protobuf::Empty
|
68
|
+
end
|
69
|
+
|
70
|
+
Stub = Service.rpc_stub_class
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|