class Google::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.
Attributes
Optional. A user-specified description of the service account. Must be fewer than 100 UTF-8 bytes. Corresponds to the JSON property `displayName` @return [String]
@OutputOnly Email address of the service account. Corresponds to the JSON property `email` @return [String]
Used to perform a consistent read-modify-write. Corresponds to the JSON property `etag` @return [String]
The resource name of the service account in the format “projects/`project`/ serviceAccounts/`account`”. In requests using '-' as a wildcard for the project, will infer the project from the account and the account value can be the email address or the #unique_id of the service account. In responses the resource name will always be in the format “projects/`project`/serviceAccounts/ `email`”. Corresponds to the JSON property `name` @return [String]
@OutputOnly. The OAuth2 client id for the service account. This is used in conjunction with the OAuth2 clientconfig API to make three legged OAuth2 (3LO) flows to access the data of Google users. Corresponds to the JSON property `oauth2ClientId` @return [String]
@OutputOnly The id of the project that owns the service account. Corresponds to the JSON property `projectId` @return [String]
@OutputOnly unique and stable id of the service account. Corresponds to the JSON property `uniqueId` @return [String]
Public Class Methods
# File generated/google/apis/iam_v1/classes.rb, line 105 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/iam_v1/classes.rb, line 110 def update!(**args) @name = args[:name] if args.key?(:name) @project_id = args[:project_id] if args.key?(:project_id) @unique_id = args[:unique_id] if args.key?(:unique_id) @email = args[:email] if args.key?(:email) @display_name = args[:display_name] if args.key?(:display_name) @etag = args[:etag] if args.key?(:etag) @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id) end