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 |
Deletes the product from a Manufacturer Center account.
See: Manufacturer Center API Reference for manufacturers.accounts.products.delete
.
Synopsis
- type AccountsProductsDeleteResource = "v1" :> (Capture "parent" Text :> ("products" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty)))))))))
- accountsProductsDelete :: Text -> Text -> AccountsProductsDelete
- data AccountsProductsDelete
- apdParent :: Lens' AccountsProductsDelete Text
- apdXgafv :: Lens' AccountsProductsDelete (Maybe Xgafv)
- apdUploadProtocol :: Lens' AccountsProductsDelete (Maybe Text)
- apdAccessToken :: Lens' AccountsProductsDelete (Maybe Text)
- apdUploadType :: Lens' AccountsProductsDelete (Maybe Text)
- apdName :: Lens' AccountsProductsDelete Text
- apdCallback :: Lens' AccountsProductsDelete (Maybe Text)
REST Resource
type AccountsProductsDeleteResource = "v1" :> (Capture "parent" Text :> ("products" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty))))))))) Source #
A resource alias for manufacturers.accounts.products.delete
method which the
AccountsProductsDelete
request conforms to.
Creating a Request
accountsProductsDelete Source #
Creates a value of AccountsProductsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountsProductsDelete Source #
Deletes the product from a Manufacturer Center account.
See: accountsProductsDelete
smart constructor.
Instances
Request Lenses
apdParent :: Lens' AccountsProductsDelete Text Source #
Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account.
apdUploadProtocol :: Lens' AccountsProductsDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
apdAccessToken :: Lens' AccountsProductsDelete (Maybe Text) Source #
OAuth access token.
apdUploadType :: Lens' AccountsProductsDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
apdName :: Lens' AccountsProductsDelete Text Source #
Name in the format `{target_country}:{content_language}:{product_id}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
apdCallback :: Lens' AccountsProductsDelete (Maybe Text) Source #
JSONP