gogol-iam-0.4.0: Google Identity and Access Management (IAM) 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.IAM.Projects.ServiceAccounts.SignJwt

Contents

Description

Signs a JWT using a service account's system-managed private key. If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an an expiry time of one hour by default. If you request an expiry time of more than one hour, the request will fail.

See: Identity and Access Management (IAM) API Reference for iam.projects.serviceAccounts.signJwt.

Synopsis

REST Resource

type ProjectsServiceAccountsSignJwtResource = "v1" :> (CaptureMode "name" "signJwt" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SignJwtRequest :> Post '[JSON] SignJwtResponse)))))))) Source #

A resource alias for iam.projects.serviceAccounts.signJwt method which the ProjectsServiceAccountsSignJwt request conforms to.

Creating a Request

projectsServiceAccountsSignJwt Source #

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

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

data ProjectsServiceAccountsSignJwt Source #

Signs a JWT using a service account's system-managed private key. If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an an expiry time of one hour by default. If you request an expiry time of more than one hour, the request will fail.

See: projectsServiceAccountsSignJwt smart constructor.

Instances
Eq ProjectsServiceAccountsSignJwt Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.SignJwt

Data ProjectsServiceAccountsSignJwt Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.SignJwt

Methods

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

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

toConstr :: ProjectsServiceAccountsSignJwt -> Constr #

dataTypeOf :: ProjectsServiceAccountsSignJwt -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsServiceAccountsSignJwt Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.SignJwt

Generic ProjectsServiceAccountsSignJwt Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.SignJwt

Associated Types

type Rep ProjectsServiceAccountsSignJwt :: Type -> Type #

GoogleRequest ProjectsServiceAccountsSignJwt Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.SignJwt

type Rep ProjectsServiceAccountsSignJwt Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.SignJwt

type Rep ProjectsServiceAccountsSignJwt = D1 (MetaData "ProjectsServiceAccountsSignJwt" "Network.Google.Resource.IAM.Projects.ServiceAccounts.SignJwt" "gogol-iam-0.4.0-IBWwIZHvdU38fPF72JMuUn" False) (C1 (MetaCons "ProjectsServiceAccountsSignJwt'" PrefixI True) ((S1 (MetaSel (Just "_psasjXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_psasjUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_psasjAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_psasjUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_psasjPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SignJwtRequest)) :*: (S1 (MetaSel (Just "_psasjName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_psasjCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsServiceAccountsSignJwt Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.SignJwt

type Scopes ProjectsServiceAccountsSignJwt = "https://www.googleapis.com/auth/cloud-platform" ': ([] :: [Symbol])
type Rs ProjectsServiceAccountsSignJwt Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.SignJwt

Request Lenses

psasjUploadProtocol :: Lens' ProjectsServiceAccountsSignJwt (Maybe Text) Source #

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

psasjUploadType :: Lens' ProjectsServiceAccountsSignJwt (Maybe Text) Source #

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

psasjName :: Lens' ProjectsServiceAccountsSignJwt Text Source #

The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account.