class Google::Apis::IamV1::CreateRoleRequest

The request to create a new role.

Attributes

role[RW]

A role in the Identity and Access Management API. Corresponds to the JSON property `role` @return [Google::Apis::IamV1::Role]

role_id[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/iam_v1/classes.rb, line 318
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/iam_v1/classes.rb, line 323
def update!(**args)
  @role = args[:role] if args.key?(:role)
  @role_id = args[:role_id] if args.key?(:role_id)
end