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

Copyright(c) 2015-2016 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.GetGoogleServiceAccount

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.getGoogleServiceAccount.

Synopsis

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.

Instances

Eq GetGoogleServiceAccount Source # 
Data GetGoogleServiceAccount Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetGoogleServiceAccount -> c GetGoogleServiceAccount #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetGoogleServiceAccount #

toConstr :: GetGoogleServiceAccount -> Constr #

dataTypeOf :: GetGoogleServiceAccount -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetGoogleServiceAccount) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetGoogleServiceAccount) #

gmapT :: (forall b. Data b => b -> b) -> GetGoogleServiceAccount -> GetGoogleServiceAccount #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetGoogleServiceAccount -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetGoogleServiceAccount -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetGoogleServiceAccount -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetGoogleServiceAccount -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetGoogleServiceAccount -> m GetGoogleServiceAccount #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetGoogleServiceAccount -> m GetGoogleServiceAccount #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetGoogleServiceAccount -> m GetGoogleServiceAccount #

Show GetGoogleServiceAccount Source # 
Generic GetGoogleServiceAccount Source # 
GoogleRequest GetGoogleServiceAccount Source # 
type Rep GetGoogleServiceAccount Source # 
type Rep GetGoogleServiceAccount = D1 (MetaData "GetGoogleServiceAccount" "Network.Google.Resource.StorageTransfer.GetGoogleServiceAccount" "gogol-storage-transfer-0.2.0-9fWqh11WzkdG2THAhwMSDN" False) (C1 (MetaCons "GetGoogleServiceAccount'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ggsaXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ggsaUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_ggsaPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_ggsaAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ggsaUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ggsaBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_ggsaProjectId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ggsaCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes GetGoogleServiceAccount Source # 
type Scopes GetGoogleServiceAccount = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ([] Symbol)
type Rs GetGoogleServiceAccount Source # 

Request Lenses

ggsaUploadProtocol :: Lens' GetGoogleServiceAccount (Maybe Text) Source #

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

ggsaPp :: Lens' GetGoogleServiceAccount Bool Source #

Pretty-print response.

ggsaUploadType :: Lens' GetGoogleServiceAccount (Maybe Text) Source #

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

ggsaProjectId :: Lens' GetGoogleServiceAccount (Maybe Text) Source #

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