Class: Google::Apis::PolicytroubleshooterV1::GoogleCloudPolicytroubleshooterV1AccessTuple
- Inherits:
-
Object
- Object
- Google::Apis::PolicytroubleshooterV1::GoogleCloudPolicytroubleshooterV1AccessTuple
- 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
Information about the principal, resource, and permission to check.
Instance Attribute Summary collapse
-
#full_resource_name ⇒ String
Required.
-
#permission ⇒ String
Required.
-
#principal ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPolicytroubleshooterV1AccessTuple
constructor
A new instance of GoogleCloudPolicytroubleshooterV1AccessTuple.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPolicytroubleshooterV1AccessTuple
Returns a new instance of GoogleCloudPolicytroubleshooterV1AccessTuple.
55 56 57 |
# File 'lib/google/apis/policytroubleshooter_v1/classes.rb', line 55 def initialize(**args) update!(**args) end |
Instance Attribute Details
#full_resource_name ⇒ String
Required. The full resource name that identifies the resource. For example, //
compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-
instance
. For examples of full resource names for Google Cloud services, see
https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
Corresponds to the JSON property fullResourceName
35 36 37 |
# File 'lib/google/apis/policytroubleshooter_v1/classes.rb', line 35 def full_resource_name @full_resource_name end |
#permission ⇒ String
Required. The IAM permission to check for the specified principal and resource.
For a complete list of IAM permissions, see https://cloud.google.com/iam/help/
permissions/reference. For a complete list of predefined IAM roles and the
permissions in each role, see https://cloud.google.com/iam/help/roles/
reference.
Corresponds to the JSON property permission
44 45 46 |
# File 'lib/google/apis/policytroubleshooter_v1/classes.rb', line 44 def @permission end |
#principal ⇒ String
Required. The principal whose access you want to check, in the form of the
email address that represents that principal. For example, alice@example.com
or my-service-account@my-project.iam.gserviceaccount.com
. The principal must
be a Google Account or a service account. Other types of principals are not
supported.
Corresponds to the JSON property principal
53 54 55 |
# File 'lib/google/apis/policytroubleshooter_v1/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 'lib/google/apis/policytroubleshooter_v1/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 |