Class: Google::Apis::IamV1::CreateServiceAccountRequest

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 service account create request.

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) ⇒ CreateServiceAccountRequest

Returns a new instance of CreateServiceAccountRequest.



434
435
436
# File 'generated/google/apis/iam_v1/classes.rb', line 434

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

Instance Attribute Details

#account_idString

Required. The account id that is used to generate the service account email address and a stable unique id. It is unique within a project, must be 6-30 characters long, and match the regular expression [a-z]([-a-z0-9]*[a-z0-9]) to comply with RFC1035. Corresponds to the JSON property accountId

Returns:

  • (String)


415
416
417
# File 'generated/google/apis/iam_v1/classes.rb', line 415

def 
  @account_id
end

#service_accountGoogle::Apis::IamV1::ServiceAccount

A service account in the Identity and Access Management API. To create a service account, specify the project_id and the account_id for the account. The account_id is unique within the project, and is used to generate the service account email address and a stable unique_id. If the account already exists, the account's resource name is returned in the format of projects/PROJECT_ID/serviceAccounts/ACCOUNT. The caller can use the name in other methods to access the account. All other methods can identify the service account using the format projects/PROJECT_ID/serviceAccounts/ACCOUNT`. Using-as a wildcard for thePROJECT_IDwill infer the project from the account. TheACCOUNTvalue can be theemailaddress or the unique_idof the service account. Corresponds to the JSON propertyserviceAccount`



432
433
434
# File 'generated/google/apis/iam_v1/classes.rb', line 432

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



439
440
441
442
# File 'generated/google/apis/iam_v1/classes.rb', line 439

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