google-cloud-policy_troubleshooter-v1 0.7.1 → 0.8.1

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: fa6e27cfe5b8974a20cd0aad57baf5b5a47ea5688f8d330bf6d7b710bbcc759d
4
- data.tar.gz: fcd314d8b7495d51846935efe4acdc6d2137d5cd8187ff774cf27981202d14c5
3
+ metadata.gz: 44a7ca7bd74fa497593a284a05489ed932da9ddeb2b5debd516a8e8726624056
4
+ data.tar.gz: e160602e878edfdb06969f885f54b171e643f05a1593394c8bc92cbae2c02899
5
5
  SHA512:
6
- metadata.gz: 0d9c7c91eff4c865b5f0e12fe783a49e308a2770f20e5e15aa7ae89537ff73cb15f93f4ce7665d06c67ca5855e0c50a5a3bc129361c06163c74907bd852e336b
7
- data.tar.gz: f87e86029e944eba2b965bec48ad4d6b630436af885d6aea2eb33c853d4364d126435c1eeead2ac6853673bb74e7b6b7fcd5e29145f5ad0c09ef370d7e401247
6
+ metadata.gz: 2e67aa4afc2450bb6b41f5e15116decb5f49f8e7669b992180b557a5def59649ff71982f4ad791ecb4e0b2a38bfd1a6fe34878b880875055991b40ce2509f4e2
7
+ data.tar.gz: 1e93bf6f771845102516dbcf852ac90e505028c1415c6bfe1972f81df669290316e55cd495e725be202f70cccbcb269159c9bb22a82a003bad6704dc26089f2a
@@ -152,8 +152,9 @@ module Google
152
152
  # Service calls
153
153
 
154
154
  ##
155
- # Checks whether a member has a specific permission for a specific resource,
156
- # and explains why the member does or does not have that permission.
155
+ # Checks whether a principal has a specific permission for a specific
156
+ # resource, and explains why the principal does or does not have that
157
+ # permission.
157
158
  #
158
159
  # @overload troubleshoot_iam_policy(request, options = nil)
159
160
  # Pass arguments to `troubleshoot_iam_policy` via a request object, either of type
@@ -171,8 +172,8 @@ module Google
171
172
  # the default parameter values, pass an empty Hash as a request object (see above).
172
173
  #
173
174
  # @param access_tuple [::Google::Cloud::PolicyTroubleshooter::V1::AccessTuple, ::Hash]
174
- # The information to use for checking whether a member has a permission for a
175
- # resource.
175
+ # The information to use for checking whether a principal has a permission
176
+ # for a resource.
176
177
  #
177
178
  # @yield [response, operation] Access the result along with the RPC operation
178
179
  # @yieldparam response [::Google::Cloud::PolicyTroubleshooter::V1::TroubleshootIamPolicyResponse]
@@ -143,8 +143,9 @@ module Google
143
143
  # Service calls
144
144
 
145
145
  ##
146
- # Checks whether a member has a specific permission for a specific resource,
147
- # and explains why the member does or does not have that permission.
146
+ # Checks whether a principal has a specific permission for a specific
147
+ # resource, and explains why the principal does or does not have that
148
+ # permission.
148
149
  #
149
150
  # @overload troubleshoot_iam_policy(request, options = nil)
150
151
  # Pass arguments to `troubleshoot_iam_policy` via a request object, either of type
@@ -162,8 +163,8 @@ module Google
162
163
  # the default parameter values, pass an empty Hash as a request object (see above).
163
164
  #
164
165
  # @param access_tuple [::Google::Cloud::PolicyTroubleshooter::V1::AccessTuple, ::Hash]
165
- # The information to use for checking whether a member has a permission for a
166
- # resource.
166
+ # The information to use for checking whether a principal has a permission
167
+ # for a resource.
167
168
  # @yield [result, operation] Access the result along with the TransportOperation object
168
169
  # @yieldparam result [::Google::Cloud::PolicyTroubleshooter::V1::TroubleshootIamPolicyResponse]
169
170
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PolicyTroubleshooter
23
23
  module V1
24
- VERSION = "0.7.1"
24
+ VERSION = "0.8.1"
25
25
  end
26
26
  end
27
27
  end
@@ -7,9 +7,10 @@ require 'google/protobuf'
7
7
  require 'google/cloud/policytroubleshooter/v1/explanations_pb'
8
8
  require 'google/api/annotations_pb'
9
9
  require 'google/api/client_pb'
10
+ require 'google/rpc/status_pb'
10
11
 
11
12
 
12
- descriptor_data = "\n2google/cloud/policytroubleshooter/v1/checker.proto\x12$google.cloud.policytroubleshooter.v1\x1a\x37google/cloud/policytroubleshooter/v1/explanations.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\"g\n\x1cTroubleshootIamPolicyRequest\x12G\n\x0c\x61\x63\x63\x65ss_tuple\x18\x01 \x01(\x0b\x32\x31.google.cloud.policytroubleshooter.v1.AccessTuple\"\xb5\x01\n\x1dTroubleshootIamPolicyResponse\x12\x41\n\x06\x61\x63\x63\x65ss\x18\x01 \x01(\x0e\x32\x31.google.cloud.policytroubleshooter.v1.AccessState\x12Q\n\x12\x65xplained_policies\x18\x02 \x03(\x0b\x32\x35.google.cloud.policytroubleshooter.v1.ExplainedPolicy2\xa9\x02\n\nIamChecker\x12\xc1\x01\n\x15TroubleshootIamPolicy\x12\x42.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest\x1a\x43.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\"\x14/v1/iam:troubleshoot:\x01*\x1aW\xca\x41#policytroubleshooter.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x96\x02\n(com.google.cloud.policytroubleshooter.v1B\x0fIAMCheckerProtoP\x01Z\\cloud.google.com/go/policytroubleshooter/apiv1/policytroubleshooterpb;policytroubleshooterpb\xf8\x01\x01\xaa\x02$Google.Cloud.PolicyTroubleshooter.V1\xca\x02$Google\\Cloud\\PolicyTroubleshooter\\V1\xea\x02\'Google::Cloud::PolicyTroubleshooter::V1P\x00\x62\x06proto3"
13
+ descriptor_data = "\n2google/cloud/policytroubleshooter/v1/checker.proto\x12$google.cloud.policytroubleshooter.v1\x1a\x37google/cloud/policytroubleshooter/v1/explanations.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x17google/rpc/status.proto\"g\n\x1cTroubleshootIamPolicyRequest\x12G\n\x0c\x61\x63\x63\x65ss_tuple\x18\x01 \x01(\x0b\x32\x31.google.cloud.policytroubleshooter.v1.AccessTuple\"\xd9\x01\n\x1dTroubleshootIamPolicyResponse\x12\x41\n\x06\x61\x63\x63\x65ss\x18\x01 \x01(\x0e\x32\x31.google.cloud.policytroubleshooter.v1.AccessState\x12Q\n\x12\x65xplained_policies\x18\x02 \x03(\x0b\x32\x35.google.cloud.policytroubleshooter.v1.ExplainedPolicy\x12\"\n\x06\x65rrors\x18\x03 \x03(\x0b\x32\x12.google.rpc.Status2\xa9\x02\n\nIamChecker\x12\xc1\x01\n\x15TroubleshootIamPolicy\x12\x42.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest\x1a\x43.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\"\x14/v1/iam:troubleshoot:\x01*\x1aW\xca\x41#policytroubleshooter.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x96\x02\n(com.google.cloud.policytroubleshooter.v1B\x0fIAMCheckerProtoP\x01Z\\cloud.google.com/go/policytroubleshooter/apiv1/policytroubleshooterpb;policytroubleshooterpb\xf8\x01\x01\xaa\x02$Google.Cloud.PolicyTroubleshooter.V1\xca\x02$Google\\Cloud\\PolicyTroubleshooter\\V1\xea\x02\'Google::Cloud::PolicyTroubleshooter::V1P\x00\x62\x06proto3"
13
14
 
14
15
  pool = Google::Protobuf::DescriptorPool.generated_pool
15
16
 
@@ -25,6 +26,7 @@ rescue TypeError => e
25
26
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
27
  imports = [
27
28
  ["google.cloud.policytroubleshooter.v1.AccessTuple", "google/cloud/policytroubleshooter/v1/explanations.proto"],
29
+ ["google.rpc.Status", "google/rpc/status.proto"],
28
30
  ]
29
31
  imports.each do |type_name, expected_filename|
30
32
  import_file = pool.lookup(type_name).file_descriptor
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/policytroubleshooter/v1/checker.proto for package 'Google.Cloud.PolicyTroubleshooter.V1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2023 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
  require 'grpc'
21
20
  require 'google/cloud/policytroubleshooter/v1/checker_pb'
@@ -36,8 +35,9 @@ module Google
36
35
  self.unmarshal_class_method = :decode
37
36
  self.service_name = 'google.cloud.policytroubleshooter.v1.IamChecker'
38
37
 
39
- # Checks whether a member has a specific permission for a specific resource,
40
- # and explains why the member does or does not have that permission.
38
+ # Checks whether a principal has a specific permission for a specific
39
+ # resource, and explains why the principal does or does not have that
40
+ # permission.
41
41
  rpc :TroubleshootIamPolicy, ::Google::Cloud::PolicyTroubleshooter::V1::TroubleshootIamPolicyRequest, ::Google::Cloud::PolicyTroubleshooter::V1::TroubleshootIamPolicyResponse
42
42
  end
43
43
 
@@ -21,26 +21,28 @@ module Google
21
21
  module Cloud
22
22
  module PolicyTroubleshooter
23
23
  module V1
24
- # Request for {::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client#troubleshoot_iam_policy TroubleshootIamPolicy}.
24
+ # Request for
25
+ # {::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client#troubleshoot_iam_policy TroubleshootIamPolicy}.
25
26
  # @!attribute [rw] access_tuple
26
27
  # @return [::Google::Cloud::PolicyTroubleshooter::V1::AccessTuple]
27
- # The information to use for checking whether a member has a permission for a
28
- # resource.
28
+ # The information to use for checking whether a principal has a permission
29
+ # for a resource.
29
30
  class TroubleshootIamPolicyRequest
30
31
  include ::Google::Protobuf::MessageExts
31
32
  extend ::Google::Protobuf::MessageExts::ClassMethods
32
33
  end
33
34
 
34
- # Response for {::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client#troubleshoot_iam_policy TroubleshootIamPolicy}.
35
+ # Response for
36
+ # {::Google::Cloud::PolicyTroubleshooter::V1::IamChecker::Client#troubleshoot_iam_policy TroubleshootIamPolicy}.
35
37
  # @!attribute [rw] access
36
38
  # @return [::Google::Cloud::PolicyTroubleshooter::V1::AccessState]
37
- # Indicates whether the member has the specified permission for the specified
38
- # resource, based on evaluating all of the applicable IAM policies.
39
+ # Indicates whether the principal has the specified permission for the
40
+ # specified resource, based on evaluating all of the applicable IAM policies.
39
41
  # @!attribute [rw] explained_policies
40
42
  # @return [::Array<::Google::Cloud::PolicyTroubleshooter::V1::ExplainedPolicy>]
41
- # List of IAM policies that were evaluated to check the member's permissions,
42
- # with annotations to indicate how each policy contributed to the final
43
- # result.
43
+ # List of IAM policies that were evaluated to check the principal's
44
+ # permissions, with annotations to indicate how each policy contributed to
45
+ # the final result.
44
46
  #
45
47
  # The list of policies can include the policy for the resource itself. It can
46
48
  # also include policies that are inherited from higher levels of the resource
@@ -48,6 +50,9 @@ module Google
48
50
  #
49
51
  # To learn more about the resource hierarchy, see
50
52
  # https://cloud.google.com/iam/help/resource-hierarchy.
53
+ # @!attribute [rw] errors
54
+ # @return [::Array<::Google::Rpc::Status>]
55
+ # The general errors contained in the troubleshooting response.
51
56
  class TroubleshootIamPolicyResponse
52
57
  include ::Google::Protobuf::MessageExts
53
58
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -21,16 +21,16 @@ module Google
21
21
  module Cloud
22
22
  module PolicyTroubleshooter
23
23
  module V1
24
- # Information about the member, resource, and permission to check.
24
+ # Information about the principal, resource, and permission to check.
25
25
  # @!attribute [rw] principal
26
26
  # @return [::String]
27
- # Required. The member, or principal, whose access you want to check, in the form of
28
- # the email address that represents that member. For example,
27
+ # Required. The principal whose access you want to check, in the form of
28
+ # the email address that represents that principal. For example,
29
29
  # `alice@example.com` or
30
30
  # `my-service-account@my-project.iam.gserviceaccount.com`.
31
31
  #
32
- # The member must be a Google Account or a service account. Other types of
33
- # members are not supported.
32
+ # The principal must be a Google Account or a service account. Other types of
33
+ # principals are not supported.
34
34
  # @!attribute [rw] full_resource_name
35
35
  # @return [::String]
36
36
  # Required. The full resource name that identifies the resource. For example,
@@ -40,7 +40,8 @@ module Google
40
40
  # https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
41
41
  # @!attribute [rw] permission
42
42
  # @return [::String]
43
- # Required. The IAM permission to check for the specified member and resource.
43
+ # Required. The IAM permission to check for the specified principal and
44
+ # resource.
44
45
  #
45
46
  # For a complete list of IAM permissions, see
46
47
  # https://cloud.google.com/iam/help/permissions/reference.
@@ -57,12 +58,12 @@ module Google
57
58
  # @!attribute [rw] access
58
59
  # @return [::Google::Cloud::PolicyTroubleshooter::V1::AccessState]
59
60
  # Indicates whether _this policy_ provides the specified permission to the
60
- # specified member for the specified resource.
61
+ # specified principal for the specified resource.
61
62
  #
62
- # This field does _not_ indicate whether the member actually has the
63
+ # This field does _not_ indicate whether the principal actually has the
63
64
  # permission for the resource. There might be another policy that overrides
64
- # this policy. To determine whether the member actually has the permission,
65
- # use the `access` field in the
65
+ # this policy. To determine whether the principal actually has the
66
+ # permission, use the `access` field in the
66
67
  # [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
67
68
  # @!attribute [rw] full_resource_name
68
69
  # @return [::String]
@@ -82,8 +83,8 @@ module Google
82
83
  # is empty.
83
84
  # @!attribute [rw] binding_explanations
84
85
  # @return [::Array<::Google::Cloud::PolicyTroubleshooter::V1::BindingExplanation>]
85
- # Details about how each binding in the policy affects the member's ability,
86
- # or inability, to use the permission for the resource.
86
+ # Details about how each binding in the policy affects the principal's
87
+ # ability, or inability, to use the permission for the resource.
87
88
  #
88
89
  # If the sender of the request does not have access to the policy, this field
89
90
  # is omitted.
@@ -99,17 +100,17 @@ module Google
99
100
  extend ::Google::Protobuf::MessageExts::ClassMethods
100
101
  end
101
102
 
102
- # Details about how a binding in a policy affects a member's ability to use a
103
- # permission.
103
+ # Details about how a binding in a policy affects a principal's ability to use
104
+ # a permission.
104
105
  # @!attribute [rw] access
105
106
  # @return [::Google::Cloud::PolicyTroubleshooter::V1::AccessState]
106
- # Required. Indicates whether _this binding_ provides the specified permission to the
107
- # specified member for the specified resource.
107
+ # Required. Indicates whether _this binding_ provides the specified
108
+ # permission to the specified principal for the specified resource.
108
109
  #
109
- # This field does _not_ indicate whether the member actually has the
110
+ # This field does _not_ indicate whether the principal actually has the
110
111
  # permission for the resource. There might be another binding that overrides
111
- # this binding. To determine whether the member actually has the permission,
112
- # use the `access` field in the
112
+ # this binding. To determine whether the principal actually has the
113
+ # permission, use the `access` field in the
113
114
  # [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
114
115
  # @!attribute [rw] role
115
116
  # @return [::String]
@@ -128,24 +129,24 @@ module Google
128
129
  # to the overall determination for the entire policy.
129
130
  # @!attribute [rw] memberships
130
131
  # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::PolicyTroubleshooter::V1::BindingExplanation::AnnotatedMembership}]
131
- # Indicates whether each member in the binding includes the member specified
132
- # in the request, either directly or indirectly. Each key identifies a member
133
- # in the binding, and each value indicates whether the member in the binding
134
- # includes the member in the request.
132
+ # Indicates whether each principal in the binding includes the principal
133
+ # specified in the request, either directly or indirectly. Each key
134
+ # identifies a principal in the binding, and each value indicates whether the
135
+ # principal in the binding includes the principal in the request.
135
136
  #
136
- # For example, suppose that a binding includes the following members:
137
+ # For example, suppose that a binding includes the following principals:
137
138
  #
138
139
  # * `user:alice@example.com`
139
140
  # * `group:product-eng@example.com`
140
141
  #
141
142
  # You want to troubleshoot access for `user:bob@example.com`. This user is a
142
- # member of the group `group:product-eng@example.com`.
143
+ # principal of the group `group:product-eng@example.com`.
143
144
  #
144
- # For the first member in the binding, the key is `user:alice@example.com`,
145
- # and the `membership` field in the value is set to
145
+ # For the first principal in the binding, the key is
146
+ # `user:alice@example.com`, and the `membership` field in the value is set to
146
147
  # `MEMBERSHIP_NOT_INCLUDED`.
147
148
  #
148
- # For the second member in the binding, the key is
149
+ # For the second principal in the binding, the key is
149
150
  # `group:product-eng@example.com`, and the `membership` field in the value is
150
151
  # set to `MEMBERSHIP_INCLUDED`.
151
152
  # @!attribute [rw] relevance
@@ -154,23 +155,23 @@ module Google
154
155
  # policy.
155
156
  # @!attribute [rw] condition
156
157
  # @return [::Google::Type::Expr]
157
- # A condition expression that prevents access unless the expression evaluates
158
- # to `true`.
158
+ # A condition expression that prevents this binding from granting access
159
+ # unless the expression evaluates to `true`.
159
160
  #
160
161
  # To learn about IAM Conditions, see
161
- # http://cloud.google.com/iam/help/conditions/overview.
162
+ # https://cloud.google.com/iam/help/conditions/overview.
162
163
  class BindingExplanation
163
164
  include ::Google::Protobuf::MessageExts
164
165
  extend ::Google::Protobuf::MessageExts::ClassMethods
165
166
 
166
- # Details about whether the binding includes the member.
167
+ # Details about whether the binding includes the principal.
167
168
  # @!attribute [rw] membership
168
169
  # @return [::Google::Cloud::PolicyTroubleshooter::V1::BindingExplanation::Membership]
169
- # Indicates whether the binding includes the member.
170
+ # Indicates whether the binding includes the principal.
170
171
  # @!attribute [rw] relevance
171
172
  # @return [::Google::Cloud::PolicyTroubleshooter::V1::HeuristicRelevance]
172
- # The relevance of the member's status to the overall determination for the
173
- # binding.
173
+ # The relevance of the principal's status to the overall determination for
174
+ # the binding.
174
175
  class AnnotatedMembership
175
176
  include ::Google::Protobuf::MessageExts
176
177
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -187,7 +188,7 @@ module Google
187
188
 
188
189
  # Whether a role includes a specific permission.
189
190
  module RolePermission
190
- # Reserved for future use.
191
+ # Default value. This value is unused.
191
192
  ROLE_PERMISSION_UNSPECIFIED = 0
192
193
 
193
194
  # The permission is included in the role.
@@ -200,44 +201,45 @@ module Google
200
201
  ROLE_PERMISSION_UNKNOWN_INFO_DENIED = 3
201
202
  end
202
203
 
203
- # Whether the binding includes the member.
204
+ # Whether the binding includes the principal.
204
205
  module Membership
205
- # Reserved for future use.
206
+ # Default value. This value is unused.
206
207
  MEMBERSHIP_UNSPECIFIED = 0
207
208
 
208
- # The binding includes the member. The member can be included directly
209
- # or indirectly. For example:
209
+ # The binding includes the principal. The principal can be included
210
+ # directly or indirectly. For example:
210
211
  #
211
- # * A member is included directly if that member is listed in the binding.
212
- # * A member is included indirectly if that member is in a Google group or
213
- # G Suite domain that is listed in the binding.
212
+ # * A principal is included directly if that principal is listed in the
213
+ # binding.
214
+ # * A principal is included indirectly if that principal is in a Google
215
+ # group or Google Workspace domain that is listed in the binding.
214
216
  MEMBERSHIP_INCLUDED = 1
215
217
 
216
- # The binding does not include the member.
218
+ # The binding does not include the principal.
217
219
  MEMBERSHIP_NOT_INCLUDED = 2
218
220
 
219
221
  # The sender of the request is not allowed to access the binding.
220
222
  MEMBERSHIP_UNKNOWN_INFO_DENIED = 3
221
223
 
222
- # The member is an unsupported type. Only Google Accounts and service
224
+ # The principal is an unsupported type. Only Google Accounts and service
223
225
  # accounts are supported.
224
226
  MEMBERSHIP_UNKNOWN_UNSUPPORTED = 4
225
227
  end
226
228
  end
227
229
 
228
- # Whether a member has a permission for a resource.
230
+ # Whether a principal has a permission for a resource.
229
231
  module AccessState
230
- # Reserved for future use.
232
+ # Default value. This value is unused.
231
233
  ACCESS_STATE_UNSPECIFIED = 0
232
234
 
233
- # The member has the permission.
235
+ # The principal has the permission.
234
236
  GRANTED = 1
235
237
 
236
- # The member does not have the permission.
238
+ # The principal does not have the permission.
237
239
  NOT_GRANTED = 2
238
240
 
239
- # The member has the permission only if a condition expression evaluates to
240
- # `true`.
241
+ # The principal has the permission only if a condition expression evaluates
242
+ # to `true`.
241
243
  UNKNOWN_CONDITIONAL = 3
242
244
 
243
245
  # The sender of the request does not have access to all of the policies that
@@ -245,10 +247,11 @@ module Google
245
247
  UNKNOWN_INFO_DENIED = 4
246
248
  end
247
249
 
248
- # The extent to which a single data point contributes to an overall
250
+ # The extent to which a single data point, such as the existence of a binding
251
+ # or whether a binding includes a specific principal, contributes to an overall
249
252
  # determination.
250
253
  module HeuristicRelevance
251
- # Reserved for future use.
254
+ # Default value. This value is unused.
252
255
  HEURISTIC_RELEVANCE_UNSPECIFIED = 0
253
256
 
254
257
  # The data point has a limited effect on the result. Changing the data point
@@ -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 Platform resource.
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 Platform resource.
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
@@ -0,0 +1,144 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Protobuf
22
+ # `Any` contains an arbitrary serialized protocol buffer message along with a
23
+ # URL that describes the type of the serialized message.
24
+ #
25
+ # Protobuf library provides support to pack/unpack Any values in the form
26
+ # of utility functions or additional generated methods of the Any type.
27
+ #
28
+ # Example 1: Pack and unpack a message in C++.
29
+ #
30
+ # Foo foo = ...;
31
+ # Any any;
32
+ # any.PackFrom(foo);
33
+ # ...
34
+ # if (any.UnpackTo(&foo)) {
35
+ # ...
36
+ # }
37
+ #
38
+ # Example 2: Pack and unpack a message in Java.
39
+ #
40
+ # Foo foo = ...;
41
+ # Any any = Any.pack(foo);
42
+ # ...
43
+ # if (any.is(Foo.class)) {
44
+ # foo = any.unpack(Foo.class);
45
+ # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
50
+ #
51
+ # Example 3: Pack and unpack a message in Python.
52
+ #
53
+ # foo = Foo(...)
54
+ # any = Any()
55
+ # any.Pack(foo)
56
+ # ...
57
+ # if any.Is(Foo.DESCRIPTOR):
58
+ # any.Unpack(foo)
59
+ # ...
60
+ #
61
+ # Example 4: Pack and unpack a message in Go
62
+ #
63
+ # foo := &pb.Foo{...}
64
+ # any, err := anypb.New(foo)
65
+ # if err != nil {
66
+ # ...
67
+ # }
68
+ # ...
69
+ # foo := &pb.Foo{}
70
+ # if err := any.UnmarshalTo(foo); err != nil {
71
+ # ...
72
+ # }
73
+ #
74
+ # The pack methods provided by protobuf library will by default use
75
+ # 'type.googleapis.com/full.type.name' as the type URL and the unpack
76
+ # methods only use the fully qualified type name after the last '/'
77
+ # in the type URL, for example "foo.bar.com/x/y.z" will yield type
78
+ # name "y.z".
79
+ #
80
+ # JSON
81
+ # ====
82
+ # The JSON representation of an `Any` value uses the regular
83
+ # representation of the deserialized, embedded message, with an
84
+ # additional field `@type` which contains the type URL. Example:
85
+ #
86
+ # package google.profile;
87
+ # message Person {
88
+ # string first_name = 1;
89
+ # string last_name = 2;
90
+ # }
91
+ #
92
+ # {
93
+ # "@type": "type.googleapis.com/google.profile.Person",
94
+ # "firstName": <string>,
95
+ # "lastName": <string>
96
+ # }
97
+ #
98
+ # If the embedded message type is well-known and has a custom JSON
99
+ # representation, that representation will be embedded adding a field
100
+ # `value` which holds the custom JSON in addition to the `@type`
101
+ # field. Example (for message [google.protobuf.Duration][]):
102
+ #
103
+ # {
104
+ # "@type": "type.googleapis.com/google.protobuf.Duration",
105
+ # "value": "1.212s"
106
+ # }
107
+ # @!attribute [rw] type_url
108
+ # @return [::String]
109
+ # A URL/resource name that uniquely identifies the type of the serialized
110
+ # protocol buffer message. This string must contain at least
111
+ # one "/" character. The last segment of the URL's path must represent
112
+ # the fully qualified name of the type (as in
113
+ # `path/google.protobuf.Duration`). The name should be in a canonical form
114
+ # (e.g., leading "." is not accepted).
115
+ #
116
+ # In practice, teams usually precompile into the binary all types that they
117
+ # expect it to use in the context of Any. However, for URLs which use the
118
+ # scheme `http`, `https`, or no scheme, one can optionally set up a type
119
+ # server that maps type URLs to message definitions as follows:
120
+ #
121
+ # * If no scheme is provided, `https` is assumed.
122
+ # * An HTTP GET on the URL must yield a [google.protobuf.Type][]
123
+ # value in binary format, or produce an error.
124
+ # * Applications are allowed to cache lookup results based on the
125
+ # URL, or have them precompiled into a binary to avoid any
126
+ # lookup. Therefore, binary compatibility needs to be preserved
127
+ # on changes to types. (Use versioned type names to manage
128
+ # breaking changes.)
129
+ #
130
+ # Note: this functionality is not currently available in the official
131
+ # protobuf release, and it is not used for type URLs beginning with
132
+ # type.googleapis.com.
133
+ #
134
+ # Schemes other than `http`, `https` (or the empty scheme) might be
135
+ # used with implementation specific semantics.
136
+ # @!attribute [rw] value
137
+ # @return [::String]
138
+ # Must be a valid serialized protocol buffer of the above specified type.
139
+ class Any
140
+ include ::Google::Protobuf::MessageExts
141
+ extend ::Google::Protobuf::MessageExts::ClassMethods
142
+ end
143
+ end
144
+ end
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Rpc
22
+ # The `Status` type defines a logical error model that is suitable for
23
+ # different programming environments, including REST APIs and RPC APIs. It is
24
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
25
+ # three pieces of data: error code, error message, and error details.
26
+ #
27
+ # You can find out more about this error model and how to work with it in the
28
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
29
+ # @!attribute [rw] code
30
+ # @return [::Integer]
31
+ # The status code, which should be an enum value of
32
+ # [google.rpc.Code][google.rpc.Code].
33
+ # @!attribute [rw] message
34
+ # @return [::String]
35
+ # A developer-facing error message, which should be in English. Any
36
+ # user-facing error message should be localized and sent in the
37
+ # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
38
+ # by the client.
39
+ # @!attribute [rw] details
40
+ # @return [::Array<::Google::Protobuf::Any>]
41
+ # A list of messages that carry the error details. There is a common set of
42
+ # message types for APIs to use.
43
+ class Status
44
+ include ::Google::Protobuf::MessageExts
45
+ extend ::Google::Protobuf::MessageExts::ClassMethods
46
+ end
47
+ end
48
+ 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.7.1
4
+ version: 0.8.1
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-06-06 00:00:00.000000000 Z
11
+ date: 2023-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -208,7 +208,9 @@ files:
208
208
  - proto_docs/google/cloud/policytroubleshooter/v1/checker.rb
209
209
  - proto_docs/google/cloud/policytroubleshooter/v1/explanations.rb
210
210
  - proto_docs/google/iam/v1/policy.rb
211
+ - proto_docs/google/protobuf/any.rb
211
212
  - proto_docs/google/protobuf/duration.rb
213
+ - proto_docs/google/rpc/status.rb
212
214
  - proto_docs/google/type/expr.rb
213
215
  homepage: https://github.com/googleapis/google-cloud-ruby
214
216
  licenses: