gogol-resourcemanager-0.4.0: Google Cloud Resource Manager 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.CloudResourceManager.Folders.Undelete

Contents

Description

Cancels the deletion request for a Folder. This method may only be called on a Folder in the DELETE_REQUESTED state. In order to succeed, the Folder's parent must be in the ACTIVE state. In addition, reintroducing the folder into the tree must not violate folder naming, height and fanout constraints described in the CreateFolder documentation. The caller must have `resourcemanager.folders.undelete` permission on the identified folder.

See: Cloud Resource Manager API Reference for cloudresourcemanager.folders.undelete.

Synopsis

REST Resource

type FoldersUndeleteResource = "v2" :> (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] UndeleteFolderRequest :> Post '[JSON] Folder)))))))) Source #

A resource alias for cloudresourcemanager.folders.undelete method which the FoldersUndelete request conforms to.

Creating a Request

foldersUndelete Source #

Creates a value of FoldersUndelete with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data FoldersUndelete Source #

Cancels the deletion request for a Folder. This method may only be called on a Folder in the DELETE_REQUESTED state. In order to succeed, the Folder's parent must be in the ACTIVE state. In addition, reintroducing the folder into the tree must not violate folder naming, height and fanout constraints described in the CreateFolder documentation. The caller must have `resourcemanager.folders.undelete` permission on the identified folder.

See: foldersUndelete smart constructor.

Instances
Eq FoldersUndelete Source # 
Instance details

Defined in Network.Google.Resource.CloudResourceManager.Folders.Undelete

Data FoldersUndelete Source # 
Instance details

Defined in Network.Google.Resource.CloudResourceManager.Folders.Undelete

Methods

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

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

toConstr :: FoldersUndelete -> Constr #

dataTypeOf :: FoldersUndelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show FoldersUndelete Source # 
Instance details

Defined in Network.Google.Resource.CloudResourceManager.Folders.Undelete

Generic FoldersUndelete Source # 
Instance details

Defined in Network.Google.Resource.CloudResourceManager.Folders.Undelete

Associated Types

type Rep FoldersUndelete :: Type -> Type #

GoogleRequest FoldersUndelete Source # 
Instance details

Defined in Network.Google.Resource.CloudResourceManager.Folders.Undelete

Associated Types

type Rs FoldersUndelete :: Type #

type Scopes FoldersUndelete :: [Symbol] #

type Rep FoldersUndelete Source # 
Instance details

Defined in Network.Google.Resource.CloudResourceManager.Folders.Undelete

type Rep FoldersUndelete = D1 (MetaData "FoldersUndelete" "Network.Google.Resource.CloudResourceManager.Folders.Undelete" "gogol-resourcemanager-0.4.0-UDFVnkFAEA9efzG80swCH" False) (C1 (MetaCons "FoldersUndelete'" PrefixI True) ((S1 (MetaSel (Just "_fuXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_fuUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_fuAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_fuUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_fuPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UndeleteFolderRequest)) :*: (S1 (MetaSel (Just "_fuName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_fuCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes FoldersUndelete Source # 
Instance details

Defined in Network.Google.Resource.CloudResourceManager.Folders.Undelete

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

Defined in Network.Google.Resource.CloudResourceManager.Folders.Undelete

Request Lenses

fuUploadProtocol :: Lens' FoldersUndelete (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

fuUploadType :: Lens' FoldersUndelete (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

fuName :: Lens' FoldersUndelete Text Source #

The resource name of the Folder to undelete. Must be of the form `folders/{folder_id}`.