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 an existing Catalog and all resources under it. The catalog can only be deleted if there is no associations under it or DeleteCatalogRequest.force is true. The delete operation can be recovered by the PrivateCatalogProducer.UndeleteCatalog method.
See: Cloud Private Catalog Producer API Reference for cloudprivatecatalogproducer.catalogs.delete
.
Synopsis
- type CatalogsDeleteResource = "v1beta1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "force" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] GoogleCloudPrivatecatalogproducerV1beta1Catalog))))))))
- catalogsDelete :: Text -> CatalogsDelete
- data CatalogsDelete
- cdXgafv :: Lens' CatalogsDelete (Maybe Xgafv)
- cdUploadProtocol :: Lens' CatalogsDelete (Maybe Text)
- cdForce :: Lens' CatalogsDelete (Maybe Bool)
- cdAccessToken :: Lens' CatalogsDelete (Maybe Text)
- cdUploadType :: Lens' CatalogsDelete (Maybe Text)
- cdName :: Lens' CatalogsDelete Text
- cdCallback :: Lens' CatalogsDelete (Maybe Text)
REST Resource
type CatalogsDeleteResource = "v1beta1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "force" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] GoogleCloudPrivatecatalogproducerV1beta1Catalog)))))))) Source #
A resource alias for cloudprivatecatalogproducer.catalogs.delete
method which the
CatalogsDelete
request conforms to.
Creating a Request
:: Text | |
-> CatalogsDelete |
Creates a value of CatalogsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CatalogsDelete Source #
Soft deletes an existing Catalog and all resources under it. The catalog can only be deleted if there is no associations under it or DeleteCatalogRequest.force is true. The delete operation can be recovered by the PrivateCatalogProducer.UndeleteCatalog method.
See: catalogsDelete
smart constructor.
Instances
Request Lenses
cdUploadProtocol :: Lens' CatalogsDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
cdForce :: Lens' CatalogsDelete (Maybe Bool) Source #
Forces deletion of the `Catalog` and its `Association` resources. If the `Catalog` is still associated with other resources and force is not set to true, then the operation fails.
cdAccessToken :: Lens' CatalogsDelete (Maybe Text) Source #
OAuth access token.
cdUploadType :: Lens' CatalogsDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
cdCallback :: Lens' CatalogsDelete (Maybe Text) Source #
JSONP