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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fba3722c05311170e998e42108a39ce0b0e2200f173bbea75bf0765cce2793b
|
4
|
+
data.tar.gz: ce43b163d0857f59eb37bb05289f8709242df0b6e8417305949e973df7dde959
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
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
|
-
#
|
105
|
-
#
|
106
|
-
# To create a new IamChecker client with the default
|
107
|
-
# configuration:
|
103
|
+
# @example
|
108
104
|
#
|
109
|
-
#
|
105
|
+
# # Create a client using the default configuration
|
106
|
+
# client = ::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client.new
|
110
107
|
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
# to 20 seconds,
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
242
|
-
#
|
243
|
-
#
|
244
|
-
#
|
245
|
-
#
|
246
|
-
#
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
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.
|
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.
|
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-
|
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.
|
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.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|