Mise à jour des librairies vendor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 Google Inc.
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
@@ -17,16 +17,72 @@
|
||||
|
||||
class Google_Service_ManufacturerCenter_Attributes extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'productType';
|
||||
protected $collection_key = 'videoLink';
|
||||
protected $additionalImageLinkType = 'Google_Service_ManufacturerCenter_Image';
|
||||
protected $additionalImageLinkDataType = 'array';
|
||||
public $ageGroup;
|
||||
public $brand;
|
||||
protected $capacityType = 'Google_Service_ManufacturerCenter_Capacity';
|
||||
protected $capacityDataType = '';
|
||||
public $color;
|
||||
protected $countType = 'Google_Service_ManufacturerCenter_Count';
|
||||
protected $countDataType = '';
|
||||
public $description;
|
||||
public $disclosureDate;
|
||||
public $excludedDestination;
|
||||
protected $featureDescriptionType = 'Google_Service_ManufacturerCenter_FeatureDescription';
|
||||
protected $featureDescriptionDataType = 'array';
|
||||
public $flavor;
|
||||
public $format;
|
||||
public $gender;
|
||||
public $gtin;
|
||||
protected $imageLinkType = 'Google_Service_ManufacturerCenter_Image';
|
||||
protected $imageLinkDataType = '';
|
||||
public $includedDestination;
|
||||
public $itemGroupId;
|
||||
public $material;
|
||||
public $mpn;
|
||||
public $pattern;
|
||||
protected $productDetailType = 'Google_Service_ManufacturerCenter_ProductDetail';
|
||||
protected $productDetailDataType = 'array';
|
||||
public $productLine;
|
||||
public $productName;
|
||||
public $productPageUrl;
|
||||
public $productType;
|
||||
public $releaseDate;
|
||||
public $scent;
|
||||
public $size;
|
||||
public $sizeSystem;
|
||||
public $sizeType;
|
||||
protected $suggestedRetailPriceType = 'Google_Service_ManufacturerCenter_Price';
|
||||
protected $suggestedRetailPriceDataType = '';
|
||||
public $targetClientId;
|
||||
public $theme;
|
||||
public $title;
|
||||
public $videoLink;
|
||||
|
||||
/**
|
||||
* @param Google_Service_ManufacturerCenter_Image
|
||||
*/
|
||||
public function setAdditionalImageLink($additionalImageLink)
|
||||
{
|
||||
$this->additionalImageLink = $additionalImageLink;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_ManufacturerCenter_Image
|
||||
*/
|
||||
public function getAdditionalImageLink()
|
||||
{
|
||||
return $this->additionalImageLink;
|
||||
}
|
||||
public function setAgeGroup($ageGroup)
|
||||
{
|
||||
$this->ageGroup = $ageGroup;
|
||||
}
|
||||
public function getAgeGroup()
|
||||
{
|
||||
return $this->ageGroup;
|
||||
}
|
||||
public function setBrand($brand)
|
||||
{
|
||||
$this->brand = $brand;
|
||||
@@ -35,6 +91,104 @@ class Google_Service_ManufacturerCenter_Attributes extends Google_Collection
|
||||
{
|
||||
return $this->brand;
|
||||
}
|
||||
/**
|
||||
* @param Google_Service_ManufacturerCenter_Capacity
|
||||
*/
|
||||
public function setCapacity(Google_Service_ManufacturerCenter_Capacity $capacity)
|
||||
{
|
||||
$this->capacity = $capacity;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_ManufacturerCenter_Capacity
|
||||
*/
|
||||
public function getCapacity()
|
||||
{
|
||||
return $this->capacity;
|
||||
}
|
||||
public function setColor($color)
|
||||
{
|
||||
$this->color = $color;
|
||||
}
|
||||
public function getColor()
|
||||
{
|
||||
return $this->color;
|
||||
}
|
||||
/**
|
||||
* @param Google_Service_ManufacturerCenter_Count
|
||||
*/
|
||||
public function setCount(Google_Service_ManufacturerCenter_Count $count)
|
||||
{
|
||||
$this->count = $count;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_ManufacturerCenter_Count
|
||||
*/
|
||||
public function getCount()
|
||||
{
|
||||
return $this->count;
|
||||
}
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
public function setDisclosureDate($disclosureDate)
|
||||
{
|
||||
$this->disclosureDate = $disclosureDate;
|
||||
}
|
||||
public function getDisclosureDate()
|
||||
{
|
||||
return $this->disclosureDate;
|
||||
}
|
||||
public function setExcludedDestination($excludedDestination)
|
||||
{
|
||||
$this->excludedDestination = $excludedDestination;
|
||||
}
|
||||
public function getExcludedDestination()
|
||||
{
|
||||
return $this->excludedDestination;
|
||||
}
|
||||
/**
|
||||
* @param Google_Service_ManufacturerCenter_FeatureDescription
|
||||
*/
|
||||
public function setFeatureDescription($featureDescription)
|
||||
{
|
||||
$this->featureDescription = $featureDescription;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_ManufacturerCenter_FeatureDescription
|
||||
*/
|
||||
public function getFeatureDescription()
|
||||
{
|
||||
return $this->featureDescription;
|
||||
}
|
||||
public function setFlavor($flavor)
|
||||
{
|
||||
$this->flavor = $flavor;
|
||||
}
|
||||
public function getFlavor()
|
||||
{
|
||||
return $this->flavor;
|
||||
}
|
||||
public function setFormat($format)
|
||||
{
|
||||
$this->format = $format;
|
||||
}
|
||||
public function getFormat()
|
||||
{
|
||||
return $this->format;
|
||||
}
|
||||
public function setGender($gender)
|
||||
{
|
||||
$this->gender = $gender;
|
||||
}
|
||||
public function getGender()
|
||||
{
|
||||
return $this->gender;
|
||||
}
|
||||
public function setGtin($gtin)
|
||||
{
|
||||
$this->gtin = $gtin;
|
||||
@@ -43,6 +197,44 @@ class Google_Service_ManufacturerCenter_Attributes extends Google_Collection
|
||||
{
|
||||
return $this->gtin;
|
||||
}
|
||||
/**
|
||||
* @param Google_Service_ManufacturerCenter_Image
|
||||
*/
|
||||
public function setImageLink(Google_Service_ManufacturerCenter_Image $imageLink)
|
||||
{
|
||||
$this->imageLink = $imageLink;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_ManufacturerCenter_Image
|
||||
*/
|
||||
public function getImageLink()
|
||||
{
|
||||
return $this->imageLink;
|
||||
}
|
||||
public function setIncludedDestination($includedDestination)
|
||||
{
|
||||
$this->includedDestination = $includedDestination;
|
||||
}
|
||||
public function getIncludedDestination()
|
||||
{
|
||||
return $this->includedDestination;
|
||||
}
|
||||
public function setItemGroupId($itemGroupId)
|
||||
{
|
||||
$this->itemGroupId = $itemGroupId;
|
||||
}
|
||||
public function getItemGroupId()
|
||||
{
|
||||
return $this->itemGroupId;
|
||||
}
|
||||
public function setMaterial($material)
|
||||
{
|
||||
$this->material = $material;
|
||||
}
|
||||
public function getMaterial()
|
||||
{
|
||||
return $this->material;
|
||||
}
|
||||
public function setMpn($mpn)
|
||||
{
|
||||
$this->mpn = $mpn;
|
||||
@@ -51,6 +243,28 @@ class Google_Service_ManufacturerCenter_Attributes extends Google_Collection
|
||||
{
|
||||
return $this->mpn;
|
||||
}
|
||||
public function setPattern($pattern)
|
||||
{
|
||||
$this->pattern = $pattern;
|
||||
}
|
||||
public function getPattern()
|
||||
{
|
||||
return $this->pattern;
|
||||
}
|
||||
/**
|
||||
* @param Google_Service_ManufacturerCenter_ProductDetail
|
||||
*/
|
||||
public function setProductDetail($productDetail)
|
||||
{
|
||||
$this->productDetail = $productDetail;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_ManufacturerCenter_ProductDetail
|
||||
*/
|
||||
public function getProductDetail()
|
||||
{
|
||||
return $this->productDetail;
|
||||
}
|
||||
public function setProductLine($productLine)
|
||||
{
|
||||
$this->productLine = $productLine;
|
||||
@@ -83,6 +297,76 @@ class Google_Service_ManufacturerCenter_Attributes extends Google_Collection
|
||||
{
|
||||
return $this->productType;
|
||||
}
|
||||
public function setReleaseDate($releaseDate)
|
||||
{
|
||||
$this->releaseDate = $releaseDate;
|
||||
}
|
||||
public function getReleaseDate()
|
||||
{
|
||||
return $this->releaseDate;
|
||||
}
|
||||
public function setScent($scent)
|
||||
{
|
||||
$this->scent = $scent;
|
||||
}
|
||||
public function getScent()
|
||||
{
|
||||
return $this->scent;
|
||||
}
|
||||
public function setSize($size)
|
||||
{
|
||||
$this->size = $size;
|
||||
}
|
||||
public function getSize()
|
||||
{
|
||||
return $this->size;
|
||||
}
|
||||
public function setSizeSystem($sizeSystem)
|
||||
{
|
||||
$this->sizeSystem = $sizeSystem;
|
||||
}
|
||||
public function getSizeSystem()
|
||||
{
|
||||
return $this->sizeSystem;
|
||||
}
|
||||
public function setSizeType($sizeType)
|
||||
{
|
||||
$this->sizeType = $sizeType;
|
||||
}
|
||||
public function getSizeType()
|
||||
{
|
||||
return $this->sizeType;
|
||||
}
|
||||
/**
|
||||
* @param Google_Service_ManufacturerCenter_Price
|
||||
*/
|
||||
public function setSuggestedRetailPrice(Google_Service_ManufacturerCenter_Price $suggestedRetailPrice)
|
||||
{
|
||||
$this->suggestedRetailPrice = $suggestedRetailPrice;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_ManufacturerCenter_Price
|
||||
*/
|
||||
public function getSuggestedRetailPrice()
|
||||
{
|
||||
return $this->suggestedRetailPrice;
|
||||
}
|
||||
public function setTargetClientId($targetClientId)
|
||||
{
|
||||
$this->targetClientId = $targetClientId;
|
||||
}
|
||||
public function getTargetClientId()
|
||||
{
|
||||
return $this->targetClientId;
|
||||
}
|
||||
public function setTheme($theme)
|
||||
{
|
||||
$this->theme = $theme;
|
||||
}
|
||||
public function getTheme()
|
||||
{
|
||||
return $this->theme;
|
||||
}
|
||||
public function setTitle($title)
|
||||
{
|
||||
$this->title = $title;
|
||||
@@ -91,4 +375,12 @@ class Google_Service_ManufacturerCenter_Attributes extends Google_Collection
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
public function setVideoLink($videoLink)
|
||||
{
|
||||
$this->videoLink = $videoLink;
|
||||
}
|
||||
public function getVideoLink()
|
||||
{
|
||||
return $this->videoLink;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 Google Inc.
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
@@ -19,7 +19,11 @@ class Google_Service_ManufacturerCenter_Issue extends Google_Model
|
||||
{
|
||||
public $attribute;
|
||||
public $description;
|
||||
public $destination;
|
||||
public $resolution;
|
||||
public $severity;
|
||||
public $timestamp;
|
||||
public $title;
|
||||
public $type;
|
||||
|
||||
public function setAttribute($attribute)
|
||||
@@ -38,6 +42,22 @@ class Google_Service_ManufacturerCenter_Issue extends Google_Model
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
public function setDestination($destination)
|
||||
{
|
||||
$this->destination = $destination;
|
||||
}
|
||||
public function getDestination()
|
||||
{
|
||||
return $this->destination;
|
||||
}
|
||||
public function setResolution($resolution)
|
||||
{
|
||||
$this->resolution = $resolution;
|
||||
}
|
||||
public function getResolution()
|
||||
{
|
||||
return $this->resolution;
|
||||
}
|
||||
public function setSeverity($severity)
|
||||
{
|
||||
$this->severity = $severity;
|
||||
@@ -46,6 +66,22 @@ class Google_Service_ManufacturerCenter_Issue extends Google_Model
|
||||
{
|
||||
return $this->severity;
|
||||
}
|
||||
public function setTimestamp($timestamp)
|
||||
{
|
||||
$this->timestamp = $timestamp;
|
||||
}
|
||||
public function getTimestamp()
|
||||
{
|
||||
return $this->timestamp;
|
||||
}
|
||||
public function setTitle($title)
|
||||
{
|
||||
$this->title = $title;
|
||||
}
|
||||
public function getTitle()
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 Google Inc.
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
@@ -30,10 +30,16 @@ class Google_Service_ManufacturerCenter_ListProductsResponse extends Google_Coll
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
/**
|
||||
* @param Google_Service_ManufacturerCenter_Product
|
||||
*/
|
||||
public function setProducts($products)
|
||||
{
|
||||
$this->products = $products;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_ManufacturerCenter_Product
|
||||
*/
|
||||
public function getProducts()
|
||||
{
|
||||
return $this->products;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 Google Inc.
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
@@ -18,7 +18,11 @@
|
||||
class Google_Service_ManufacturerCenter_Product extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'manuallyDeletedAttributes';
|
||||
protected $attributesType = 'Google_Service_ManufacturerCenter_Attributes';
|
||||
protected $attributesDataType = '';
|
||||
public $contentLanguage;
|
||||
protected $destinationStatusesType = 'Google_Service_ManufacturerCenter_DestinationStatus';
|
||||
protected $destinationStatusesDataType = 'array';
|
||||
protected $finalAttributesType = 'Google_Service_ManufacturerCenter_Attributes';
|
||||
protected $finalAttributesDataType = '';
|
||||
protected $issuesType = 'Google_Service_ManufacturerCenter_Issue';
|
||||
@@ -33,6 +37,20 @@ class Google_Service_ManufacturerCenter_Product extends Google_Collection
|
||||
protected $uploadedAttributesType = 'Google_Service_ManufacturerCenter_Attributes';
|
||||
protected $uploadedAttributesDataType = '';
|
||||
|
||||
/**
|
||||
* @param Google_Service_ManufacturerCenter_Attributes
|
||||
*/
|
||||
public function setAttributes(Google_Service_ManufacturerCenter_Attributes $attributes)
|
||||
{
|
||||
$this->attributes = $attributes;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_ManufacturerCenter_Attributes
|
||||
*/
|
||||
public function getAttributes()
|
||||
{
|
||||
return $this->attributes;
|
||||
}
|
||||
public function setContentLanguage($contentLanguage)
|
||||
{
|
||||
$this->contentLanguage = $contentLanguage;
|
||||
@@ -41,18 +59,44 @@ class Google_Service_ManufacturerCenter_Product extends Google_Collection
|
||||
{
|
||||
return $this->contentLanguage;
|
||||
}
|
||||
/**
|
||||
* @param Google_Service_ManufacturerCenter_DestinationStatus
|
||||
*/
|
||||
public function setDestinationStatuses($destinationStatuses)
|
||||
{
|
||||
$this->destinationStatuses = $destinationStatuses;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_ManufacturerCenter_DestinationStatus
|
||||
*/
|
||||
public function getDestinationStatuses()
|
||||
{
|
||||
return $this->destinationStatuses;
|
||||
}
|
||||
/**
|
||||
* @param Google_Service_ManufacturerCenter_Attributes
|
||||
*/
|
||||
public function setFinalAttributes(Google_Service_ManufacturerCenter_Attributes $finalAttributes)
|
||||
{
|
||||
$this->finalAttributes = $finalAttributes;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_ManufacturerCenter_Attributes
|
||||
*/
|
||||
public function getFinalAttributes()
|
||||
{
|
||||
return $this->finalAttributes;
|
||||
}
|
||||
/**
|
||||
* @param Google_Service_ManufacturerCenter_Issue
|
||||
*/
|
||||
public function setIssues($issues)
|
||||
{
|
||||
$this->issues = $issues;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_ManufacturerCenter_Issue
|
||||
*/
|
||||
public function getIssues()
|
||||
{
|
||||
return $this->issues;
|
||||
@@ -65,10 +109,16 @@ class Google_Service_ManufacturerCenter_Product extends Google_Collection
|
||||
{
|
||||
return $this->manuallyDeletedAttributes;
|
||||
}
|
||||
/**
|
||||
* @param Google_Service_ManufacturerCenter_Attributes
|
||||
*/
|
||||
public function setManuallyProvidedAttributes(Google_Service_ManufacturerCenter_Attributes $manuallyProvidedAttributes)
|
||||
{
|
||||
$this->manuallyProvidedAttributes = $manuallyProvidedAttributes;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_ManufacturerCenter_Attributes
|
||||
*/
|
||||
public function getManuallyProvidedAttributes()
|
||||
{
|
||||
return $this->manuallyProvidedAttributes;
|
||||
@@ -105,10 +155,16 @@ class Google_Service_ManufacturerCenter_Product extends Google_Collection
|
||||
{
|
||||
return $this->targetCountry;
|
||||
}
|
||||
/**
|
||||
* @param Google_Service_ManufacturerCenter_Attributes
|
||||
*/
|
||||
public function setUploadedAttributes(Google_Service_ManufacturerCenter_Attributes $uploadedAttributes)
|
||||
{
|
||||
$this->uploadedAttributes = $uploadedAttributes;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_ManufacturerCenter_Attributes
|
||||
*/
|
||||
public function getUploadedAttributes()
|
||||
{
|
||||
return $this->uploadedAttributes;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 Google Inc.
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 Google Inc.
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
@@ -26,8 +26,7 @@
|
||||
class Google_Service_ManufacturerCenter_Resource_AccountsProducts extends Google_Service_Resource
|
||||
{
|
||||
/**
|
||||
* Gets the product from a Manufacturer Center account, including product
|
||||
* issues. (products.get)
|
||||
* Deletes the product from a Manufacturer Center account. (products.delete)
|
||||
*
|
||||
* @param string $parent Parent ID in the format `accounts/{account_id}`.
|
||||
*
|
||||
@@ -44,6 +43,45 @@ class Google_Service_ManufacturerCenter_Resource_AccountsProducts extends Google
|
||||
* `product_id` - The ID of the product. For more information, see
|
||||
* https://support.google.com/manufacturers/answer/6124116#id.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_ManufacturerCenter_ManufacturersEmpty
|
||||
*/
|
||||
public function delete($parent, $name, $optParams = array())
|
||||
{
|
||||
$params = array('parent' => $parent, 'name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params), "Google_Service_ManufacturerCenter_ManufacturersEmpty");
|
||||
}
|
||||
/**
|
||||
* Gets the product from a Manufacturer Center account, including product
|
||||
* issues.
|
||||
*
|
||||
* A recently updated product takes around 15 minutes to process. Changes are
|
||||
* only visible after it has been processed. While some issues may be available
|
||||
* once the product has been processed, other issues may take days to appear.
|
||||
* (products.get)
|
||||
*
|
||||
* @param string $parent Parent ID in the format `accounts/{account_id}`.
|
||||
*
|
||||
* `account_id` - The ID of the Manufacturer Center account.
|
||||
* @param string $name 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.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string include The information to be included in the response.
|
||||
* Only sections listed here will be returned.
|
||||
*
|
||||
* If this parameter is not specified, ATTRIBUTES and ISSUES are returned. This
|
||||
* behavior is temporary and will be removed once all clients are ready or at
|
||||
* the latest end of July 2018. After that no sections will be returned.
|
||||
* @return Google_Service_ManufacturerCenter_Product
|
||||
*/
|
||||
public function get($parent, $name, $optParams = array())
|
||||
@@ -63,6 +101,12 @@ class Google_Service_ManufacturerCenter_Resource_AccountsProducts extends Google
|
||||
*
|
||||
* @opt_param int pageSize Maximum number of product statuses to return in the
|
||||
* response, used for paging.
|
||||
* @opt_param string include The information to be included in the response.
|
||||
* Only sections listed here will be returned.
|
||||
*
|
||||
* If this parameter is not specified, ATTRIBUTES and ISSUES are returned. This
|
||||
* behavior is temporary and will be removed once all clients are ready or at
|
||||
* the latest end of July 2018. After that no sections will be returned.
|
||||
* @opt_param string pageToken The token returned by the previous request.
|
||||
* @return Google_Service_ManufacturerCenter_ListProductsResponse
|
||||
*/
|
||||
@@ -72,4 +116,45 @@ class Google_Service_ManufacturerCenter_Resource_AccountsProducts extends Google
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_ManufacturerCenter_ListProductsResponse");
|
||||
}
|
||||
/**
|
||||
* 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.
|
||||
* (products.update)
|
||||
*
|
||||
* @param string $parent Parent ID in the format `accounts/{account_id}`.
|
||||
*
|
||||
* `account_id` - The ID of the Manufacturer Center account.
|
||||
* @param string $name 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.
|
||||
* @param Google_Service_ManufacturerCenter_Attributes $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_ManufacturerCenter_ManufacturersEmpty
|
||||
*/
|
||||
public function update($parent, $name, Google_Service_ManufacturerCenter_Attributes $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('parent' => $parent, 'name' => $name, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('update', array($params), "Google_Service_ManufacturerCenter_ManufacturersEmpty");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user