Class: Google::Apis::NotebooksV2::ServiceAccount
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV2::ServiceAccount
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/notebooks_v2/classes.rb,
lib/google/apis/notebooks_v2/representations.rb,
lib/google/apis/notebooks_v2/representations.rb
Overview
A service account that acts as an identity.
Instance Attribute Summary collapse
-
#email ⇒ String
Optional.
-
#scopes ⇒ Array<String>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceAccount
constructor
A new instance of ServiceAccount.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServiceAccount
Returns a new instance of ServiceAccount.
1394 1395 1396 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1394 def initialize(**args) update!(**args) end |
Instance Attribute Details
#email ⇒ String
Optional. Email address of the service account.
Corresponds to the JSON property email
1386 1387 1388 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1386 def email @email end |
#scopes ⇒ Array<String>
Output only. The list of scopes to be made available for this service account.
Set by the CLH to https://www.googleapis.com/auth/cloud-platform
Corresponds to the JSON property scopes
1392 1393 1394 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1392 def scopes @scopes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1399 1400 1401 1402 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1399 def update!(**args) @email = args[:email] if args.key?(:email) @scopes = args[:scopes] if args.key?(:scopes) end |