Class: Google::Apis::ServicecontrolV2::AuthorizationInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/servicecontrol_v2/classes.rb,
generated/google/apis/servicecontrol_v2/representations.rb,
generated/google/apis/servicecontrol_v2/representations.rb

Overview

Authorization information for the operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AuthorizationInfo

Returns a new instance of AuthorizationInfo.



446
447
448
# File 'generated/google/apis/servicecontrol_v2/classes.rb', line 446

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

Instance Attribute Details

#grantedBoolean Also known as: granted?

Whether or not authorization for resource and permission was granted. Corresponds to the JSON property granted

Returns:

  • (Boolean)


425
426
427
# File 'generated/google/apis/servicecontrol_v2/classes.rb', line 425

def granted
  @granted
end

#permissionString

The required IAM permission. Corresponds to the JSON property permission

Returns:

  • (String)


431
432
433
# File 'generated/google/apis/servicecontrol_v2/classes.rb', line 431

def permission
  @permission
end

#resourceString

The resource being accessed, as a REST-style string. For example: bigquery. googleapis.com/projects/PROJECTID/datasets/DATASETID Corresponds to the JSON property resource

Returns:

  • (String)


437
438
439
# File 'generated/google/apis/servicecontrol_v2/classes.rb', line 437

def resource
  @resource
end

#resource_attributesGoogle::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



444
445
446
# File 'generated/google/apis/servicecontrol_v2/classes.rb', line 444

def resource_attributes
  @resource_attributes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



451
452
453
454
455
456
# File 'generated/google/apis/servicecontrol_v2/classes.rb', line 451

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