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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ email |
string
Email address of the service account. If not specified, the default Compute Engine service account for the project will be used. If instance template is being used, the service account has to be specified in the instance template and it has to match the email field here. |
↳ scopes |
array
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default. |
getEmail
Email address of the service account. If not specified, the default Compute Engine service account for the project will be used. If instance template is being used, the service account has to be specified in the instance template and it has to match the email field here.
Returns | |
---|---|
Type | Description |
string |
setEmail
Email address of the service account. If not specified, the default Compute Engine service account for the project will be used. If instance template is being used, the service account has to be specified in the instance template and it has to match the email field here.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getScopes
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setScopes
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |