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 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.getGoogleServiceAccount
.
- type GetGoogleServiceAccountResource = "v1:getGoogleServiceAccount" :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "projectId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GoogleServiceAccount)))))))))
- getGoogleServiceAccount :: GetGoogleServiceAccount
- data GetGoogleServiceAccount
- ggsaXgafv :: Lens' GetGoogleServiceAccount (Maybe Text)
- ggsaUploadProtocol :: Lens' GetGoogleServiceAccount (Maybe Text)
- ggsaPp :: Lens' GetGoogleServiceAccount Bool
- ggsaAccessToken :: Lens' GetGoogleServiceAccount (Maybe Text)
- ggsaUploadType :: Lens' GetGoogleServiceAccount (Maybe Text)
- ggsaBearerToken :: Lens' GetGoogleServiceAccount (Maybe Text)
- ggsaProjectId :: Lens' GetGoogleServiceAccount (Maybe Text)
- ggsaCallback :: Lens' GetGoogleServiceAccount (Maybe Text)
REST Resource
type GetGoogleServiceAccountResource = "v1:getGoogleServiceAccount" :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "projectId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GoogleServiceAccount))))))))) Source #
A resource alias for storagetransfer.getGoogleServiceAccount
method which the
GetGoogleServiceAccount
request conforms to.
Creating a Request
getGoogleServiceAccount :: GetGoogleServiceAccount Source #
Creates a value of GetGoogleServiceAccount
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetGoogleServiceAccount 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: getGoogleServiceAccount
smart constructor.
Request Lenses
ggsaUploadProtocol :: Lens' GetGoogleServiceAccount (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ggsaAccessToken :: Lens' GetGoogleServiceAccount (Maybe Text) Source #
OAuth access token.
ggsaUploadType :: Lens' GetGoogleServiceAccount (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ggsaBearerToken :: Lens' GetGoogleServiceAccount (Maybe Text) Source #
OAuth bearer token.
ggsaProjectId :: Lens' GetGoogleServiceAccount (Maybe Text) Source #
The ID of the Google Developers Console project that the Google service account is associated with. Required.
ggsaCallback :: Lens' GetGoogleServiceAccount (Maybe Text) Source #
JSONP