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 |
Creates an Icon instance under a given Product. If Product only has a default icon, a new Icon instance is created and associated with the given Product. If Product already has a non-default icon, the action creates a new Icon instance, associates the newly created Icon with the given Product and deletes the old icon.
See: Cloud Private Catalog Producer API Reference for cloudprivatecatalogproducer.catalogs.products.icons.upload
.
Synopsis
- type CatalogsProductsIconsUploadResource = "v1beta1" :> (Capture "product" Text :> ("icons:upload" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest :> Post '[JSON] GoogleProtobufEmpty)))))))))
- catalogsProductsIconsUpload :: GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest -> Text -> CatalogsProductsIconsUpload
- data CatalogsProductsIconsUpload
- cpiuXgafv :: Lens' CatalogsProductsIconsUpload (Maybe Xgafv)
- cpiuUploadProtocol :: Lens' CatalogsProductsIconsUpload (Maybe Text)
- cpiuAccessToken :: Lens' CatalogsProductsIconsUpload (Maybe Text)
- cpiuUploadType :: Lens' CatalogsProductsIconsUpload (Maybe Text)
- cpiuPayload :: Lens' CatalogsProductsIconsUpload GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest
- cpiuProduct :: Lens' CatalogsProductsIconsUpload Text
- cpiuCallback :: Lens' CatalogsProductsIconsUpload (Maybe Text)
REST Resource
type CatalogsProductsIconsUploadResource = "v1beta1" :> (Capture "product" Text :> ("icons:upload" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest :> Post '[JSON] GoogleProtobufEmpty))))))))) Source #
A resource alias for cloudprivatecatalogproducer.catalogs.products.icons.upload
method which the
CatalogsProductsIconsUpload
request conforms to.
Creating a Request
catalogsProductsIconsUpload Source #
Creates a value of CatalogsProductsIconsUpload
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CatalogsProductsIconsUpload Source #
Creates an Icon instance under a given Product. If Product only has a default icon, a new Icon instance is created and associated with the given Product. If Product already has a non-default icon, the action creates a new Icon instance, associates the newly created Icon with the given Product and deletes the old icon.
See: catalogsProductsIconsUpload
smart constructor.
Instances
Request Lenses
cpiuUploadProtocol :: Lens' CatalogsProductsIconsUpload (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
cpiuAccessToken :: Lens' CatalogsProductsIconsUpload (Maybe Text) Source #
OAuth access token.
cpiuUploadType :: Lens' CatalogsProductsIconsUpload (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
cpiuPayload :: Lens' CatalogsProductsIconsUpload GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest Source #
Multipart request metadata.
cpiuProduct :: Lens' CatalogsProductsIconsUpload Text Source #
The resource name of the product.
cpiuCallback :: Lens' CatalogsProductsIconsUpload (Maybe Text) Source #
JSONP