Compute V1 Client - Class ServiceAccount (1.22.1)

Reference documentation and code samples for the Compute V1 Client class ServiceAccount.

A service account.

Generated from protobuf message google.cloud.compute.v1.ServiceAccount

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ emailstring

Email address of the service account.

↳ scopesarray

The list of scopes to be made available for this service account.

getEmail

Email address of the service account.

Returns
TypeDescription
string

hasEmail

clearEmail

setEmail

Email address of the service account.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getScopes

The list of scopes to be made available for this service account.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setScopes

The list of scopes to be made available for this service account.

Parameter
NameDescription
varstring[]
Returns
TypeDescription
$this