Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Updates the specified product.
Synopsis
- data UpdateProduct = UpdateProduct' {
- acceptLanguage :: Maybe Text
- addTags :: Maybe [Tag]
- description :: Maybe Text
- distributor :: Maybe Text
- name :: Maybe Text
- owner :: Maybe Text
- removeTags :: Maybe [Text]
- sourceConnection :: Maybe SourceConnection
- supportDescription :: Maybe Text
- supportEmail :: Maybe Text
- supportUrl :: Maybe Text
- id :: Text
- newUpdateProduct :: Text -> UpdateProduct
- updateProduct_acceptLanguage :: Lens' UpdateProduct (Maybe Text)
- updateProduct_addTags :: Lens' UpdateProduct (Maybe [Tag])
- updateProduct_description :: Lens' UpdateProduct (Maybe Text)
- updateProduct_distributor :: Lens' UpdateProduct (Maybe Text)
- updateProduct_name :: Lens' UpdateProduct (Maybe Text)
- updateProduct_owner :: Lens' UpdateProduct (Maybe Text)
- updateProduct_removeTags :: Lens' UpdateProduct (Maybe [Text])
- updateProduct_sourceConnection :: Lens' UpdateProduct (Maybe SourceConnection)
- updateProduct_supportDescription :: Lens' UpdateProduct (Maybe Text)
- updateProduct_supportEmail :: Lens' UpdateProduct (Maybe Text)
- updateProduct_supportUrl :: Lens' UpdateProduct (Maybe Text)
- updateProduct_id :: Lens' UpdateProduct Text
- data UpdateProductResponse = UpdateProductResponse' {
- productViewDetail :: Maybe ProductViewDetail
- tags :: Maybe [Tag]
- httpStatus :: Int
- newUpdateProductResponse :: Int -> UpdateProductResponse
- updateProductResponse_productViewDetail :: Lens' UpdateProductResponse (Maybe ProductViewDetail)
- updateProductResponse_tags :: Lens' UpdateProductResponse (Maybe [Tag])
- updateProductResponse_httpStatus :: Lens' UpdateProductResponse Int
Creating a Request
data UpdateProduct Source #
See: newUpdateProduct
smart constructor.
UpdateProduct' | |
|
Instances
Create a value of UpdateProduct
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:acceptLanguage:UpdateProduct'
, updateProduct_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
$sel:addTags:UpdateProduct'
, updateProduct_addTags
- The tags to add to the product.
UpdateProduct
, updateProduct_description
- The updated description of the product.
UpdateProduct
, updateProduct_distributor
- The updated distributor of the product.
UpdateProduct
, updateProduct_name
- The updated product name.
UpdateProduct
, updateProduct_owner
- The updated owner of the product.
$sel:removeTags:UpdateProduct'
, updateProduct_removeTags
- The tags to remove from the product.
UpdateProduct
, updateProduct_sourceConnection
- Specifies connection details for the updated product and syncs the
product to the connection source artifact. This automatically manages
the product's artifacts based on changes to the source. The
SourceConnection
parameter consists of the following sub-fields.
Type
ConnectionParamters
UpdateProduct
, updateProduct_supportDescription
- The updated support description for the product.
UpdateProduct
, updateProduct_supportEmail
- The updated support email for the product.
UpdateProduct
, updateProduct_supportUrl
- The updated support URL for the product.
UpdateProduct
, updateProduct_id
- The product identifier.
Request Lenses
updateProduct_acceptLanguage :: Lens' UpdateProduct (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
updateProduct_addTags :: Lens' UpdateProduct (Maybe [Tag]) Source #
The tags to add to the product.
updateProduct_description :: Lens' UpdateProduct (Maybe Text) Source #
The updated description of the product.
updateProduct_distributor :: Lens' UpdateProduct (Maybe Text) Source #
The updated distributor of the product.
updateProduct_name :: Lens' UpdateProduct (Maybe Text) Source #
The updated product name.
updateProduct_owner :: Lens' UpdateProduct (Maybe Text) Source #
The updated owner of the product.
updateProduct_removeTags :: Lens' UpdateProduct (Maybe [Text]) Source #
The tags to remove from the product.
updateProduct_sourceConnection :: Lens' UpdateProduct (Maybe SourceConnection) Source #
Specifies connection details for the updated product and syncs the
product to the connection source artifact. This automatically manages
the product's artifacts based on changes to the source. The
SourceConnection
parameter consists of the following sub-fields.
Type
ConnectionParamters
updateProduct_supportDescription :: Lens' UpdateProduct (Maybe Text) Source #
The updated support description for the product.
updateProduct_supportEmail :: Lens' UpdateProduct (Maybe Text) Source #
The updated support email for the product.
updateProduct_supportUrl :: Lens' UpdateProduct (Maybe Text) Source #
The updated support URL for the product.
updateProduct_id :: Lens' UpdateProduct Text Source #
The product identifier.
Destructuring the Response
data UpdateProductResponse Source #
See: newUpdateProductResponse
smart constructor.
UpdateProductResponse' | |
|
Instances
newUpdateProductResponse Source #
Create a value of UpdateProductResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:productViewDetail:UpdateProductResponse'
, updateProductResponse_productViewDetail
- Information about the product view.
UpdateProductResponse
, updateProductResponse_tags
- Information about the tags associated with the product.
$sel:httpStatus:UpdateProductResponse'
, updateProductResponse_httpStatus
- The response's http status code.
Response Lenses
updateProductResponse_productViewDetail :: Lens' UpdateProductResponse (Maybe ProductViewDetail) Source #
Information about the product view.
updateProductResponse_tags :: Lens' UpdateProductResponse (Maybe [Tag]) Source #
Information about the tags associated with the product.
updateProductResponse_httpStatus :: Lens' UpdateProductResponse Int Source #
The response's http status code.