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 |
Creates a ServiceAccountKey and returns it.
See: Identity and Access Management (IAM) API Reference for iam.projects.serviceAccounts.keys.create
.
Synopsis
- type ProjectsServiceAccountsKeysCreateResource = "v1" :> (Capture "name" Text :> ("keys" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateServiceAccountKeyRequest :> Post '[JSON] ServiceAccountKey)))))))))
- projectsServiceAccountsKeysCreate :: CreateServiceAccountKeyRequest -> Text -> ProjectsServiceAccountsKeysCreate
- data ProjectsServiceAccountsKeysCreate
- psakcXgafv :: Lens' ProjectsServiceAccountsKeysCreate (Maybe Xgafv)
- psakcUploadProtocol :: Lens' ProjectsServiceAccountsKeysCreate (Maybe Text)
- psakcAccessToken :: Lens' ProjectsServiceAccountsKeysCreate (Maybe Text)
- psakcUploadType :: Lens' ProjectsServiceAccountsKeysCreate (Maybe Text)
- psakcPayload :: Lens' ProjectsServiceAccountsKeysCreate CreateServiceAccountKeyRequest
- psakcName :: Lens' ProjectsServiceAccountsKeysCreate Text
- psakcCallback :: Lens' ProjectsServiceAccountsKeysCreate (Maybe Text)
REST Resource
type ProjectsServiceAccountsKeysCreateResource = "v1" :> (Capture "name" Text :> ("keys" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateServiceAccountKeyRequest :> Post '[JSON] ServiceAccountKey))))))))) Source #
A resource alias for iam.projects.serviceAccounts.keys.create
method which the
ProjectsServiceAccountsKeysCreate
request conforms to.
Creating a Request
projectsServiceAccountsKeysCreate Source #
Creates a value of ProjectsServiceAccountsKeysCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsServiceAccountsKeysCreate Source #
Creates a ServiceAccountKey and returns it.
See: projectsServiceAccountsKeysCreate
smart constructor.
Instances
Request Lenses
psakcXgafv :: Lens' ProjectsServiceAccountsKeysCreate (Maybe Xgafv) Source #
V1 error format.
psakcUploadProtocol :: Lens' ProjectsServiceAccountsKeysCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
psakcAccessToken :: Lens' ProjectsServiceAccountsKeysCreate (Maybe Text) Source #
OAuth access token.
psakcUploadType :: Lens' ProjectsServiceAccountsKeysCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
psakcPayload :: Lens' ProjectsServiceAccountsKeysCreate CreateServiceAccountKeyRequest Source #
Multipart request metadata.
psakcName :: Lens' ProjectsServiceAccountsKeysCreate 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.