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 |
Undelete a Role, bringing it back in its previous state.
See: Identity and Access Management (IAM) API Reference for iam.organizations.roles.undelete
.
Synopsis
- type OrganizationsRolesUndeleteResource = "v1" :> (CaptureMode "name" "undelete" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UndeleteRoleRequest :> Post '[JSON] Role))))))))
- organizationsRolesUndelete :: UndeleteRoleRequest -> Text -> OrganizationsRolesUndelete
- data OrganizationsRolesUndelete
- oruXgafv :: Lens' OrganizationsRolesUndelete (Maybe Xgafv)
- oruUploadProtocol :: Lens' OrganizationsRolesUndelete (Maybe Text)
- oruAccessToken :: Lens' OrganizationsRolesUndelete (Maybe Text)
- oruUploadType :: Lens' OrganizationsRolesUndelete (Maybe Text)
- oruPayload :: Lens' OrganizationsRolesUndelete UndeleteRoleRequest
- oruName :: Lens' OrganizationsRolesUndelete Text
- oruCallback :: Lens' OrganizationsRolesUndelete (Maybe Text)
REST Resource
type OrganizationsRolesUndeleteResource = "v1" :> (CaptureMode "name" "undelete" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UndeleteRoleRequest :> Post '[JSON] Role)))))))) Source #
A resource alias for iam.organizations.roles.undelete
method which the
OrganizationsRolesUndelete
request conforms to.
Creating a Request
organizationsRolesUndelete Source #
Creates a value of OrganizationsRolesUndelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrganizationsRolesUndelete Source #
Undelete a Role, bringing it back in its previous state.
See: organizationsRolesUndelete
smart constructor.
Instances
Request Lenses
oruUploadProtocol :: Lens' OrganizationsRolesUndelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
oruAccessToken :: Lens' OrganizationsRolesUndelete (Maybe Text) Source #
OAuth access token.
oruUploadType :: Lens' OrganizationsRolesUndelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
oruPayload :: Lens' OrganizationsRolesUndelete UndeleteRoleRequest Source #
Multipart request metadata.
oruName :: Lens' OrganizationsRolesUndelete Text Source #
The resource name of the role in one of the following formats: `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` `projects/{PROJECT_ID}/roles/{ROLE_NAME}`
oruCallback :: Lens' OrganizationsRolesUndelete (Maybe Text) Source #
JSONP