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 Role definition.
See: Identity and Access Management (IAM) API Reference for iam.projects.roles.patch
.
Synopsis
- type ProjectsRolesPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Role :> Patch '[JSON] Role)))))))))
- projectsRolesPatch :: Role -> Text -> ProjectsRolesPatch
- data ProjectsRolesPatch
- prpXgafv :: Lens' ProjectsRolesPatch (Maybe Xgafv)
- prpUploadProtocol :: Lens' ProjectsRolesPatch (Maybe Text)
- prpUpdateMask :: Lens' ProjectsRolesPatch (Maybe GFieldMask)
- prpAccessToken :: Lens' ProjectsRolesPatch (Maybe Text)
- prpUploadType :: Lens' ProjectsRolesPatch (Maybe Text)
- prpPayload :: Lens' ProjectsRolesPatch Role
- prpName :: Lens' ProjectsRolesPatch Text
- prpCallback :: Lens' ProjectsRolesPatch (Maybe Text)
REST Resource
type ProjectsRolesPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Role :> Patch '[JSON] Role))))))))) Source #
A resource alias for iam.projects.roles.patch
method which the
ProjectsRolesPatch
request conforms to.
Creating a Request
Creates a value of ProjectsRolesPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsRolesPatch Source #
Updates a Role definition.
See: projectsRolesPatch
smart constructor.
Instances
Request Lenses
prpUploadProtocol :: Lens' ProjectsRolesPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prpUpdateMask :: Lens' ProjectsRolesPatch (Maybe GFieldMask) Source #
A mask describing which fields in the Role have changed.
prpAccessToken :: Lens' ProjectsRolesPatch (Maybe Text) Source #
OAuth access token.
prpUploadType :: Lens' ProjectsRolesPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prpPayload :: Lens' ProjectsRolesPatch Role Source #
Multipart request metadata.
prpName :: Lens' ProjectsRolesPatch Text Source #
The resource name of the role in one of the following formats: `roles/{ROLE_NAME}` `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` `projects/{PROJECT_ID}/roles/{ROLE_NAME}`
prpCallback :: Lens' ProjectsRolesPatch (Maybe Text) Source #
JSONP