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 ServiceAccount and returns it.
See: Identity and Access Management (IAM) API Reference for iam.projects.serviceAccounts.create
.
Synopsis
- type ProjectsServiceAccountsCreateResource = "v1" :> (Capture "name" Text :> ("serviceAccounts" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateServiceAccountRequest :> Post '[JSON] ServiceAccount)))))))))
- projectsServiceAccountsCreate :: CreateServiceAccountRequest -> Text -> ProjectsServiceAccountsCreate
- data ProjectsServiceAccountsCreate
- psacXgafv :: Lens' ProjectsServiceAccountsCreate (Maybe Xgafv)
- psacUploadProtocol :: Lens' ProjectsServiceAccountsCreate (Maybe Text)
- psacAccessToken :: Lens' ProjectsServiceAccountsCreate (Maybe Text)
- psacUploadType :: Lens' ProjectsServiceAccountsCreate (Maybe Text)
- psacPayload :: Lens' ProjectsServiceAccountsCreate CreateServiceAccountRequest
- psacName :: Lens' ProjectsServiceAccountsCreate Text
- psacCallback :: Lens' ProjectsServiceAccountsCreate (Maybe Text)
REST Resource
type ProjectsServiceAccountsCreateResource = "v1" :> (Capture "name" Text :> ("serviceAccounts" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateServiceAccountRequest :> Post '[JSON] ServiceAccount))))))))) Source #
A resource alias for iam.projects.serviceAccounts.create
method which the
ProjectsServiceAccountsCreate
request conforms to.
Creating a Request
projectsServiceAccountsCreate Source #
Creates a value of ProjectsServiceAccountsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsServiceAccountsCreate Source #
Creates a ServiceAccount and returns it.
See: projectsServiceAccountsCreate
smart constructor.
Instances
Request Lenses
psacUploadProtocol :: Lens' ProjectsServiceAccountsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
psacAccessToken :: Lens' ProjectsServiceAccountsCreate (Maybe Text) Source #
OAuth access token.
psacUploadType :: Lens' ProjectsServiceAccountsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
psacPayload :: Lens' ProjectsServiceAccountsCreate CreateServiceAccountRequest Source #
Multipart request metadata.
psacName :: Lens' ProjectsServiceAccountsCreate Text Source #
Required. The resource name of the project associated with the service accounts, such as `projects/my-project-123`.
psacCallback :: Lens' ProjectsServiceAccountsCreate (Maybe Text) Source #
JSONP