gogol-manufacturers-0.4.0: Google Manufacturer Center SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Manufacturers.Accounts.Products.Update

Contents

Description

Inserts or updates the attributes of the product in a Manufacturer Center account. Creates a product with the provided attributes. If the product already exists, then all attributes are replaced with the new ones. The checks at upload time are minimal. All required attributes need to be present for a product to be valid. Issues may show up later after the API has accepted a new upload for a product and it is possible to overwrite an existing valid product with an invalid product. To detect this, you should retrieve the product and check it for issues once the new version is available. Uploaded attributes first need to be processed before they can be retrieved. Until then, new products will be unavailable, and retrieval of previously uploaded products will return the original state of the product.

See: Manufacturer Center API Reference for manufacturers.accounts.products.update.

Synopsis

REST Resource

type AccountsProductsUpdateResource = "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 :> (ReqBody '[JSON] Attributes :> Put '[JSON] Empty)))))))))) Source #

A resource alias for manufacturers.accounts.products.update method which the AccountsProductsUpdate request conforms to.

Creating a Request

accountsProductsUpdate Source #

Creates a value of AccountsProductsUpdate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AccountsProductsUpdate Source #

Inserts or updates the attributes of the product in a Manufacturer Center account. Creates a product with the provided attributes. If the product already exists, then all attributes are replaced with the new ones. The checks at upload time are minimal. All required attributes need to be present for a product to be valid. Issues may show up later after the API has accepted a new upload for a product and it is possible to overwrite an existing valid product with an invalid product. To detect this, you should retrieve the product and check it for issues once the new version is available. Uploaded attributes first need to be processed before they can be retrieved. Until then, new products will be unavailable, and retrieval of previously uploaded products will return the original state of the product.

See: accountsProductsUpdate smart constructor.

Instances
Eq AccountsProductsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Manufacturers.Accounts.Products.Update

Data AccountsProductsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Manufacturers.Accounts.Products.Update

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AccountsProductsUpdate -> c AccountsProductsUpdate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AccountsProductsUpdate #

toConstr :: AccountsProductsUpdate -> Constr #

dataTypeOf :: AccountsProductsUpdate -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AccountsProductsUpdate) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AccountsProductsUpdate) #

gmapT :: (forall b. Data b => b -> b) -> AccountsProductsUpdate -> AccountsProductsUpdate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AccountsProductsUpdate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AccountsProductsUpdate -> r #

gmapQ :: (forall d. Data d => d -> u) -> AccountsProductsUpdate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AccountsProductsUpdate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AccountsProductsUpdate -> m AccountsProductsUpdate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AccountsProductsUpdate -> m AccountsProductsUpdate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AccountsProductsUpdate -> m AccountsProductsUpdate #

Show AccountsProductsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Manufacturers.Accounts.Products.Update

Generic AccountsProductsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Manufacturers.Accounts.Products.Update

Associated Types

type Rep AccountsProductsUpdate :: Type -> Type #

GoogleRequest AccountsProductsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Manufacturers.Accounts.Products.Update

type Rep AccountsProductsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Manufacturers.Accounts.Products.Update

type Rep AccountsProductsUpdate = D1 (MetaData "AccountsProductsUpdate" "Network.Google.Resource.Manufacturers.Accounts.Products.Update" "gogol-manufacturers-0.4.0-7YdIXCJh5QE9wf56GVwxvn" False) (C1 (MetaCons "AccountsProductsUpdate'" PrefixI True) (((S1 (MetaSel (Just "_apuParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_apuXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv))) :*: (S1 (MetaSel (Just "_apuUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_apuAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_apuUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_apuPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Attributes)) :*: (S1 (MetaSel (Just "_apuName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_apuCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes AccountsProductsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Manufacturers.Accounts.Products.Update

type Scopes AccountsProductsUpdate = "https://www.googleapis.com/auth/manufacturercenter" ': ([] :: [Symbol])
type Rs AccountsProductsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Manufacturers.Accounts.Products.Update

Request Lenses

apuParent :: Lens' AccountsProductsUpdate Text Source #

Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account.

apuUploadProtocol :: Lens' AccountsProductsUpdate (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

apuUploadType :: Lens' AccountsProductsUpdate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

apuName :: Lens' AccountsProductsUpdate 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.