Google Cloud Tpu V2 Client - Class ServiceAccount (1.4.5)

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
Name Description
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
Type Description
string

setEmail

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

Parameter
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var string[]
Returns
Type Description
$this