Reference documentation and code samples for the Google Cloud Notebooks V2 Client class ServiceAccount.
A service account that acts as an identity.
Generated from protobuf message google.cloud.notebooks.v2.ServiceAccount
Namespace
Google \ Cloud \ Notebooks \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
data | 
        
          array
          Optional. Data for populating the Message object.  | 
      
↳ email | 
        
          string
          Optional. Email address of the service account.  | 
      
↳ scopes | 
        
          array
          Output only. The list of scopes to be made available for this service account. Set by the CLH to https://www.googleapis.com/auth/cloud-platform  | 
      
getEmail
Optional. Email address of the service account.
| Returns | |
|---|---|
| Type | Description | 
string | 
        |
setEmail
Optional. Email address of the service account.
| Parameter | |
|---|---|
| Name | Description | 
var | 
        
          string
           | 
      
| Returns | |
|---|---|
| Type | Description | 
$this | 
        |
getScopes
Output only. The list of scopes to be made available for this service account. Set by the CLH to https://www.googleapis.com/auth/cloud-platform
| Returns | |
|---|---|
| Type | Description | 
Google\Protobuf\Internal\RepeatedField | 
        |
setScopes
Output only. The list of scopes to be made available for this service account. Set by the CLH to https://www.googleapis.com/auth/cloud-platform
| Parameter | |
|---|---|
| Name | Description | 
var | 
        
          string[]
           | 
      
| Returns | |
|---|---|
| Type | Description | 
$this | 
        |