Class: Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaExplainedPolicy

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

Overview

An explained IAM policy combines the raw policy in the context of the resource which it is attached to along with detailed evaluation on the evaluation parameters provided through the request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudPolicytroubleshooterV1betaExplainedPolicy

Returns a new instance of GoogleCloudPolicytroubleshooterV1betaExplainedPolicy



241
242
243
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 241

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

Instance Attribute Details

#accessString

Access decision for this section of the resource's effective policy. Corresponds to the JSON property access

Returns:

  • (String)


168
169
170
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 168

def access
  @access
end

#binding_explanationsArray<Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaBindingExplanation>

Detailed binding evaluation explanations provide information about how each binding contributes to the principal's access or the lack thereof. Corresponds to the JSON property bindingExplanations



175
176
177
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 175

def binding_explanations
  @binding_explanations
end

#full_resource_nameString

Resource that this section of the effective policy attaches to. Corresponds to the JSON property fullResourceName

Returns:

  • (String)


180
181
182
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 180

def full_resource_name
  @full_resource_name
end

#policyGoogle::Apis::PolicytroubleshooterV1beta::GoogleIamV1Policy

Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions (defined by IAM or configured by users). A binding can optionally specify a condition, which is a logic expression that further constrains the role binding based on attributes about the request and/or target resource. JSON Example "bindings": [ "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] , "role": "roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], "condition": "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ] YAML Example bindings:



234
235
236
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 234

def policy
  @policy
end

#relevanceString

Relevance of this Policy. Corresponds to the JSON property relevance

Returns:

  • (String)


239
240
241
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 239

def relevance
  @relevance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



246
247
248
249
250
251
252
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 246

def update!(**args)
  @access = args[:access] if args.key?(:access)
  @binding_explanations = args[:binding_explanations] if args.key?(:binding_explanations)
  @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
  @policy = args[:policy] if args.key?(:policy)
  @relevance = args[:relevance] if args.key?(:relevance)
end