google-cloud-policy_troubleshooter-v1 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/policy_troubleshooter/v1/iam_checker/client.rb +10 -1
- data/lib/google/cloud/policy_troubleshooter/v1/iam_checker/rest/client.rb +16 -0
- data/lib/google/cloud/policy_troubleshooter/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ea2fef4bfd916dd926b732a55a9b715181e354a1b13df20f43e6591689cc1f6
|
4
|
+
data.tar.gz: d88d2c6f32d9f90532da7941451855d12c0d6b49e52a3ec66c3a35036716b1ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61124419e85f8d07fdd387deb8c636efdc89c2def6243f2abaa700a0b017bcb6c3c1f400ec59514e9d4e65cb1e6ea4b650c6dc9cc6664a2eb4a89c53903118a8
|
7
|
+
data.tar.gz: 4d90cd83fcd6d2ab4d012e579e63fe7649961f3fb1ee0c3f5b040c4265f4b2e3d3bb1fc035edf44ff363f4a086a6bb44840f56bd58430c7e35174a13a308d0cc
|
@@ -145,7 +145,8 @@ module Google
|
|
145
145
|
credentials: credentials,
|
146
146
|
endpoint: @config.endpoint,
|
147
147
|
channel_args: @config.channel_args,
|
148
|
-
interceptors: @config.interceptors
|
148
|
+
interceptors: @config.interceptors,
|
149
|
+
channel_pool_config: @config.channel_pool
|
149
150
|
)
|
150
151
|
end
|
151
152
|
|
@@ -350,6 +351,14 @@ module Google
|
|
350
351
|
end
|
351
352
|
end
|
352
353
|
|
354
|
+
##
|
355
|
+
# Configuration for the channel pool
|
356
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
357
|
+
#
|
358
|
+
def channel_pool
|
359
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
360
|
+
end
|
361
|
+
|
353
362
|
##
|
354
363
|
# Configuration RPC class for the IamChecker API.
|
355
364
|
#
|
@@ -172,6 +172,22 @@ module Google
|
|
172
172
|
# @return [::Google::Cloud::PolicyTroubleshooter::V1::TroubleshootIamPolicyResponse]
|
173
173
|
#
|
174
174
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
175
|
+
#
|
176
|
+
# @example Basic example
|
177
|
+
# require "google/cloud/policy_troubleshooter/v1"
|
178
|
+
#
|
179
|
+
# # Create a client object. The client can be reused for multiple calls.
|
180
|
+
# client = Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Rest::Client.new
|
181
|
+
#
|
182
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
183
|
+
# request = Google::Cloud::PolicyTroubleshooter::V1::TroubleshootIamPolicyRequest.new
|
184
|
+
#
|
185
|
+
# # Call the troubleshoot_iam_policy method.
|
186
|
+
# result = client.troubleshoot_iam_policy request
|
187
|
+
#
|
188
|
+
# # The returned object is of type Google::Cloud::PolicyTroubleshooter::V1::TroubleshootIamPolicyResponse.
|
189
|
+
# p result
|
190
|
+
#
|
175
191
|
def troubleshoot_iam_policy request, options = nil
|
176
192
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
177
193
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
@@ -40,6 +40,7 @@ module Google
|
|
40
40
|
#
|
41
41
|
# **JSON example:**
|
42
42
|
#
|
43
|
+
# ```
|
43
44
|
# {
|
44
45
|
# "bindings": [
|
45
46
|
# {
|
@@ -67,9 +68,11 @@ module Google
|
|
67
68
|
# "etag": "BwWWja0YfJA=",
|
68
69
|
# "version": 3
|
69
70
|
# }
|
71
|
+
# ```
|
70
72
|
#
|
71
73
|
# **YAML example:**
|
72
74
|
#
|
75
|
+
# ```
|
73
76
|
# bindings:
|
74
77
|
# - members:
|
75
78
|
# - user:mike@example.com
|
@@ -86,6 +89,7 @@ module Google
|
|
86
89
|
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
87
90
|
# etag: BwWWja0YfJA=
|
88
91
|
# version: 3
|
92
|
+
# ```
|
89
93
|
#
|
90
94
|
# For a description of IAM and its features, see the
|
91
95
|
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
@@ -157,7 +161,7 @@ module Google
|
|
157
161
|
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
158
162
|
# @!attribute [rw] members
|
159
163
|
# @return [::Array<::String>]
|
160
|
-
# Specifies the principals requesting access for a Cloud
|
164
|
+
# Specifies the principals requesting access for a Google Cloud resource.
|
161
165
|
# `members` can have the following values:
|
162
166
|
#
|
163
167
|
# * `allUsers`: A special identifier that represents anyone who is
|
@@ -267,8 +271,8 @@ module Google
|
|
267
271
|
# }
|
268
272
|
#
|
269
273
|
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
270
|
-
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
271
|
-
# aliya@example.com from DATA_WRITE logging.
|
274
|
+
# logging. It also exempts `jose@example.com` from DATA_READ logging, and
|
275
|
+
# `aliya@example.com` from DATA_WRITE logging.
|
272
276
|
# @!attribute [rw] service
|
273
277
|
# @return [::String]
|
274
278
|
# Specifies a service that will be enabled for audit logging.
|
@@ -356,7 +360,7 @@ module Google
|
|
356
360
|
# Required
|
357
361
|
# @!attribute [rw] member
|
358
362
|
# @return [::String]
|
359
|
-
# A single identity requesting access for a Cloud
|
363
|
+
# A single identity requesting access for a Google Cloud resource.
|
360
364
|
# Follows the same format of Binding.members.
|
361
365
|
# Required
|
362
366
|
# @!attribute [rw] condition
|
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.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 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.20.0
|
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.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
231
|
- !ruby/object:Gem::Version
|
232
232
|
version: '0'
|
233
233
|
requirements: []
|
234
|
-
rubygems_version: 3.4.
|
234
|
+
rubygems_version: 3.4.19
|
235
235
|
signing_key:
|
236
236
|
specification_version: 4
|
237
237
|
summary: API Client library for the IAM Policy Troubleshooter V1 API
|