gogol-storage-transfer-0.0.1: Google Storage Transfer SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.StorageTransfer.GoogleServiceAccounts.Get

Contents

Description

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 Developers Console 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.

See: Google Storage Transfer API Reference for storagetransfer.googleServiceAccounts.get.

Synopsis

REST Resource

type GoogleServiceAccountsGetResource = "v1" :> ("googleServiceAccounts" :> (Capture "projectId" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get `[JSON]` GoogleServiceAccount)))))))))) Source

A resource alias for storagetransfer.googleServiceAccounts.get method which the GoogleServiceAccountsGet request conforms to.

Creating a Request

googleServiceAccountsGet Source

Creates a value of GoogleServiceAccountsGet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GoogleServiceAccountsGet Source

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 Developers Console 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.

See: googleServiceAccountsGet smart constructor.

Request Lenses

gsagUploadProtocol :: Lens' GoogleServiceAccountsGet (Maybe Text) Source

Upload protocol for media (e.g. "raw", "multipart").

gsagUploadType :: Lens' GoogleServiceAccountsGet (Maybe Text) Source

Legacy upload protocol for media (e.g. "media", "multipart").

gsagProjectId :: Lens' GoogleServiceAccountsGet Text Source

The ID of the Google Developers Console project that the Google service account is associated with. Required.