Class GoogleServiceAccountsResource
The "googleServiceAccounts" collection of methods.
Inherited Members
Namespace: Google.Apis.Storagetransfer.v1
Assembly: Google.Apis.Storagetransfer.v1.dll
Syntax
public class GoogleServiceAccountsResource
Constructors
GoogleServiceAccountsResource(IClientService)
Constructs a new resource.
Declaration
public GoogleServiceAccountsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Get(string)
Returns the Google service account that is used by Storage Transfer Service to access buckets in the project where transfers run or in other projects. Each Google service account is associated with one Google Cloud project. Users should add this service account to the Google Cloud Storage bucket ACLs to grant access to Storage Transfer Service. This service account is created and owned by Storage Transfer Service and can only be used by Storage Transfer Service.
Declaration
public virtual GoogleServiceAccountsResource.GetRequest Get(string projectId)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | Required. The ID of the Google Cloud project that the Google service account is associated with. |
Returns
Type | Description |
---|---|
GoogleServiceAccountsResource.GetRequest |