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 a Version instance under a given Product.
See: Cloud Private Catalog Producer API Reference for cloudprivatecatalogproducer.catalogs.products.versions.create
.
Synopsis
- type CatalogsProductsVersionsCreateResource = "v1beta1" :> (Capture "parent" Text :> ("versions" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudPrivatecatalogproducerV1beta1Version :> Post '[JSON] GoogleLongrunningOperation)))))))))
- catalogsProductsVersionsCreate :: Text -> GoogleCloudPrivatecatalogproducerV1beta1Version -> CatalogsProductsVersionsCreate
- data CatalogsProductsVersionsCreate
- cpvcParent :: Lens' CatalogsProductsVersionsCreate Text
- cpvcXgafv :: Lens' CatalogsProductsVersionsCreate (Maybe Xgafv)
- cpvcUploadProtocol :: Lens' CatalogsProductsVersionsCreate (Maybe Text)
- cpvcAccessToken :: Lens' CatalogsProductsVersionsCreate (Maybe Text)
- cpvcUploadType :: Lens' CatalogsProductsVersionsCreate (Maybe Text)
- cpvcPayload :: Lens' CatalogsProductsVersionsCreate GoogleCloudPrivatecatalogproducerV1beta1Version
- cpvcCallback :: Lens' CatalogsProductsVersionsCreate (Maybe Text)
REST Resource
type CatalogsProductsVersionsCreateResource = "v1beta1" :> (Capture "parent" Text :> ("versions" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudPrivatecatalogproducerV1beta1Version :> Post '[JSON] GoogleLongrunningOperation))))))))) Source #
A resource alias for cloudprivatecatalogproducer.catalogs.products.versions.create
method which the
CatalogsProductsVersionsCreate
request conforms to.
Creating a Request
catalogsProductsVersionsCreate Source #
Creates a value of CatalogsProductsVersionsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CatalogsProductsVersionsCreate Source #
Creates a Version instance under a given Product.
See: catalogsProductsVersionsCreate
smart constructor.
Instances
Request Lenses
cpvcParent :: Lens' CatalogsProductsVersionsCreate Text Source #
The product name of the new version's parent.
cpvcUploadProtocol :: Lens' CatalogsProductsVersionsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
cpvcAccessToken :: Lens' CatalogsProductsVersionsCreate (Maybe Text) Source #
OAuth access token.
cpvcUploadType :: Lens' CatalogsProductsVersionsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
cpvcPayload :: Lens' CatalogsProductsVersionsCreate GoogleCloudPrivatecatalogproducerV1beta1Version Source #
Multipart request metadata.
cpvcCallback :: Lens' CatalogsProductsVersionsCreate (Maybe Text) Source #
JSONP