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 specific Version resource.
See: Cloud Private Catalog Producer API Reference for cloudprivatecatalogproducer.catalogs.products.versions.patch
.
Synopsis
- type CatalogsProductsVersionsPatchResource = "v1beta1" :> (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] GoogleCloudPrivatecatalogproducerV1beta1Version :> Patch '[JSON] GoogleCloudPrivatecatalogproducerV1beta1Version)))))))))
- catalogsProductsVersionsPatch :: GoogleCloudPrivatecatalogproducerV1beta1Version -> Text -> CatalogsProductsVersionsPatch
- data CatalogsProductsVersionsPatch
- cpvpXgafv :: Lens' CatalogsProductsVersionsPatch (Maybe Xgafv)
- cpvpUploadProtocol :: Lens' CatalogsProductsVersionsPatch (Maybe Text)
- cpvpUpdateMask :: Lens' CatalogsProductsVersionsPatch (Maybe GFieldMask)
- cpvpAccessToken :: Lens' CatalogsProductsVersionsPatch (Maybe Text)
- cpvpUploadType :: Lens' CatalogsProductsVersionsPatch (Maybe Text)
- cpvpPayload :: Lens' CatalogsProductsVersionsPatch GoogleCloudPrivatecatalogproducerV1beta1Version
- cpvpName :: Lens' CatalogsProductsVersionsPatch Text
- cpvpCallback :: Lens' CatalogsProductsVersionsPatch (Maybe Text)
REST Resource
type CatalogsProductsVersionsPatchResource = "v1beta1" :> (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] GoogleCloudPrivatecatalogproducerV1beta1Version :> Patch '[JSON] GoogleCloudPrivatecatalogproducerV1beta1Version))))))))) Source #
A resource alias for cloudprivatecatalogproducer.catalogs.products.versions.patch
method which the
CatalogsProductsVersionsPatch
request conforms to.
Creating a Request
catalogsProductsVersionsPatch Source #
Creates a value of CatalogsProductsVersionsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CatalogsProductsVersionsPatch Source #
Updates a specific Version resource.
See: catalogsProductsVersionsPatch
smart constructor.
Instances
Request Lenses
cpvpUploadProtocol :: Lens' CatalogsProductsVersionsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
cpvpUpdateMask :: Lens' CatalogsProductsVersionsPatch (Maybe GFieldMask) Source #
Field mask that controls which fields of the version should be updated.
cpvpAccessToken :: Lens' CatalogsProductsVersionsPatch (Maybe Text) Source #
OAuth access token.
cpvpUploadType :: Lens' CatalogsProductsVersionsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
cpvpPayload :: Lens' CatalogsProductsVersionsPatch GoogleCloudPrivatecatalogproducerV1beta1Version Source #
Multipart request metadata.
cpvpName :: Lens' CatalogsProductsVersionsPatch Text Source #
Required. The resource name of the version, in the format `catalogs/{catalog_id}/products/{product_id}/versions/a-z*[a-z0-9]'. A unique identifier for the version under a product, which can't be changed after the version is created. The final segment of the name must between 1 and 63 characters in length.
cpvpCallback :: Lens' CatalogsProductsVersionsPatch (Maybe Text) Source #
JSONP