Class: Google::Apis::ServicecontrolV2::AuthorizationInfo
- Inherits:
-
Object
- Object
- Google::Apis::ServicecontrolV2::AuthorizationInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicecontrol_v2/classes.rb,
lib/google/apis/servicecontrol_v2/representations.rb,
lib/google/apis/servicecontrol_v2/representations.rb
Overview
Authorization information for the operation.
Instance Attribute Summary collapse
-
#granted ⇒ Boolean
(also: #granted?)
Whether or not authorization for
resource
andpermission
was granted. -
#permission ⇒ String
The required IAM permission.
-
#permission_type ⇒ String
The type of the permission that was checked.
-
#resource ⇒ String
The resource being accessed, as a REST-style or cloud resource string.
-
#resource_attributes ⇒ Google::Apis::ServicecontrolV2::Resource
This message defines core attributes for a resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuthorizationInfo
constructor
A new instance of AuthorizationInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AuthorizationInfo
Returns a new instance of AuthorizationInfo.
477 478 479 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 477 def initialize(**args) update!(**args) end |
Instance Attribute Details
#granted ⇒ Boolean Also known as: granted?
Whether or not authorization for resource
and permission
was granted.
Corresponds to the JSON property granted
448 449 450 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 448 def granted @granted end |
#permission ⇒ String
The required IAM permission.
Corresponds to the JSON property permission
454 455 456 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 454 def @permission end |
#permission_type ⇒ String
The type of the permission that was checked. For data access audit logs this
corresponds with the permission type that must be enabled in the project/
folder/organization IAM policy in order for the log to be written.
Corresponds to the JSON property permissionType
461 462 463 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 461 def @permission_type end |
#resource ⇒ String
The resource being accessed, as a REST-style or cloud resource string. For
example: bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID or
projects/PROJECTID/datasets/DATASETID
Corresponds to the JSON property resource
468 469 470 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 468 def resource @resource end |
#resource_attributes ⇒ Google::Apis::ServicecontrolV2::Resource
This message defines core attributes for a resource. A resource is an
addressable (named) entity provided by the destination service. For example, a
file stored on a network storage service.
Corresponds to the JSON property resourceAttributes
475 476 477 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 475 def resource_attributes @resource_attributes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
482 483 484 485 486 487 488 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 482 def update!(**args) @granted = args[:granted] if args.key?(:granted) @permission = args[:permission] if args.key?(:permission) @permission_type = args[:permission_type] if args.key?(:permission_type) @resource = args[:resource] if args.key?(:resource) @resource_attributes = args[:resource_attributes] if args.key?(:resource_attributes) end |