1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18/** 19 * Service definition for ManufacturerCenter (v1). 20 * 21 * <p> 22 * Public API for managing Manufacturer Center related data.</p> 23 * 24 * <p> 25 * For more information about this service, see the API 26 * <a href="https://developers.google.com/manufacturers/" target="_blank">Documentation</a> 27 * </p> 28 * 29 * @author Google, Inc. 30 */ 31class Google_Service_ManufacturerCenter extends Google_Service 32{ 33 /** Manage your product listings for Google Manufacturer Center. */ 34 const MANUFACTURERCENTER = 35 "https://www.googleapis.com/auth/manufacturercenter"; 36 37 public $accounts_products; 38 39 /** 40 * Constructs the internal representation of the ManufacturerCenter service. 41 * 42 * @param Google_Client $client 43 */ 44 public function __construct(Google_Client $client) 45 { 46 parent::__construct($client); 47 $this->rootUrl = 'https://manufacturers.googleapis.com/'; 48 $this->servicePath = ''; 49 $this->batchPath = 'batch'; 50 $this->version = 'v1'; 51 $this->serviceName = 'manufacturers'; 52 53 $this->accounts_products = new Google_Service_ManufacturerCenter_Resource_AccountsProducts( 54 $this, 55 $this->serviceName, 56 'products', 57 array( 58 'methods' => array( 59 'delete' => array( 60 'path' => 'v1/{+parent}/products/{+name}', 61 'httpMethod' => 'DELETE', 62 'parameters' => array( 63 'parent' => array( 64 'location' => 'path', 65 'type' => 'string', 66 'required' => true, 67 ), 68 'name' => array( 69 'location' => 'path', 70 'type' => 'string', 71 'required' => true, 72 ), 73 ), 74 ),'get' => array( 75 'path' => 'v1/{+parent}/products/{+name}', 76 'httpMethod' => 'GET', 77 'parameters' => array( 78 'parent' => array( 79 'location' => 'path', 80 'type' => 'string', 81 'required' => true, 82 ), 83 'name' => array( 84 'location' => 'path', 85 'type' => 'string', 86 'required' => true, 87 ), 88 'include' => array( 89 'location' => 'query', 90 'type' => 'string', 91 'repeated' => true, 92 ), 93 ), 94 ),'list' => array( 95 'path' => 'v1/{+parent}/products', 96 'httpMethod' => 'GET', 97 'parameters' => array( 98 'parent' => array( 99 'location' => 'path', 100 'type' => 'string', 101 'required' => true, 102 ), 103 'pageToken' => array( 104 'location' => 'query', 105 'type' => 'string', 106 ), 107 'pageSize' => array( 108 'location' => 'query', 109 'type' => 'integer', 110 ), 111 'include' => array( 112 'location' => 'query', 113 'type' => 'string', 114 'repeated' => true, 115 ), 116 ), 117 ),'update' => array( 118 'path' => 'v1/{+parent}/products/{+name}', 119 'httpMethod' => 'PUT', 120 'parameters' => array( 121 'parent' => array( 122 'location' => 'path', 123 'type' => 'string', 124 'required' => true, 125 ), 126 'name' => array( 127 'location' => 'path', 128 'type' => 'string', 129 'required' => true, 130 ), 131 ), 132 ), 133 ) 134 ) 135 ); 136 } 137} 138