google-cloud-spanner 1.9.3 → 1.9.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '07319289793c39bf98fbc181a95196e035b84d9de1018e01b3463cc2677b6491'
4
- data.tar.gz: c876d3352d40ef359d53076c9f23d51afffd91353b30706a523fe7faa6dce465
3
+ metadata.gz: c83cf2f29e4db7b8b019b34085df2610a8cd4ab849d63476d50aa65277816275
4
+ data.tar.gz: 06424cb3e3fbb9e4c856181966a19f38c727878e623d84a85b1cf42ac096183a
5
5
  SHA512:
6
- metadata.gz: 37a26bcab7ae9dd07871a64314c7541908018025681321a08c16cc009e12d716378986638b5711718316d5ee7ce3ad7b771f6445bd2d3bd853a52ab8061bd4cb
7
- data.tar.gz: 0415b19d3346a4160dea888412ff7fe6d5a85389039e8546818cd335d0f160aa662cc5990e2815820b82c39ad464600dca02aea8bccfa52dc17348e9b5e71130
6
+ metadata.gz: d8909bbbd16443de5ecf6811e5e0de80110138fedfe52de91e3b27edd95ffe32d680e194567a9553797b69f9d9a3f4c7791a99e85d1a41cb17c01b84d580977f
7
+ data.tar.gz: 5684afd6343b409b1777ee0f0ab6b8afc10705dfab1fd50d99b5936bc74563fc823d1a83d075a3294d4c4dda3dd5257d399214ccf38af7f4379023525e892932
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release History
2
2
 
3
+ ### 1.9.4 / 2019-07-08
4
+
5
+ * Add IAM GetPolicyOptions in the lower-level API.
6
+ * Support overriding service host and port in the lower-level interface.
7
+
3
8
  ### 1.9.3 / 2019-06-27
4
9
 
5
10
  * Update network configuration for some initial_retry_delay_millis
@@ -171,6 +171,7 @@ module Google
171
171
  timeout: timeout,
172
172
  lib_name: lib_name,
173
173
  lib_version: lib_version,
174
+ metadata: metadata,
174
175
  )
175
176
 
176
177
  if credentials.is_a?(String) || credentials.is_a?(Hash)
@@ -694,6 +695,11 @@ module Google
694
695
  # @param resource [String]
695
696
  # REQUIRED: The resource for which the policy is being requested.
696
697
  # See the operation documentation for the appropriate value for this field.
698
+ # @param options_ [Google::Iam::V1::GetPolicyOptions | Hash]
699
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
700
+ # `GetIamPolicy`. This field is only used by Cloud IAM.
701
+ # A hash of the same form as `Google::Iam::V1::GetPolicyOptions`
702
+ # can also be provided.
697
703
  # @param options [Google::Gax::CallOptions]
698
704
  # Overrides the default settings for this call, e.g, timeout,
699
705
  # retries, etc.
@@ -711,10 +717,12 @@ module Google
711
717
 
712
718
  def get_iam_policy \
713
719
  resource,
720
+ options_: nil,
714
721
  options: nil,
715
722
  &block
716
723
  req = {
717
- resource: resource
724
+ resource: resource,
725
+ options: options_
718
726
  }.delete_if { |_, v| v.nil? }
719
727
  req = Google::Gax::to_proto(req, Google::Iam::V1::GetIamPolicyRequest)
720
728
  @get_iam_policy.call(req, options, &block)
@@ -34,6 +34,10 @@ module Google
34
34
  # @return [String]
35
35
  # REQUIRED: The resource for which the policy is being requested.
36
36
  # See the operation documentation for the appropriate value for this field.
37
+ # @!attribute [rw] options
38
+ # @return [Google::Iam::V1::GetPolicyOptions]
39
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
40
+ # `GetIamPolicy`. This field is only used by Cloud IAM.
37
41
  class GetIamPolicyRequest; end
38
42
 
39
43
  # Request message for `TestIamPermissions` method.
@@ -0,0 +1,29 @@
1
+ # Copyright 2019 Google LLC
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
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
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.
14
+
15
+
16
+ module Google
17
+ module Iam
18
+ module V1
19
+ # Encapsulates settings provided to GetIamPolicy.
20
+ # @!attribute [rw] requested_policy_version
21
+ # @return [Integer]
22
+ # Optional. The policy format version to be returned.
23
+ # Acceptable values are 0 and 1.
24
+ # If the value is 0, or the field is omitted, policy format version 1 will be
25
+ # returned.
26
+ class GetPolicyOptions; end
27
+ end
28
+ end
29
+ end
@@ -34,6 +34,10 @@ module Google
34
34
  # @return [String]
35
35
  # REQUIRED: The resource for which the policy is being requested.
36
36
  # See the operation documentation for the appropriate value for this field.
37
+ # @!attribute [rw] options
38
+ # @return [Google::Iam::V1::GetPolicyOptions]
39
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
40
+ # `GetIamPolicy`. This field is only used by Cloud IAM.
37
41
  class GetIamPolicyRequest; end
38
42
 
39
43
  # Request message for `TestIamPermissions` method.
@@ -0,0 +1,29 @@
1
+ # Copyright 2019 Google LLC
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
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
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.
14
+
15
+
16
+ module Google
17
+ module Iam
18
+ module V1
19
+ # Encapsulates settings provided to GetIamPolicy.
20
+ # @!attribute [rw] requested_policy_version
21
+ # @return [Integer]
22
+ # Optional. The policy format version to be returned.
23
+ # Acceptable values are 0 and 1.
24
+ # If the value is 0, or the field is omitted, policy format version 1 will be
25
+ # returned.
26
+ class GetPolicyOptions; end
27
+ end
28
+ end
29
+ end
@@ -204,6 +204,7 @@ module Google
204
204
  timeout: timeout,
205
205
  lib_name: lib_name,
206
206
  lib_version: lib_version,
207
+ metadata: metadata,
207
208
  )
208
209
 
209
210
  if credentials.is_a?(String) || credentials.is_a?(Hash)
@@ -872,6 +873,11 @@ module Google
872
873
  # @param resource [String]
873
874
  # REQUIRED: The resource for which the policy is being requested.
874
875
  # See the operation documentation for the appropriate value for this field.
876
+ # @param options_ [Google::Iam::V1::GetPolicyOptions | Hash]
877
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
878
+ # `GetIamPolicy`. This field is only used by Cloud IAM.
879
+ # A hash of the same form as `Google::Iam::V1::GetPolicyOptions`
880
+ # can also be provided.
875
881
  # @param options [Google::Gax::CallOptions]
876
882
  # Overrides the default settings for this call, e.g, timeout,
877
883
  # retries, etc.
@@ -889,10 +895,12 @@ module Google
889
895
 
890
896
  def get_iam_policy \
891
897
  resource,
898
+ options_: nil,
892
899
  options: nil,
893
900
  &block
894
901
  req = {
895
- resource: resource
902
+ resource: resource,
903
+ options: options_
896
904
  }.delete_if { |_, v| v.nil? }
897
905
  req = Google::Gax::to_proto(req, Google::Iam::V1::GetIamPolicyRequest)
898
906
  @get_iam_policy.call(req, options, &block)
@@ -138,6 +138,10 @@ module Google
138
138
  # The default timeout, in seconds, for calls made through this client.
139
139
  # @param metadata [Hash]
140
140
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
141
+ # @param service_address [String]
142
+ # Override for the service hostname, or `nil` to leave as the default.
143
+ # @param service_port [Integer]
144
+ # Override for the service port, or `nil` to leave as the default.
141
145
  # @param exception_transformer [Proc]
142
146
  # An optional proc that intercepts any exceptions raised during an API call to inject
143
147
  # custom error handling.
@@ -147,6 +151,8 @@ module Google
147
151
  client_config: {},
148
152
  timeout: DEFAULT_TIMEOUT,
149
153
  metadata: nil,
154
+ service_address: nil,
155
+ service_port: nil,
150
156
  exception_transformer: nil,
151
157
  lib_name: nil,
152
158
  lib_version: ""
@@ -201,8 +207,8 @@ module Google
201
207
  end
202
208
 
203
209
  # Allow overriding the service path/port in subclasses.
204
- service_path = self.class::SERVICE_ADDRESS
205
- port = self.class::DEFAULT_SERVICE_PORT
210
+ service_path = service_address || self.class::SERVICE_ADDRESS
211
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
206
212
  interceptors = self.class::GRPC_INTERCEPTORS
207
213
  @spanner_stub = Google::Gax::Grpc.create_stub(
208
214
  service_path,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Spanner
19
- VERSION = "1.9.3".freeze
19
+ VERSION = "1.9.4".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-spanner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.3
4
+ version: 1.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-06-27 00:00:00.000000000 Z
12
+ date: 2019-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '1.0'
34
+ version: '1.7'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '1.0'
41
+ version: '1.7'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: grpc-google-iam-v1
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -234,6 +234,7 @@ files:
234
234
  - lib/google/cloud/spanner/admin/database/v1/database_admin_client.rb
235
235
  - lib/google/cloud/spanner/admin/database/v1/database_admin_client_config.json
236
236
  - lib/google/cloud/spanner/admin/database/v1/doc/google/iam/v1/iam_policy.rb
237
+ - lib/google/cloud/spanner/admin/database/v1/doc/google/iam/v1/options.rb
237
238
  - lib/google/cloud/spanner/admin/database/v1/doc/google/iam/v1/policy.rb
238
239
  - lib/google/cloud/spanner/admin/database/v1/doc/google/longrunning/operations.rb
239
240
  - lib/google/cloud/spanner/admin/database/v1/doc/google/protobuf/any.rb
@@ -246,6 +247,7 @@ files:
246
247
  - lib/google/cloud/spanner/admin/instance/v1.rb
247
248
  - lib/google/cloud/spanner/admin/instance/v1/credentials.rb
248
249
  - lib/google/cloud/spanner/admin/instance/v1/doc/google/iam/v1/iam_policy.rb
250
+ - lib/google/cloud/spanner/admin/instance/v1/doc/google/iam/v1/options.rb
249
251
  - lib/google/cloud/spanner/admin/instance/v1/doc/google/iam/v1/policy.rb
250
252
  - lib/google/cloud/spanner/admin/instance/v1/doc/google/longrunning/operations.rb
251
253
  - lib/google/cloud/spanner/admin/instance/v1/doc/google/protobuf/any.rb