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 |
Patches a ServiceAccount. Currently, only the following fields are updatable: `display_name` and `description`. Only fields specified in the request are guaranteed to be returned in the response. Other fields in the response may be empty. Note: The field mask is required.
See: Identity and Access Management (IAM) API Reference for iam.projects.serviceAccounts.patch
.
Synopsis
- type ProjectsServiceAccountsPatchResource = "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] PatchServiceAccountRequest :> Patch '[JSON] ServiceAccount))))))))
- projectsServiceAccountsPatch :: PatchServiceAccountRequest -> Text -> ProjectsServiceAccountsPatch
- data ProjectsServiceAccountsPatch
- psapXgafv :: Lens' ProjectsServiceAccountsPatch (Maybe Xgafv)
- psapUploadProtocol :: Lens' ProjectsServiceAccountsPatch (Maybe Text)
- psapAccessToken :: Lens' ProjectsServiceAccountsPatch (Maybe Text)
- psapUploadType :: Lens' ProjectsServiceAccountsPatch (Maybe Text)
- psapPayload :: Lens' ProjectsServiceAccountsPatch PatchServiceAccountRequest
- psapName :: Lens' ProjectsServiceAccountsPatch Text
- psapCallback :: Lens' ProjectsServiceAccountsPatch (Maybe Text)
REST Resource
type ProjectsServiceAccountsPatchResource = "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] PatchServiceAccountRequest :> Patch '[JSON] ServiceAccount)))))))) Source #
A resource alias for iam.projects.serviceAccounts.patch
method which the
ProjectsServiceAccountsPatch
request conforms to.
Creating a Request
projectsServiceAccountsPatch Source #
Creates a value of ProjectsServiceAccountsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsServiceAccountsPatch Source #
Patches a ServiceAccount. Currently, only the following fields are updatable: `display_name` and `description`. Only fields specified in the request are guaranteed to be returned in the response. Other fields in the response may be empty. Note: The field mask is required.
See: projectsServiceAccountsPatch
smart constructor.
Instances
Request Lenses
psapUploadProtocol :: Lens' ProjectsServiceAccountsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
psapAccessToken :: Lens' ProjectsServiceAccountsPatch (Maybe Text) Source #
OAuth access token.
psapUploadType :: Lens' ProjectsServiceAccountsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
psapPayload :: Lens' ProjectsServiceAccountsPatch PatchServiceAccountRequest Source #
Multipart request metadata.
psapName :: Lens' ProjectsServiceAccountsPatch 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}`.
psapCallback :: Lens' ProjectsServiceAccountsPatch (Maybe Text) Source #
JSONP