Class: Google::Apis::ServicecontrolV1::AuthorizationInfo

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

Overview

Authorization information for the operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AuthorizationInfo

Returns a new instance of AuthorizationInfo



1079
1080
1081
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1079

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)


1071
1072
1073
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1071

def granted
  @granted
end

#permissionString

The required IAM permission. Corresponds to the JSON property permission

Returns:

  • (String)


1077
1078
1079
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1077

def permission
  @permission
end

#resourceString

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

Returns:

  • (String)


1065
1066
1067
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1065

def resource
  @resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1084
1085
1086
1087
1088
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1084

def update!(**args)
  @resource = args[:resource] if args.key?(:resource)
  @granted = args[:granted] if args.key?(:granted)
  @permission = args[:permission] if args.key?(:permission)
end