Class: Google::Apis::PolicytroubleshooterV1::GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/policytroubleshooter_v1/classes.rb,
lib/google/apis/policytroubleshooter_v1/representations.rb,
lib/google/apis/policytroubleshooter_v1/representations.rb

Overview

Response for TroubleshootIamPolicy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse

Returns a new instance of GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse.



310
311
312
# File 'lib/google/apis/policytroubleshooter_v1/classes.rb', line 310

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#accessString

Indicates whether the principal has the specified permission for the specified resource, based on evaluating all of the applicable IAM policies. Corresponds to the JSON property access

Returns:

  • (String)


292
293
294
# File 'lib/google/apis/policytroubleshooter_v1/classes.rb', line 292

def access
  @access
end

#errorsArray<Google::Apis::PolicytroubleshooterV1::GoogleRpcStatus>

The general errors contained in the troubleshooting response. Corresponds to the JSON property errors



297
298
299
# File 'lib/google/apis/policytroubleshooter_v1/classes.rb', line 297

def errors
  @errors
end

#explained_policiesArray<Google::Apis::PolicytroubleshooterV1::GoogleCloudPolicytroubleshooterV1ExplainedPolicy>

List of IAM policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies can include the policy for the resource itself. It can also include policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/ resource-hierarchy. Corresponds to the JSON property explainedPolicies



308
309
310
# File 'lib/google/apis/policytroubleshooter_v1/classes.rb', line 308

def explained_policies
  @explained_policies
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



315
316
317
318
319
# File 'lib/google/apis/policytroubleshooter_v1/classes.rb', line 315

def update!(**args)
  @access = args[:access] if args.key?(:access)
  @errors = args[:errors] if args.key?(:errors)
  @explained_policies = args[:explained_policies] if args.key?(:explained_policies)
end