Class: Google::Apis::TpuV2alpha1::ServiceAccount

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/tpu_v2alpha1/classes.rb,
lib/google/apis/tpu_v2alpha1/representations.rb,
lib/google/apis/tpu_v2alpha1/representations.rb

Overview

A service account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceAccount

Returns a new instance of ServiceAccount.



1523
1524
1525
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1523

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

Instance Attribute Details

#emailString

Email address of the service account. If empty, default Compute service account will be used. Corresponds to the JSON property email

Returns:

  • (String)


1515
1516
1517
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1515

def email
  @email
end

#scopeArray<String>

The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed. Corresponds to the JSON property scope

Returns:

  • (Array<String>)


1521
1522
1523
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1521

def scope
  @scope
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1528
1529
1530
1531
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1528

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