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.



145
146
147
# File 'generated/google/apis/iam_v1/classes.rb', line 145

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 1-63 characters long, and match the regular expression a-z to comply with RFC1035. Corresponds to the JSON property accountId

Returns:

  • (String)


131
132
133
# File 'generated/google/apis/iam_v1/classes.rb', line 131

def 
  @account_id
end

#service_accountGoogle::Apis::IamV1::ServiceAccount

A service account in the Identity and Access Management API. To create a service account, you specify the project_id and account_id for the account. The account_id is unique within the project, and used to generate the service account email address and a stable unique id. All other methods can identify accounts using the format "projects/project/serviceAccounts/account". Using '-' as a wildcard for the project, will infer the project from the account. The account value can be the email address or the unique_id of the service account. Corresponds to the JSON property serviceAccount



143
144
145
# File 'generated/google/apis/iam_v1/classes.rb', line 143

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



150
151
152
153
# File 'generated/google/apis/iam_v1/classes.rb', line 150

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