googleapis-common-protos-types 1.0.1 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +10 -0
- data/CHANGELOG.md +37 -0
- data/Gemfile +5 -0
- data/README.md +19 -0
- data/Rakefile +80 -0
- data/googleapis-common-protos-types.gemspec +43 -0
- data/lib/google/api/annotations_pb.rb +2 -0
- data/lib/google/api/auth_pb.rb +39 -29
- data/lib/google/api/backend_pb.rb +25 -9
- data/lib/google/api/billing_pb.rb +10 -10
- data/lib/google/api/client_pb.rb +14 -0
- data/lib/google/api/config_change_pb.rb +20 -18
- data/lib/google/api/consumer_pb.rb +19 -17
- data/lib/google/api/context_pb.rb +13 -9
- data/lib/google/api/control_pb.rb +5 -3
- data/lib/google/api/distribution_pb.rb +45 -37
- data/lib/google/api/documentation_pb.rb +22 -19
- data/lib/google/api/endpoint_pb.rb +8 -9
- data/lib/google/api/field_behavior_pb.rb +24 -0
- data/lib/google/api/http_pb.rb +25 -21
- data/lib/google/api/httpbody_pb.rb +8 -4
- data/lib/google/api/label_pb.rb +13 -11
- data/lib/google/api/launch_stage_pb.rb +25 -0
- data/lib/google/api/log_pb.rb +8 -6
- data/lib/google/api/logging_pb.rb +11 -10
- data/lib/google/api/metric_pb.rb +45 -32
- data/lib/google/api/monitored_resource_pb.rb +22 -12
- data/lib/google/api/monitoring_pb.rb +11 -10
- data/lib/google/api/quota_pb.rb +24 -23
- data/lib/google/api/resource_pb.rb +40 -0
- data/lib/google/api/service_pb.rb +31 -29
- data/lib/google/api/source_info_pb.rb +5 -3
- data/lib/google/api/system_parameter_pb.rb +16 -14
- data/lib/google/api/usage_pb.rb +13 -12
- data/lib/google/logging/type/http_request_pb.rb +30 -18
- data/lib/google/logging/type/log_severity_pb.rb +23 -11
- data/lib/google/longrunning/operations_pb.rb +46 -32
- data/lib/google/rpc/code_pb.rb +21 -19
- data/lib/google/rpc/error_details_pb.rb +70 -62
- data/lib/google/rpc/status_pb.rb +7 -5
- data/lib/google/type/calendar_period_pb.rb +25 -0
- data/lib/google/type/color_pb.rb +8 -6
- data/lib/google/type/date_pb.rb +7 -5
- data/lib/google/type/datetime_pb.rb +34 -0
- data/lib/google/type/dayofweek_pb.rb +12 -10
- data/lib/google/type/expr_pb.rb +21 -0
- data/lib/google/type/fraction_pb.rb +19 -0
- data/lib/google/type/interval_pb.rb +20 -0
- data/lib/google/type/latlng_pb.rb +6 -4
- data/lib/google/type/localized_text_pb.rb +19 -0
- data/lib/google/type/money_pb.rb +7 -5
- data/lib/google/type/month_pb.rb +30 -0
- data/lib/google/type/phone_number_pb.rb +27 -0
- data/lib/google/type/postal_address_pb.rb +15 -13
- data/lib/google/type/quaternion_pb.rb +21 -0
- data/lib/google/type/timeofday_pb.rb +8 -6
- metadata +46 -14
- data/lib/google/longrunning/operations_services_pb.rb +0 -73
@@ -1,73 +0,0 @@
|
|
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
|