google-gax 0.8.1 → 0.8.2

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
2
  SHA1:
3
- metadata.gz: 435fe4bf9a8b930fa00aab341991956ee2e7ef95
4
- data.tar.gz: 089dc8943ceaf963086e53ae23c9908a6be0ed8a
3
+ metadata.gz: 69d46a87b7b4be034ce238a0cd0a32d110b8eb9c
4
+ data.tar.gz: 6ddea796a52bbaa2e55d87731f1613759433deed
5
5
  SHA512:
6
- metadata.gz: d746f2a27a2bb5704998857fe19211dce290aa076cd2bb301f824bc4340f0cc04071e8c3f5176b7f35b1bc599fb9627d069ac3ce0c4c611d4d1eed2712f6a6d7
7
- data.tar.gz: f22d575c235a8571ae3f8da832cfbdb86d43463381496ab721ddb305b311533fb22782acb85ae63e4768b00b05ef375fba38edca3ff1a98b8ef424cb1c8c974f
6
+ metadata.gz: 393ae91f2f33f7e1151ebd1f2c1d4022e4ada803e124b0353997b59068b23db06afaca79ce77894c2c6b373c2e5e0d12a80d5e8c03de81d53f0f37e799939f91
7
+ data.tar.gz: 08b0d72da6367746eee6e876c0c5c51b817a1a219d00d0ec01fb7d95f1f9cce65222ad952463a91eb8cb67d46195ee7fdfd0aa8cc14d2c111d605d98cd5a9c09
@@ -29,6 +29,6 @@
29
29
 
30
30
  module Google
31
31
  module Gax
32
- VERSION = '0.8.1'.freeze
32
+ VERSION = '0.8.2'.freeze
33
33
  end
34
34
  end
@@ -1,16 +1,30 @@
1
- # Copyright 2016 Google Inc. All rights reserved.
1
+ # Copyright 2017, Google Inc. All rights reserved.
2
2
  #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
3
+ # Redistribution and use in source and binary forms, with or without
4
+ # modification, are permitted provided that the following conditions are
5
+ # met:
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # * Redistributions of source code must retain the above copyright
8
+ # notice, this list of conditions and the following disclaimer.
9
+ # * Redistributions in binary form must reproduce the above
10
+ # copyright notice, this list of conditions and the following disclaimer
11
+ # in the documentation and/or other materials provided with the
12
+ # distribution.
13
+ # * Neither the name of Google Inc. nor the names of its
14
+ # contributors may be used to endorse or promote products derived from
15
+ # this software without specific prior written permission.
8
16
  #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
17
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18
+ # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19
+ # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20
+ # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21
+ # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22
+ # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23
+ # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
+ # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
+ # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
+ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14
28
  #
15
29
  # EDITING INSTRUCTIONS
16
30
  # This file was generated from the file
@@ -26,6 +40,7 @@ require "json"
26
40
  require "pathname"
27
41
 
28
42
  require "google/gax"
43
+
29
44
  require "google/longrunning/operations_pb"
30
45
 
31
46
  module Google
@@ -75,6 +90,12 @@ module Google
75
90
  # A Channel object through which to make calls.
76
91
  # @param chan_creds [Grpc::ChannelCredentials]
77
92
  # A ChannelCredentials for the setting up the RPC client.
93
+ # @param updater_proc [Proc]
94
+ # A function that transforms the metadata for requests, e.g., to give
95
+ # OAuth credentials.
96
+ # @param scopes [Array<String>]
97
+ # The OAuth scopes for this service. This parameter is ignored if
98
+ # an updater_proc is supplied.
78
99
  # @param client_config[Hash]
79
100
  # A Hash for call options for each method. See
80
101
  # Google::Gax#construct_settings for the structure of
@@ -87,6 +108,7 @@ module Google
87
108
  port: DEFAULT_SERVICE_PORT,
88
109
  channel: nil,
89
110
  chan_creds: nil,
111
+ updater_proc: nil,
90
112
  scopes: ALL_SCOPES,
91
113
  client_config: {},
92
114
  timeout: DEFAULT_TIMEOUT,
@@ -107,7 +129,7 @@ module Google
107
129
 
108
130
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
109
131
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
110
- google_api_client << " gapic/ gax/#{Google::Gax::VERSION}"
132
+ google_api_client << " gapic/0.6.8 gax/#{Google::Gax::VERSION}"
111
133
  google_api_client << " grpc/#{GRPC::VERSION}"
112
134
  google_api_client.freeze
113
135
 
@@ -132,6 +154,7 @@ module Google
132
154
  port,
133
155
  chan_creds: chan_creds,
134
156
  channel: channel,
157
+ updater_proc: updater_proc,
135
158
  scopes: scopes,
136
159
  &Google::Longrunning::Operations::Stub.method(:new)
137
160
  )
@@ -6,7 +6,9 @@
6
6
  "DEADLINE_EXCEEDED",
7
7
  "UNAVAILABLE"
8
8
  ],
9
- "non_idempotent": []
9
+ "non_idempotent": [
10
+ "UNAVAILABLE"
11
+ ]
10
12
  },
11
13
  "retry_params": {
12
14
  "default": {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-gax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google API Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-25 00:00:00.000000000 Z
11
+ date: 2017-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: googleauth