gogol-iam-0.5.0: Google Identity and Access Management (IAM) SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.IAM.Projects.Roles.Delete

Contents

Description

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

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

projectsRolesDelete Source #

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
Eq ProjectsRolesDelete Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.Roles.Delete

Data ProjectsRolesDelete Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.Roles.Delete

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsRolesDelete -> c ProjectsRolesDelete #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsRolesDelete #

toConstr :: ProjectsRolesDelete -> Constr #

dataTypeOf :: ProjectsRolesDelete -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsRolesDelete) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsRolesDelete) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsRolesDelete -> ProjectsRolesDelete #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsRolesDelete -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsRolesDelete -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsRolesDelete -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsRolesDelete -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsRolesDelete -> m ProjectsRolesDelete #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsRolesDelete -> m ProjectsRolesDelete #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsRolesDelete -> m ProjectsRolesDelete #

Show ProjectsRolesDelete Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.Roles.Delete

Generic ProjectsRolesDelete Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.Roles.Delete

Associated Types

type Rep ProjectsRolesDelete :: Type -> Type #

GoogleRequest ProjectsRolesDelete Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.Roles.Delete

Associated Types

type Rs ProjectsRolesDelete :: Type #

type Scopes ProjectsRolesDelete :: [Symbol] #

type Rep ProjectsRolesDelete Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.Roles.Delete

type Rep ProjectsRolesDelete = D1 (MetaData "ProjectsRolesDelete" "Network.Google.Resource.IAM.Projects.Roles.Delete" "gogol-iam-0.5.0-AhgHzkqUbFwIp2TGTeE7eX" False) (C1 (MetaCons "ProjectsRolesDelete'" PrefixI True) ((S1 (MetaSel (Just "_prdXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_prdEtag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bytes)) :*: S1 (MetaSel (Just "_prdUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_prdAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_prdUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_prdName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_prdCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsRolesDelete Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.Roles.Delete

type Scopes ProjectsRolesDelete = "https://www.googleapis.com/auth/cloud-platform" ': ([] :: [Symbol])
type Rs ProjectsRolesDelete Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.Roles.Delete

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").

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}`