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.Patch

Contents

Description

Updates a Folder, changing its display_name. Changes to the folder display_name will be rejected if they violate either the display_name formatting rules or naming constraints described in the CreateFolder documentation. The Folder's display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression: [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?. The caller must have `resourcemanager.folders.update` permission on the identified folder. If the update fails due to the unique name constraint then a PreconditionFailure explaining this violation will be returned in the Status.details field.

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

Synopsis

REST Resource

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

A resource alias for cloudresourcemanager.folders.patch method which the FoldersPatch request conforms to.

Creating a Request

foldersPatch Source #

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

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

data FoldersPatch Source #

Updates a Folder, changing its display_name. Changes to the folder display_name will be rejected if they violate either the display_name formatting rules or naming constraints described in the CreateFolder documentation. The Folder's display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression: [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?. The caller must have `resourcemanager.folders.update` permission on the identified folder. If the update fails due to the unique name constraint then a PreconditionFailure explaining this violation will be returned in the Status.details field.

See: foldersPatch smart constructor.

Instances
Eq FoldersPatch Source # 
Instance details

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

Data FoldersPatch Source # 
Instance details

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

Methods

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

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

toConstr :: FoldersPatch -> Constr #

dataTypeOf :: FoldersPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show FoldersPatch Source # 
Instance details

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

Generic FoldersPatch Source # 
Instance details

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

Associated Types

type Rep FoldersPatch :: Type -> Type #

GoogleRequest FoldersPatch Source # 
Instance details

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

Associated Types

type Rs FoldersPatch :: Type #

type Scopes FoldersPatch :: [Symbol] #

type Rep FoldersPatch Source # 
Instance details

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

type Rep FoldersPatch = D1 (MetaData "FoldersPatch" "Network.Google.Resource.CloudResourceManager.Folders.Patch" "gogol-resourcemanager-0.4.0-UDFVnkFAEA9efzG80swCH" False) (C1 (MetaCons "FoldersPatch'" PrefixI True) (((S1 (MetaSel (Just "_fpXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_fpUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_fpUpdateMask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GFieldMask)) :*: S1 (MetaSel (Just "_fpAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_fpUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_fpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Folder)) :*: (S1 (MetaSel (Just "_fpName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_fpCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes FoldersPatch Source # 
Instance details

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

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

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

Request Lenses

fpUploadProtocol :: Lens' FoldersPatch (Maybe Text) Source #

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

fpUpdateMask :: Lens' FoldersPatch (Maybe GFieldMask) Source #

Fields to be updated. Only the `display_name` can be updated.

fpUploadType :: Lens' FoldersPatch (Maybe Text) Source #

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

fpPayload :: Lens' FoldersPatch Folder Source #

Multipart request metadata.

fpName :: Lens' FoldersPatch Text Source #

Output only. The resource name of the Folder. Its format is `folders/{folder_id}`, for example: "folders/1234".