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.organizations.roles.patch
.
Synopsis
- type OrganizationsRolesPatchResource = "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)))))))))
- organizationsRolesPatch :: Role -> Text -> OrganizationsRolesPatch
- data OrganizationsRolesPatch
- orpXgafv :: Lens' OrganizationsRolesPatch (Maybe Xgafv)
- orpUploadProtocol :: Lens' OrganizationsRolesPatch (Maybe Text)
- orpUpdateMask :: Lens' OrganizationsRolesPatch (Maybe GFieldMask)
- orpAccessToken :: Lens' OrganizationsRolesPatch (Maybe Text)
- orpUploadType :: Lens' OrganizationsRolesPatch (Maybe Text)
- orpPayload :: Lens' OrganizationsRolesPatch Role
- orpName :: Lens' OrganizationsRolesPatch Text
- orpCallback :: Lens' OrganizationsRolesPatch (Maybe Text)
REST Resource
type OrganizationsRolesPatchResource = "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.organizations.roles.patch
method which the
OrganizationsRolesPatch
request conforms to.
Creating a Request
organizationsRolesPatch Source #
Creates a value of OrganizationsRolesPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrganizationsRolesPatch Source #
Updates a Role definition.
See: organizationsRolesPatch
smart constructor.
Instances
Request Lenses
orpUploadProtocol :: Lens' OrganizationsRolesPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
orpUpdateMask :: Lens' OrganizationsRolesPatch (Maybe GFieldMask) Source #
A mask describing which fields in the Role have changed.
orpAccessToken :: Lens' OrganizationsRolesPatch (Maybe Text) Source #
OAuth access token.
orpUploadType :: Lens' OrganizationsRolesPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
orpPayload :: Lens' OrganizationsRolesPatch Role Source #
Multipart request metadata.
orpName :: Lens' OrganizationsRolesPatch 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}`
orpCallback :: Lens' OrganizationsRolesPatch (Maybe Text) Source #
JSONP