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 |
Soft deletes a role. The role is suspended and cannot be used to create new IAM Policy Bindings. The Role will not be included in `ListRoles()` unless `show_deleted` is set in the `ListRolesRequest`. The Role contains the deleted boolean set. Existing Bindings remains, but are inactive. The Role can be undeleted within 7 days. After 7 days the Role is deleted and all Bindings associated with the role are removed.
See: Identity and Access Management (IAM) API Reference for iam.projects.roles.delete
.
Synopsis
- type ProjectsRolesDeleteResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "etag" Bytes :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Role))))))))
- projectsRolesDelete :: Text -> ProjectsRolesDelete
- data ProjectsRolesDelete
- prdXgafv :: Lens' ProjectsRolesDelete (Maybe Xgafv)
- prdEtag :: Lens' ProjectsRolesDelete (Maybe ByteString)
- prdUploadProtocol :: Lens' ProjectsRolesDelete (Maybe Text)
- prdAccessToken :: Lens' ProjectsRolesDelete (Maybe Text)
- prdUploadType :: Lens' ProjectsRolesDelete (Maybe Text)
- prdName :: Lens' ProjectsRolesDelete Text
- prdCallback :: Lens' ProjectsRolesDelete (Maybe Text)
REST Resource
type ProjectsRolesDeleteResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "etag" Bytes :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Role)))))))) Source #
A resource alias for iam.projects.roles.delete
method which the
ProjectsRolesDelete
request conforms to.
Creating a Request
Creates a value of ProjectsRolesDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsRolesDelete Source #
Soft deletes a role. The role is suspended and cannot be used to create new IAM Policy Bindings. The Role will not be included in `ListRoles()` unless `show_deleted` is set in the `ListRolesRequest`. The Role contains the deleted boolean set. Existing Bindings remains, but are inactive. The Role can be undeleted within 7 days. After 7 days the Role is deleted and all Bindings associated with the role are removed.
See: projectsRolesDelete
smart constructor.
Instances
Request Lenses
prdEtag :: Lens' ProjectsRolesDelete (Maybe ByteString) Source #
Used to perform a consistent read-modify-write.
prdUploadProtocol :: Lens' ProjectsRolesDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prdAccessToken :: Lens' ProjectsRolesDelete (Maybe Text) Source #
OAuth access token.
prdUploadType :: Lens' ProjectsRolesDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prdName :: Lens' ProjectsRolesDelete 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}`
prdCallback :: Lens' ProjectsRolesDelete (Maybe Text) Source #
JSONP