Google Cloud Tpu V2 Client - Class ServiceAccount (1.3.2)

Reference documentation and code samples for the Google Cloud Tpu V2 Client class ServiceAccount.

A service account.

Generated from protobuf message google.cloud.tpu.v2.ServiceAccount

Namespace

Google \ Cloud \ Tpu \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ email string

Email address of the service account. If empty, default Compute service account will be used.

↳ scope array

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

getEmail

Email address of the service account. If empty, default Compute service account will be used.

Returns
TypeDescription
string

setEmail

Email address of the service account. If empty, default Compute service account will be used.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getScope

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setScope

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this