Google Cloud Batch V1 Client - Class ServiceAccount (0.16.6)

Reference documentation and code samples for the Google Cloud Batch V1 Client class ServiceAccount.

Carries information about a Google Cloud service account.

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

Namespace

Google \ Cloud \ Batch \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ email string

Email address of the service account.

↳ scopes array

List of scopes to be enabled for this service account.

getEmail

Email address of the service account.

Returns
Type Description
string

setEmail

Email address of the service account.

Parameter
Name Description
var string
Returns
Type Description
$this

getScopes

List of scopes to be enabled for this service account.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setScopes

List of scopes to be enabled for this service account.

Parameter
Name Description
var string[]
Returns
Type Description
$this