Class: Google::Apis::ServicecontrolV1::AuthorizationInfo
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ServicecontrolV1::AuthorizationInfo
 
- 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
- 
  
    
      #granted  ⇒ Boolean 
    
    
      (also: #granted?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether or not authorization for resourceandpermissionwas granted.
- 
  
    
      #permission  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The required IAM permission. 
- 
  
    
      #resource  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The resource being accessed, as a REST-style string. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AuthorizationInfo 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AuthorizationInfo. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AuthorizationInfo
Returns a new instance of AuthorizationInfo
| 333 334 335 | # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 333 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
| 319 320 321 | # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 319 def granted @granted end | 
#permission ⇒ String
The required IAM permission.
Corresponds to the JSON property permission
| 325 326 327 | # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 325 def @permission end | 
#resource ⇒ String
The resource being accessed, as a REST-style string. For example:
bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
Corresponds to the JSON property resource
| 331 332 333 | # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 331 def resource @resource end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 338 339 340 341 342 | # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 338 def update!(**args) @granted = args[:granted] if args.key?(:granted) @permission = args[:permission] if args.key?(:permission) @resource = args[:resource] if args.key?(:resource) end |