Class: Google::Apis::IamV1::CreateRoleRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CreateRoleRequest

Returns a new instance of CreateRoleRequest



274
275
276
# File 'generated/google/apis/iam_v1/classes.rb', line 274

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

Instance Attribute Details

#roleGoogle::Apis::IamV1::Role

A role in the Identity and Access Management API. Corresponds to the JSON property role



267
268
269
# File 'generated/google/apis/iam_v1/classes.rb', line 267

def role
  @role
end

#role_idString

The role id to use for this role. Corresponds to the JSON property roleId

Returns:

  • (String)


272
273
274
# File 'generated/google/apis/iam_v1/classes.rb', line 272

def role_id
  @role_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



279
280
281
282
# File 'generated/google/apis/iam_v1/classes.rb', line 279

def update!(**args)
  @role = args[:role] if args.key?(:role)
  @role_id = args[:role_id] if args.key?(:role_id)
end