Class: Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaAccessTuple
- Inherits:
-
Object
- Object
- Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaAccessTuple
- 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
-
#full_resource_name ⇒ String
Required.
-
#permission ⇒ String
Required.
-
#principal ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPolicytroubleshooterV1betaAccessTuple
constructor
A new instance of GoogleCloudPolicytroubleshooterV1betaAccessTuple.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_name ⇒ String
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
35 36 37 |
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 35 def full_resource_name @full_resource_name end |
#permission ⇒ String
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
44 45 46 |
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 44 def @permission end |
#principal ⇒ String
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
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 |