Reference documentation and code samples for the Compute V1 Client class InstancesSetServiceAccountRequest.
Generated from protobuf message google.cloud.compute.v1.InstancesSetServiceAccountRequest
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
The list of scopes to be made available for this service account. |
getEmail
Email address of the service account.
Generated from protobuf field optional string email = 96619420;
Returns | |
---|---|
Type | Description |
string |
hasEmail
clearEmail
setEmail
Email address of the service account.
Generated from protobuf field optional string email = 96619420;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getScopes
The list of scopes to be made available for this service account.
Generated from protobuf field repeated string scopes = 165973151;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setScopes
The list of scopes to be made available for this service account.
Generated from protobuf field repeated string scopes = 165973151;
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |