Class: Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaBindingExplanation

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

Binding Explanation.

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) ⇒ GoogleCloudPolicytroubleshooterV1betaBindingExplanation

Returns a new instance of GoogleCloudPolicytroubleshooterV1betaBindingExplanation



117
118
119
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 117

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

Instance Attribute Details

#accessString

REQUIRED: Access decision for this binding. Corresponds to the JSON property access

Returns:

  • (String)


74
75
76
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 74

def access
  @access
end

#conditionGoogle::Apis::PolicytroubleshooterV1beta::GoogleTypeExpr

Represents an expression text. Example: title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0" Corresponds to the JSON property condition



82
83
84
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 82

def condition
  @condition
end

#membershipsHash<String,Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaBindingExplanationAnnotatedMembership>

For each member in the binding, provides information whether or not the principal from the request is included in the member by which the CheckResult is keyed. May indicate that the caller has no access to this information. example key: 'group:cloud-iam-assist-eng@google.com' example value 'NOT_GRANTED, HIGH Corresponds to the JSON property memberships



92
93
94
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 92

def memberships
  @memberships
end

#relevanceString

Bubbles up role_permission level relavance to BindingExplanation object. If role permission is NORMAL, then binding relevance is NORMAL. If role permission is HIGH, then binding relevance is HIGH. Corresponds to the JSON property relevance

Returns:

  • (String)


99
100
101
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 99

def relevance
  @relevance
end

#roleString

The role that this binding grants in the policy. for example "roles/compute.serviceAgent" Corresponds to the JSON property role

Returns:

  • (String)


105
106
107
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 105

def role
  @role
end

#role_permissionString

Whether the role of this binding contains the checked permission Corresponds to the JSON property rolePermission

Returns:

  • (String)


110
111
112
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 110

def role_permission
  @role_permission
end

#role_permission_relevanceString

The relevance of this permission with respect to the BindingExplanation. Corresponds to the JSON property rolePermissionRelevance

Returns:

  • (String)


115
116
117
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 115

def role_permission_relevance
  @role_permission_relevance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



122
123
124
125
126
127
128
129
130
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 122

def update!(**args)
  @access = args[:access] if args.key?(:access)
  @condition = args[:condition] if args.key?(:condition)
  @memberships = args[:memberships] if args.key?(:memberships)
  @relevance = args[:relevance] if args.key?(:relevance)
  @role = args[:role] if args.key?(:role)
  @role_permission = args[:role_permission] if args.key?(:role_permission)
  @role_permission_relevance = args[:role_permission_relevance] if args.key?(:role_permission_relevance)
end