class Google::Apis::ServicecontrolV1::AuthorizationInfo

Authorization information for the operation.

Attributes

granted[RW]

Whether or not authorization for `resource` and `permission` was granted. Corresponds to the JSON property `granted` @return [Boolean]

granted?[RW]

Whether or not authorization for `resource` and `permission` was granted. Corresponds to the JSON property `granted` @return [Boolean]

permission[RW]

The required IAM permission. Corresponds to the JSON property `permission` @return [String]

resource[RW]

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` @return [String]

resource_attributes[RW]

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` @return [Google::Apis::ServicecontrolV1::Resource]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/servicecontrol_v1/classes.rb, line 476
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/servicecontrol_v1/classes.rb, line 481
def update!(**args)
  @granted = args[:granted] if args.key?(:granted)
  @permission = args[:permission] if args.key?(:permission)
  @resource = args[:resource] if args.key?(:resource)
  @resource_attributes = args[:resource_attributes] if args.key?(:resource_attributes)
end