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 |
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
- 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))))))))
- projectsServiceAccountsSignJwt :: SignJwtRequest -> Text -> ProjectsServiceAccountsSignJwt
- data ProjectsServiceAccountsSignJwt
- psasjXgafv :: Lens' ProjectsServiceAccountsSignJwt (Maybe Xgafv)
- psasjUploadProtocol :: Lens' ProjectsServiceAccountsSignJwt (Maybe Text)
- psasjAccessToken :: Lens' ProjectsServiceAccountsSignJwt (Maybe Text)
- psasjUploadType :: Lens' ProjectsServiceAccountsSignJwt (Maybe Text)
- psasjPayload :: Lens' ProjectsServiceAccountsSignJwt SignJwtRequest
- psasjName :: Lens' ProjectsServiceAccountsSignJwt Text
- psasjCallback :: Lens' ProjectsServiceAccountsSignJwt (Maybe Text)
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
Request Lenses
psasjXgafv :: Lens' ProjectsServiceAccountsSignJwt (Maybe Xgafv) Source #
V1 error format.
psasjUploadProtocol :: Lens' ProjectsServiceAccountsSignJwt (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
psasjAccessToken :: Lens' ProjectsServiceAccountsSignJwt (Maybe Text) Source #
OAuth access token.
psasjUploadType :: Lens' ProjectsServiceAccountsSignJwt (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
psasjPayload :: Lens' ProjectsServiceAccountsSignJwt SignJwtRequest Source #
Multipart request metadata.
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.
psasjCallback :: Lens' ProjectsServiceAccountsSignJwt (Maybe Text) Source #
JSONP