google-cloud-policy_troubleshooter-v1 0.7.0 → 0.8.0

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: 66fb71509d300496ed1b2c218f0d540ce4461a7ac5e1b9fa297766065a2a36be
4
- data.tar.gz: 9396a1a2531c9eadaf08dc4315de023eaba45dbd680a480854be611fa9bc9142
3
+ metadata.gz: e80b24a51d384d13eb523b3c72dfe9b920466a22510168f73ec89a255749165f
4
+ data.tar.gz: 53ed05cb14f2555aabae83802c28425b241b8891f92737bb8d45e33a1fd33bcd
5
5
  SHA512:
6
- metadata.gz: eb09b4a84a4e7fab59d898d45e41d46cdb2ea0847492a5e792a22001555227baddd25161d50af4eb073c6aafc67e2ee859b96abfafb049402863fa7170ddfee5
7
- data.tar.gz: 29e95a09e769e9befea80b92d7c156fa6cfabc3734cdface37ace59e8672497588c51086b6a4af44d4de868339610ca57cd7010d4b21c49865c4520bc69393fe
6
+ metadata.gz: 899395860354d9458ff8ebdf0bc2dbae100e31d06662efd84a382ff2ef502fc577224fc1144814199f6a4c29be77f97f4b0e7f59bbe6bd169217bd93645a2280
7
+ data.tar.gz: c714f62e8228e23c0392a83f55e076639e8abbf0f8fcb48020ba49824674163411fe5f84af95b625024f1bdf7e7b554a4176332973cb6f07ac4a334288a70a0d
@@ -130,7 +130,7 @@ module Google
130
130
  credentials = @config.credentials
131
131
  # Use self-signed JWT if the endpoint is unchanged from default,
132
132
  # but only if the default endpoint does not have a region prefix.
133
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
133
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
134
134
  !@config.endpoint.split(".").first.include?("-")
135
135
  credentials ||= Credentials.default scope: @config.scope,
136
136
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -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]
@@ -312,7 +313,9 @@ module Google
312
313
  class Configuration
313
314
  extend ::Gapic::Config
314
315
 
315
- config_attr :endpoint, "policytroubleshooter.googleapis.com", ::String
316
+ DEFAULT_ENDPOINT = "policytroubleshooter.googleapis.com"
317
+
318
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
316
319
  config_attr :credentials, nil do |value|
317
320
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
318
321
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -126,7 +126,7 @@ module Google
126
126
  credentials = @config.credentials
127
127
  # Use self-signed JWT if the endpoint is unchanged from default,
128
128
  # but only if the default endpoint does not have a region prefix.
129
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
129
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
130
130
  !@config.endpoint.split(".").first.include?("-")
131
131
  credentials ||= Credentials.default scope: @config.scope,
132
132
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -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]
@@ -279,7 +280,9 @@ module Google
279
280
  class Configuration
280
281
  extend ::Gapic::Config
281
282
 
282
- config_attr :endpoint, "policytroubleshooter.googleapis.com", ::String
283
+ DEFAULT_ENDPOINT = "policytroubleshooter.googleapis.com"
284
+
285
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
283
286
  config_attr :credentials, nil do |value|
284
287
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
285
288
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_troubleshoot_iam_policy_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PolicyTroubleshooter
23
23
  module V1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.8.0"
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
@@ -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.0
4
+ version: 0.8.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-06-02 00:00:00.000000000 Z
11
+ date: 2023-07-20 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.0
19
+ version: 0.19.1
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.19.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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: