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 |
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
- 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)))))))))
- foldersPatch :: Folder -> Text -> FoldersPatch
- data FoldersPatch
- fpXgafv :: Lens' FoldersPatch (Maybe Xgafv)
- fpUploadProtocol :: Lens' FoldersPatch (Maybe Text)
- fpUpdateMask :: Lens' FoldersPatch (Maybe GFieldMask)
- fpAccessToken :: Lens' FoldersPatch (Maybe Text)
- fpUploadType :: Lens' FoldersPatch (Maybe Text)
- fpPayload :: Lens' FoldersPatch Folder
- fpName :: Lens' FoldersPatch Text
- fpCallback :: Lens' FoldersPatch (Maybe Text)
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
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
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.
fpAccessToken :: Lens' FoldersPatch (Maybe Text) Source #
OAuth access token.
fpUploadType :: Lens' FoldersPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
fpName :: Lens' FoldersPatch Text Source #
Output only. The resource name of the Folder. Its format is `folders/{folder_id}`, for example: "folders/1234".
fpCallback :: Lens' FoldersPatch (Maybe Text) Source #
JSONP