googleapis-common-protos 1.3.8 → 1.3.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 29ea36722894f9410328e495342d87d6310351e4
4
- data.tar.gz: e6e5a9e3a1eceaf950b66ca594b1ae787e7ae82c
2
+ SHA256:
3
+ metadata.gz: d86e4419a37d25d99f7051b57a4d529faae3efc0cf3ade3934bd879ce0d5eb70
4
+ data.tar.gz: 757c505a420fd3f3c67e2beb03d9781055dce779386b884ce3047255f5c98ebf
5
5
  SHA512:
6
- metadata.gz: a82118e22204bc6de377875500689e5911c69cf2e50d77e75fe990fba5610e3172daaaca7fef104e8b39ea3232742710a7217045a506776d37fd94b83977d40b
7
- data.tar.gz: 89c05f2512c6d23f71d68ec469413eb5936d7d92b5ad0e95659cd2ae64c24235776dae6d0bd109576e793f9fe2d0d985df277608d8acc8e15de0316a6e43a42b
6
+ metadata.gz: b62f7d33519b3ebb48ec57332667b975015fa12dafc27193f2d638a8fc16274b5b7a081c4a68c47baa53c48ea8f9df2a2e6c507722418c9060795b70e74782a1
7
+ data.tar.gz: 77bed7cd675ed7411b3a2568ebcd17d1b8428e75be638712b7a8c5445ce298bc8ef8aca88c084f6d32df25f07139fbe6a91d676990eef58577ef9e0b6ce552c0
data/.gitignore CHANGED
@@ -8,4 +8,3 @@ Gemfile.lock
8
8
  /pkg/
9
9
  /spec/reports/
10
10
  /tmp/
11
- /lib/
@@ -0,0 +1,5 @@
1
+ # Release History
2
+
3
+ ### 1.3.9 / 2019-04-03
4
+
5
+ * Add WaitOperation RPC to operations_services_pb.rb and update documentation.
data/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ # Common Services
2
+
3
+ This gem contains common gRPC services for Google APIs.
4
+
1
5
  ## Installation
2
6
 
3
7
  Add this line to your application's Gemfile:
data/Rakefile CHANGED
@@ -21,11 +21,15 @@ task :compile_protos do
21
21
  Rake::Task[:clean_protos].invoke
22
22
  FileUtils.mkdir 'lib'
23
23
 
24
+ protos = [
25
+ "../googleapis/google/longrunning/operations.proto"
26
+ ]
27
+
24
28
  command = []
25
29
  command << "grpc_tools_ruby_protoc"
26
30
  command << "--grpc_out=lib"
27
31
  command << "-I ../googleapis"
28
- command << "../googleapis/google/longrunning/operations.proto"
32
+ command += protos
29
33
  full_command = command.join " "
30
34
 
31
35
  puts full_command
@@ -16,7 +16,7 @@
16
16
 
17
17
  Gem::Specification.new do |spec|
18
18
  spec.name = "googleapis-common-protos"
19
- spec.version = "1.3.8"
19
+ spec.version = "1.3.9"
20
20
  spec.authors = ["Google Inc"]
21
21
  spec.email = ["googleapis-packages@google.com"]
22
22
  spec.licenses = ["Apache-2.0"]
@@ -0,0 +1,89 @@
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 2019 Google LLC.
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
+
20
+ require 'grpc'
21
+ require 'google/longrunning/operations_pb'
22
+
23
+ module Google
24
+ module Longrunning
25
+ module Operations
26
+ # Manages long-running operations with an API service.
27
+ #
28
+ # When an API method normally takes long time to complete, it can be designed
29
+ # to return [Operation][google.longrunning.Operation] to the client, and the client can use this
30
+ # interface to receive the real response asynchronously by polling the
31
+ # operation resource, or pass the operation resource to another API (such as
32
+ # Google Cloud Pub/Sub API) to receive the response. Any API service that
33
+ # returns long-running operations should implement the `Operations` interface
34
+ # so developers can have a consistent client experience.
35
+ class Service
36
+
37
+ include GRPC::GenericService
38
+
39
+ self.marshal_class_method = :encode
40
+ self.unmarshal_class_method = :decode
41
+ self.service_name = 'google.longrunning.Operations'
42
+
43
+ # Lists operations that match the specified filter in the request. If the
44
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
45
+ #
46
+ # NOTE: the `name` binding allows API services to override the binding
47
+ # to use different resource name schemes, such as `users/*/operations`. To
48
+ # override the binding, API services can add a binding such as
49
+ # `"/v1/{name=users/*}/operations"` to their service configuration.
50
+ # For backwards compatibility, the default name includes the operations
51
+ # collection id, however overriding users must ensure the name binding
52
+ # is the parent resource, without the operations collection id.
53
+ rpc :ListOperations, ListOperationsRequest, ListOperationsResponse
54
+ # Gets the latest state of a long-running operation. Clients can use this
55
+ # method to poll the operation result at intervals as recommended by the API
56
+ # service.
57
+ rpc :GetOperation, GetOperationRequest, Operation
58
+ # Deletes a long-running operation. This method indicates that the client is
59
+ # no longer interested in the operation result. It does not cancel the
60
+ # operation. If the server doesn't support this method, it returns
61
+ # `google.rpc.Code.UNIMPLEMENTED`.
62
+ rpc :DeleteOperation, DeleteOperationRequest, Google::Protobuf::Empty
63
+ # Starts asynchronous cancellation on a long-running operation. The server
64
+ # makes a best effort to cancel the operation, but success is not
65
+ # guaranteed. If the server doesn't support this method, it returns
66
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
67
+ # [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
68
+ # other methods to check whether the cancellation succeeded or whether the
69
+ # operation completed despite cancellation. On successful cancellation,
70
+ # the operation is not deleted; instead, it becomes an operation with
71
+ # an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
72
+ # corresponding to `Code.CANCELLED`.
73
+ rpc :CancelOperation, CancelOperationRequest, Google::Protobuf::Empty
74
+ # Waits for the specified long-running operation until it is done or reaches
75
+ # at most a specified timeout, returning the latest state. If the operation
76
+ # is already done, the latest state is immediately returned. If the timeout
77
+ # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
78
+ # timeout is used. If the server does not support this method, it returns
79
+ # `google.rpc.Code.UNIMPLEMENTED`.
80
+ # Note that this method is on a best-effort basis. It may return the latest
81
+ # state before the specified timeout (including immediately), meaning even an
82
+ # immediate response is no guarantee that the operation is done.
83
+ rpc :WaitOperation, WaitOperationRequest, Operation
84
+ end
85
+
86
+ Stub = Service.rpc_stub_class
87
+ end
88
+ end
89
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: googleapis-common-protos
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.8
4
+ version: 1.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-07 00:00:00.000000000 Z
11
+ date: 2019-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: googleapis-common-protos-types
@@ -102,6 +102,7 @@ extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
104
  - ".gitignore"
105
+ - CHANGELOG.md
105
106
  - Gemfile
106
107
  - README.md
107
108
  - Rakefile
@@ -127,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
128
  version: '0'
128
129
  requirements: []
129
130
  rubyforge_project:
130
- rubygems_version: 2.6.14
131
+ rubygems_version: 2.7.8
131
132
  signing_key:
132
133
  specification_version: 4
133
134
  summary: Common gRPC and protocol buffer classes used in Google APIs