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

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

Overview

The request to create a new role.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateRoleRequest

Returns a new instance of CreateRoleRequest.



377
378
379
# File 'lib/google/apis/iam_v1/classes.rb', line 377

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



368
369
370
# File 'lib/google/apis/iam_v1/classes.rb', line 368

def role
  @role
end

#role_idString

The role ID to use for this role. A role ID may contain alphanumeric characters, underscores (_), and periods (.). It must contain a minimum of 3 characters and a maximum of 64 characters. Corresponds to the JSON property roleId

Returns:

  • (String)


375
376
377
# File 'lib/google/apis/iam_v1/classes.rb', line 375

def role_id
  @role_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



382
383
384
385
# File 'lib/google/apis/iam_v1/classes.rb', line 382

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