Class: Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaAccessTuple

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

AccessTuple defines information required for checking an access attempt. In other words, this is the tuple given to CheckAccess.

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

Returns a new instance of GoogleCloudPolicytroubleshooterV1betaAccessTuple



55
56
57
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 55

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

Instance Attribute Details

#full_resource_nameString

Required. A full resource name according to https://cloud.google.com/apis/design/resource_names. This is the full resource name of the resource that access is checked against. Corresponds to the JSON property fullResourceName

Returns:

  • (String)


35
36
37
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 35

def full_resource_name
  @full_resource_name
end

#permissionString

Required. The Cloud IAM permission under which defines the kind of access being explained. Example: "resourcemanager.projects.get" would explain if and why the principal has the resourcemanager.projects.get permission on the resource specified in full_resource_name declared in this structure. See https://cloud.google.com/iam/docs/testing-permissions Corresponds to the JSON property permission

Returns:

  • (String)


44
45
46
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 44

def permission
  @permission
end

#principalString

Required. The principal on behalf of who the access is explained for. The format is one of the principal's email addresses associated with its gaia account. It must be an account that can appear as an actor. For example groups are not supported. Currently, service accounts, users are supported. Corresponds to the JSON property principal

Returns:

  • (String)


53
54
55
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 53

def principal
  @principal
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



60
61
62
63
64
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 60

def update!(**args)
  @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
  @permission = args[:permission] if args.key?(:permission)
  @principal = args[:principal] if args.key?(:principal)
end