Class: Google::Apis::IamV1::CreateServiceAccountRequest
- Inherits:
-
Object
- Object
- Google::Apis::IamV1::CreateServiceAccountRequest
- 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 service account create request.
Instance Attribute Summary collapse
-
#account_id ⇒ String
Required.
-
#service_account ⇒ Google::Apis::IamV1::ServiceAccount
An IAM service account.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateServiceAccountRequest
constructor
A new instance of CreateServiceAccountRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateServiceAccountRequest
Returns a new instance of CreateServiceAccountRequest.
379 380 381 |
# File 'lib/google/apis/iam_v1/classes.rb', line 379 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ String
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
366 367 368 |
# File 'lib/google/apis/iam_v1/classes.rb', line 366 def account_id @account_id end |
#service_account ⇒ Google::Apis::IamV1::ServiceAccount
An IAM service account. A service account is an account for an application or
a virtual machine (VM) instance, not a person. You can use a service account
to call Google APIs. To learn more, read the overview of service accounts. When you create
a service account, you specify the project ID that owns the service account,
as well as a name that must be unique within the project. IAM uses these
values to create an email address that identifies the service account.
Corresponds to the JSON property serviceAccount
377 378 379 |
# File 'lib/google/apis/iam_v1/classes.rb', line 377 def service_account @service_account end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
384 385 386 387 |
# File 'lib/google/apis/iam_v1/classes.rb', line 384 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @service_account = args[:service_account] if args.key?(:service_account) end |