Class: Google::Apis::IamV1::PatchServiceAccountRequest
- Inherits:
-
Object
- Object
- Google::Apis::IamV1::PatchServiceAccountRequest
- 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 patch service account request.
Instance Attribute Summary collapse
-
#service_account ⇒ Google::Apis::IamV1::ServiceAccount
A service account in the Identity and Access Management API.
-
#update_mask ⇒ String
Corresponds to the JSON property
updateMask
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PatchServiceAccountRequest
constructor
A new instance of PatchServiceAccountRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PatchServiceAccountRequest
Returns a new instance of PatchServiceAccountRequest
724 725 726 |
# File 'generated/google/apis/iam_v1/classes.rb', line 724 def initialize(**args) update!(**args) end |
Instance Attribute Details
#service_account ⇒ Google::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 the
PROJECT_IDwill infer the project from
the account. The
ACCOUNTvalue can be the
emailaddress or the
unique_idof the service account.
Corresponds to the JSON property
serviceAccount`
717 718 719 |
# File 'generated/google/apis/iam_v1/classes.rb', line 717 def service_account @service_account end |
#update_mask ⇒ String
Corresponds to the JSON property updateMask
722 723 724 |
# File 'generated/google/apis/iam_v1/classes.rb', line 722 def update_mask @update_mask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
729 730 731 732 |
# File 'generated/google/apis/iam_v1/classes.rb', line 729 def update!(**args) @service_account = args[:service_account] if args.key?(:service_account) @update_mask = args[:update_mask] if args.key?(:update_mask) end |