Class: Google::Apis::NotebooksV2::ServiceAccount

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceAccount

Returns a new instance of ServiceAccount.



1319
1320
1321
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1319

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#emailString

Optional. Email address of the service account. Corresponds to the JSON property email

Returns:

  • (String)


1311
1312
1313
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1311

def email
  @email
end

#scopesArray<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

Returns:

  • (Array<String>)


1317
1318
1319
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1317

def scopes
  @scopes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1324
1325
1326
1327
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1324

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