google-cloud-policy_troubleshooter-v1 0.3.2 → 0.3.3

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: 7000fb66b4c198287c057b164444c871524ef3db91b2766989fd5feb2b149ee8
4
- data.tar.gz: e0a0e9831cc1cabadd98ee9f4d6373a0b5d5671acd591eda265e7502f9199188
3
+ metadata.gz: 4fba3722c05311170e998e42108a39ce0b0e2200f173bbea75bf0765cce2793b
4
+ data.tar.gz: ce43b163d0857f59eb37bb05289f8709242df0b6e8417305949e973df7dde959
5
5
  SHA512:
6
- metadata.gz: 92ce6864dcc1ed710e4447e11c516afd61dad7ce91689eb8e3bc8246e2f0c65577c688b0501818832eebb02fab596ff0fe7f00133fa4d2888065fbe7e601f373
7
- data.tar.gz: 584dd976216c1fd539db2edd194ece19822b974905dbdb5d939645a7e649457e189469e2bd79260d026da89890769cd02a14cb656a8e93a7829e19d5dbb12791
6
+ metadata.gz: 0ae71424de11225b605bb38f51752b0d7b4ceba3bfaa9075a9e41ddcb8d1637952c8d2d81facac1df30bf3dc4254f81b1ea79869cdef9f8963e15fbb4219e212
7
+ data.tar.gz: d76d999ef6bb47f43822b6323a0a023872a957adcfe9298e87aabfd499a19214bac09f60100aeeeb369b6a71a270e97c7e6db605ac9a29dad1665ddcf37fff60
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all IamChecker clients:
47
- #
48
- # ::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all IamChecker clients
47
+ # ::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -101,19 +100,15 @@ module Google
101
100
  ##
102
101
  # Create a new IamChecker client object.
103
102
  #
104
- # ## Examples
105
- #
106
- # To create a new IamChecker client with the default
107
- # configuration:
103
+ # @example
108
104
  #
109
- # client = ::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client.new
105
+ # # Create a client using the default configuration
106
+ # client = ::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client.new
110
107
  #
111
- # To create a new IamChecker client with a custom
112
- # configuration:
113
- #
114
- # client = ::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client.new do |config|
115
- # config.timeout = 10.0
116
- # end
108
+ # # Create a client using a custom configuration
109
+ # client = ::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client.new do |config|
110
+ # config.timeout = 10.0
111
+ # end
117
112
  #
118
113
  # @yield [config] Configure the IamChecker client.
119
114
  # @yieldparam config [Client::Configuration]
@@ -133,10 +128,9 @@ module Google
133
128
 
134
129
  # Create credentials
135
130
  credentials = @config.credentials
136
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
131
+ # Use self-signed JWT if the endpoint is unchanged from default,
137
132
  # but only if the default endpoint does not have a region prefix.
138
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
139
- @config.endpoint == Client.configure.endpoint &&
133
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
140
134
  !@config.endpoint.split(".").first.include?("-")
141
135
  credentials ||= Credentials.default scope: @config.scope,
142
136
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -208,7 +202,9 @@ module Google
208
202
  options.apply_defaults timeout: @config.rpcs.troubleshoot_iam_policy.timeout,
209
203
  metadata: metadata,
210
204
  retry_policy: @config.rpcs.troubleshoot_iam_policy.retry_policy
211
- options.apply_defaults metadata: @config.metadata,
205
+
206
+ options.apply_defaults timeout: @config.timeout,
207
+ metadata: @config.metadata,
212
208
  retry_policy: @config.retry_policy
213
209
 
214
210
  @iam_checker_stub.call_rpc :troubleshoot_iam_policy, request, options: options do |response, operation|
@@ -232,22 +228,21 @@ module Google
232
228
  # Configuration can be applied globally to all clients, or to a single client
233
229
  # on construction.
234
230
  #
235
- # # Examples
236
- #
237
- # To modify the global config, setting the timeout for troubleshoot_iam_policy
238
- # to 20 seconds, and all remaining timeouts to 10 seconds:
239
- #
240
- # ::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client.configure do |config|
241
- # config.timeout = 10.0
242
- # config.rpcs.troubleshoot_iam_policy.timeout = 20.0
243
- # end
244
- #
245
- # To apply the above configuration only to a new client:
246
- #
247
- # client = ::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client.new do |config|
248
- # config.timeout = 10.0
249
- # config.rpcs.troubleshoot_iam_policy.timeout = 20.0
250
- # end
231
+ # @example
232
+ #
233
+ # # Modify the global config, setting the timeout for
234
+ # # troubleshoot_iam_policy to 20 seconds,
235
+ # # and all remaining timeouts to 10 seconds.
236
+ # ::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client.configure do |config|
237
+ # config.timeout = 10.0
238
+ # config.rpcs.troubleshoot_iam_policy.timeout = 20.0
239
+ # end
240
+ #
241
+ # # Apply the above configuration only to a new client.
242
+ # client = ::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client.new do |config|
243
+ # config.timeout = 10.0
244
+ # config.rpcs.troubleshoot_iam_policy.timeout = 20.0
245
+ # end
251
246
  #
252
247
  # @!attribute [rw] endpoint
253
248
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PolicyTroubleshooter
23
23
  module V1
24
- VERSION = "0.3.2"
24
+ VERSION = "0.3.3"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-policy_troubleshooter-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a