Class: Google::Apis::IamV1::CreateRoleRequest
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::IamV1::CreateRoleRequest
 
- 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
The request to create a new role.
Instance Attribute Summary collapse
- 
  
    
      #role  ⇒ Google::Apis::IamV1::Role 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A role in the Identity and Access Management API. 
- 
  
    
      #role_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The role id to use for this role. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CreateRoleRequest 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CreateRoleRequest. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CreateRoleRequest
Returns a new instance of CreateRoleRequest
| 273 274 275 | # File 'generated/google/apis/iam_v1/classes.rb', line 273 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#role ⇒ Google::Apis::IamV1::Role
A role in the Identity and Access Management API.
Corresponds to the JSON property role
| 266 267 268 | # File 'generated/google/apis/iam_v1/classes.rb', line 266 def role @role end | 
#role_id ⇒ String
The role id to use for this role.
Corresponds to the JSON property roleId
| 271 272 273 | # File 'generated/google/apis/iam_v1/classes.rb', line 271 def role_id @role_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 278 279 280 281 | # File 'generated/google/apis/iam_v1/classes.rb', line 278 def update!(**args) @role = args[:role] if args.key?(:role) @role_id = args[:role_id] if args.key?(:role_id) end |