Initial commit

This commit is contained in:
Caribana
2017-05-26 11:41:26 +02:00
commit 61c24500af
6264 changed files with 645934 additions and 0 deletions

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2016 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_ManufacturerCenter_Attributes extends Google_Collection
{
protected $collection_key = 'productType';
public $brand;
public $gtin;
public $mpn;
public $productLine;
public $productName;
public $productPageUrl;
public $productType;
public $title;
public function setBrand($brand)
{
$this->brand = $brand;
}
public function getBrand()
{
return $this->brand;
}
public function setGtin($gtin)
{
$this->gtin = $gtin;
}
public function getGtin()
{
return $this->gtin;
}
public function setMpn($mpn)
{
$this->mpn = $mpn;
}
public function getMpn()
{
return $this->mpn;
}
public function setProductLine($productLine)
{
$this->productLine = $productLine;
}
public function getProductLine()
{
return $this->productLine;
}
public function setProductName($productName)
{
$this->productName = $productName;
}
public function getProductName()
{
return $this->productName;
}
public function setProductPageUrl($productPageUrl)
{
$this->productPageUrl = $productPageUrl;
}
public function getProductPageUrl()
{
return $this->productPageUrl;
}
public function setProductType($productType)
{
$this->productType = $productType;
}
public function getProductType()
{
return $this->productType;
}
public function setTitle($title)
{
$this->title = $title;
}
public function getTitle()
{
return $this->title;
}
}

View File

@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2016 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_ManufacturerCenter_Issue extends Google_Model
{
public $attribute;
public $description;
public $severity;
public $type;
public function setAttribute($attribute)
{
$this->attribute = $attribute;
}
public function getAttribute()
{
return $this->attribute;
}
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setSeverity($severity)
{
$this->severity = $severity;
}
public function getSeverity()
{
return $this->severity;
}
public function setType($type)
{
$this->type = $type;
}
public function getType()
{
return $this->type;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_ManufacturerCenter_ListProductsResponse extends Google_Collection
{
protected $collection_key = 'products';
public $nextPageToken;
protected $productsType = 'Google_Service_ManufacturerCenter_Product';
protected $productsDataType = 'array';
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
public function setProducts($products)
{
$this->products = $products;
}
public function getProducts()
{
return $this->products;
}
}

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2016 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_ManufacturerCenter_Product extends Google_Collection
{
protected $collection_key = 'manuallyDeletedAttributes';
public $contentLanguage;
protected $finalAttributesType = 'Google_Service_ManufacturerCenter_Attributes';
protected $finalAttributesDataType = '';
protected $issuesType = 'Google_Service_ManufacturerCenter_Issue';
protected $issuesDataType = 'array';
public $manuallyDeletedAttributes;
protected $manuallyProvidedAttributesType = 'Google_Service_ManufacturerCenter_Attributes';
protected $manuallyProvidedAttributesDataType = '';
public $name;
public $parent;
public $productId;
public $targetCountry;
protected $uploadedAttributesType = 'Google_Service_ManufacturerCenter_Attributes';
protected $uploadedAttributesDataType = '';
public function setContentLanguage($contentLanguage)
{
$this->contentLanguage = $contentLanguage;
}
public function getContentLanguage()
{
return $this->contentLanguage;
}
public function setFinalAttributes(Google_Service_ManufacturerCenter_Attributes $finalAttributes)
{
$this->finalAttributes = $finalAttributes;
}
public function getFinalAttributes()
{
return $this->finalAttributes;
}
public function setIssues($issues)
{
$this->issues = $issues;
}
public function getIssues()
{
return $this->issues;
}
public function setManuallyDeletedAttributes($manuallyDeletedAttributes)
{
$this->manuallyDeletedAttributes = $manuallyDeletedAttributes;
}
public function getManuallyDeletedAttributes()
{
return $this->manuallyDeletedAttributes;
}
public function setManuallyProvidedAttributes(Google_Service_ManufacturerCenter_Attributes $manuallyProvidedAttributes)
{
$this->manuallyProvidedAttributes = $manuallyProvidedAttributes;
}
public function getManuallyProvidedAttributes()
{
return $this->manuallyProvidedAttributes;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setParent($parent)
{
$this->parent = $parent;
}
public function getParent()
{
return $this->parent;
}
public function setProductId($productId)
{
$this->productId = $productId;
}
public function getProductId()
{
return $this->productId;
}
public function setTargetCountry($targetCountry)
{
$this->targetCountry = $targetCountry;
}
public function getTargetCountry()
{
return $this->targetCountry;
}
public function setUploadedAttributes(Google_Service_ManufacturerCenter_Attributes $uploadedAttributes)
{
$this->uploadedAttributes = $uploadedAttributes;
}
public function getUploadedAttributes()
{
return $this->uploadedAttributes;
}
}

View File

@@ -0,0 +1,28 @@
<?php
/*
* Copyright 2016 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "accounts" collection of methods.
* Typical usage is:
* <code>
* $manufacturersService = new Google_Service_ManufacturerCenter(...);
* $accounts = $manufacturersService->accounts;
* </code>
*/
class Google_Service_ManufacturerCenter_Resource_Accounts extends Google_Service_Resource
{
}

View File

@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2016 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "products" collection of methods.
* Typical usage is:
* <code>
* $manufacturersService = new Google_Service_ManufacturerCenter(...);
* $products = $manufacturersService->products;
* </code>
*/
class Google_Service_ManufacturerCenter_Resource_AccountsProducts extends Google_Service_Resource
{
/**
* Gets the product from a Manufacturer Center account, including product
* issues. (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.
* @return Google_Service_ManufacturerCenter_Product
*/
public function get($parent, $name, $optParams = array())
{
$params = array('parent' => $parent, 'name' => $name);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_ManufacturerCenter_Product");
}
/**
* Lists all the products in a Manufacturer Center account.
* (products.listAccountsProducts)
*
* @param string $parent Parent ID in the format `accounts/{account_id}`.
*
* `account_id` - The ID of the Manufacturer Center account.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of product statuses to return in the
* response, used for paging.
* @opt_param string pageToken The token returned by the previous request.
* @return Google_Service_ManufacturerCenter_ListProductsResponse
*/
public function listAccountsProducts($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_ManufacturerCenter_ListProductsResponse");
}
}