Class: Google::Apis::IamV1::Permission
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::IamV1::Permission
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/iam_v1/classes.rb,
 generated/google/apis/iam_v1/representations.rb,
 generated/google/apis/iam_v1/representations.rb
Overview
A permission which can be included by a role.
Instance Attribute Summary collapse
- 
  
    
      #api_disabled  ⇒ Boolean 
    
    
      (also: #api_disabled?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    The service API associated with the permission is not enabled. 
- 
  
    
      #custom_roles_support_level  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The current custom role support level. 
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A brief description of what this Permission is used for. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of this Permission. 
- 
  
    
      #only_in_predefined_roles  ⇒ Boolean 
    
    
      (also: #only_in_predefined_roles?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    This permission can ONLY be used in predefined roles. 
- 
  
    
      #stage  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The current launch stage of the permission. 
- 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The title of this Permission. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Permission 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Permission. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Permission
Returns a new instance of Permission
| 485 486 487 | # File 'generated/google/apis/iam_v1/classes.rb', line 485 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#api_disabled ⇒ Boolean Also known as: api_disabled?
The service API associated with the permission is not enabled.
Corresponds to the JSON property apiDisabled
| 451 452 453 | # File 'generated/google/apis/iam_v1/classes.rb', line 451 def api_disabled @api_disabled end | 
#custom_roles_support_level ⇒ String
The current custom role support level.
Corresponds to the JSON property customRolesSupportLevel
| 457 458 459 | # File 'generated/google/apis/iam_v1/classes.rb', line 457 def custom_roles_support_level @custom_roles_support_level end | 
#description ⇒ String
A brief description of what this Permission is used for.
Corresponds to the JSON property description
| 462 463 464 | # File 'generated/google/apis/iam_v1/classes.rb', line 462 def description @description end | 
#name ⇒ String
The name of this Permission.
Corresponds to the JSON property name
| 467 468 469 | # File 'generated/google/apis/iam_v1/classes.rb', line 467 def name @name end | 
#only_in_predefined_roles ⇒ Boolean Also known as: only_in_predefined_roles?
This permission can ONLY be used in predefined roles.
Corresponds to the JSON property onlyInPredefinedRoles
| 472 473 474 | # File 'generated/google/apis/iam_v1/classes.rb', line 472 def only_in_predefined_roles @only_in_predefined_roles end | 
#stage ⇒ String
The current launch stage of the permission.
Corresponds to the JSON property stage
| 478 479 480 | # File 'generated/google/apis/iam_v1/classes.rb', line 478 def stage @stage end | 
#title ⇒ String
The title of this Permission.
Corresponds to the JSON property title
| 483 484 485 | # File 'generated/google/apis/iam_v1/classes.rb', line 483 def title @title end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 490 491 492 493 494 495 496 497 498 | # File 'generated/google/apis/iam_v1/classes.rb', line 490 def update!(**args) @api_disabled = args[:api_disabled] if args.key?(:api_disabled) @custom_roles_support_level = args[:custom_roles_support_level] if args.key?(:custom_roles_support_level) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @only_in_predefined_roles = args[:only_in_predefined_roles] if args.key?(:only_in_predefined_roles) @stage = args[:stage] if args.key?(:stage) @title = args[:title] if args.key?(:title) end |