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 |
Updates a ServiceAccount. Currently, only the following fields are updatable: `display_name` . The `etag` is mandatory.
See: Identity and Access Management (IAM) API Reference for iam.projects.serviceAccounts.update
.
Synopsis
- type ProjectsServiceAccountsUpdateResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ServiceAccount :> Put '[JSON] ServiceAccount))))))))
- projectsServiceAccountsUpdate :: ServiceAccount -> Text -> ProjectsServiceAccountsUpdate
- data ProjectsServiceAccountsUpdate
- psauXgafv :: Lens' ProjectsServiceAccountsUpdate (Maybe Xgafv)
- psauUploadProtocol :: Lens' ProjectsServiceAccountsUpdate (Maybe Text)
- psauAccessToken :: Lens' ProjectsServiceAccountsUpdate (Maybe Text)
- psauUploadType :: Lens' ProjectsServiceAccountsUpdate (Maybe Text)
- psauPayload :: Lens' ProjectsServiceAccountsUpdate ServiceAccount
- psauName :: Lens' ProjectsServiceAccountsUpdate Text
- psauCallback :: Lens' ProjectsServiceAccountsUpdate (Maybe Text)
REST Resource
type ProjectsServiceAccountsUpdateResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ServiceAccount :> Put '[JSON] ServiceAccount)))))))) Source #
A resource alias for iam.projects.serviceAccounts.update
method which the
ProjectsServiceAccountsUpdate
request conforms to.
Creating a Request
projectsServiceAccountsUpdate Source #
Creates a value of ProjectsServiceAccountsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsServiceAccountsUpdate Source #
Updates a ServiceAccount. Currently, only the following fields are updatable: `display_name` . The `etag` is mandatory.
See: projectsServiceAccountsUpdate
smart constructor.
Instances
Request Lenses
psauUploadProtocol :: Lens' ProjectsServiceAccountsUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
psauAccessToken :: Lens' ProjectsServiceAccountsUpdate (Maybe Text) Source #
OAuth access token.
psauUploadType :: Lens' ProjectsServiceAccountsUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
psauPayload :: Lens' ProjectsServiceAccountsUpdate ServiceAccount Source #
Multipart request metadata.
psauName :: Lens' ProjectsServiceAccountsUpdate Text Source #
The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Requests using `-` as a wildcard for the `PROJECT_ID` will infer the project from the `account` and the `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. In responses the resource name will always be in the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
psauCallback :: Lens' ProjectsServiceAccountsUpdate (Maybe Text) Source #
JSONP