Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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 Platform 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: Storage Transfer API Reference for storagetransfer.googleServiceAccounts.get
.
Synopsis
- type GoogleServiceAccountsGetResource = "v1" :> ("googleServiceAccounts" :> (Capture "projectId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GoogleServiceAccount))))))))
- googleServiceAccountsGet :: Text -> GoogleServiceAccountsGet
- data GoogleServiceAccountsGet
- gsagXgafv :: Lens' GoogleServiceAccountsGet (Maybe Xgafv)
- gsagUploadProtocol :: Lens' GoogleServiceAccountsGet (Maybe Text)
- gsagAccessToken :: Lens' GoogleServiceAccountsGet (Maybe Text)
- gsagUploadType :: Lens' GoogleServiceAccountsGet (Maybe Text)
- gsagProjectId :: Lens' GoogleServiceAccountsGet Text
- gsagCallback :: Lens' GoogleServiceAccountsGet (Maybe Text)
REST Resource
type GoogleServiceAccountsGetResource = "v1" :> ("googleServiceAccounts" :> (Capture "projectId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" 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 Cloud Platform 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.
Instances
Request Lenses
gsagUploadProtocol :: Lens' GoogleServiceAccountsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
gsagAccessToken :: Lens' GoogleServiceAccountsGet (Maybe Text) Source #
OAuth access token.
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 Cloud Platform Console project that the Google service account is associated with. Required.
gsagCallback :: Lens' GoogleServiceAccountsGet (Maybe Text) Source #
JSONP