source: vendor/google/apiclient-services/src/ManufacturerCenter.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload new project files

  • Property mode set to 100644
File size: 6.6 KB
Line 
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
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for ManufacturerCenter (v1).
24 *
25 * <p>
26 * Public API for managing Manufacturer Center related data.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://developers.google.com/manufacturers/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class ManufacturerCenter extends \Google\Service
36{
37 /** Manage your product listings for Google Manufacturer Center. */
38 const MANUFACTURERCENTER =
39 "https://www.googleapis.com/auth/manufacturercenter";
40
41 public $accounts_languages_productCertifications;
42 public $accounts_products;
43 public $rootUrlTemplate;
44
45 /**
46 * Constructs the internal representation of the ManufacturerCenter service.
47 *
48 * @param Client|array $clientOrConfig The client used to deliver requests, or a
49 * config array to pass to a new Client instance.
50 * @param string $rootUrl The root URL used for requests to the service.
51 */
52 public function __construct($clientOrConfig = [], $rootUrl = null)
53 {
54 parent::__construct($clientOrConfig);
55 $this->rootUrl = $rootUrl ?: 'https://manufacturers.googleapis.com/';
56 $this->rootUrlTemplate = $rootUrl ?: 'https://manufacturers.UNIVERSE_DOMAIN/';
57 $this->servicePath = '';
58 $this->batchPath = 'batch';
59 $this->version = 'v1';
60 $this->serviceName = 'manufacturers';
61
62 $this->accounts_languages_productCertifications = new ManufacturerCenter\Resource\AccountsLanguagesProductCertifications(
63 $this,
64 $this->serviceName,
65 'productCertifications',
66 [
67 'methods' => [
68 'delete' => [
69 'path' => 'v1/{+name}',
70 'httpMethod' => 'DELETE',
71 'parameters' => [
72 'name' => [
73 'location' => 'path',
74 'type' => 'string',
75 'required' => true,
76 ],
77 ],
78 ],'get' => [
79 'path' => 'v1/{+name}',
80 'httpMethod' => 'GET',
81 'parameters' => [
82 'name' => [
83 'location' => 'path',
84 'type' => 'string',
85 'required' => true,
86 ],
87 ],
88 ],'list' => [
89 'path' => 'v1/{+parent}/productCertifications',
90 'httpMethod' => 'GET',
91 'parameters' => [
92 'parent' => [
93 'location' => 'path',
94 'type' => 'string',
95 'required' => true,
96 ],
97 'pageSize' => [
98 'location' => 'query',
99 'type' => 'integer',
100 ],
101 'pageToken' => [
102 'location' => 'query',
103 'type' => 'string',
104 ],
105 ],
106 ],'patch' => [
107 'path' => 'v1/{+name}',
108 'httpMethod' => 'PATCH',
109 'parameters' => [
110 'name' => [
111 'location' => 'path',
112 'type' => 'string',
113 'required' => true,
114 ],
115 'updateMask' => [
116 'location' => 'query',
117 'type' => 'string',
118 ],
119 ],
120 ],
121 ]
122 ]
123 );
124 $this->accounts_products = new ManufacturerCenter\Resource\AccountsProducts(
125 $this,
126 $this->serviceName,
127 'products',
128 [
129 'methods' => [
130 'delete' => [
131 'path' => 'v1/{+parent}/products/{+name}',
132 'httpMethod' => 'DELETE',
133 'parameters' => [
134 'parent' => [
135 'location' => 'path',
136 'type' => 'string',
137 'required' => true,
138 ],
139 'name' => [
140 'location' => 'path',
141 'type' => 'string',
142 'required' => true,
143 ],
144 ],
145 ],'get' => [
146 'path' => 'v1/{+parent}/products/{+name}',
147 'httpMethod' => 'GET',
148 'parameters' => [
149 'parent' => [
150 'location' => 'path',
151 'type' => 'string',
152 'required' => true,
153 ],
154 'name' => [
155 'location' => 'path',
156 'type' => 'string',
157 'required' => true,
158 ],
159 'include' => [
160 'location' => 'query',
161 'type' => 'string',
162 'repeated' => true,
163 ],
164 ],
165 ],'list' => [
166 'path' => 'v1/{+parent}/products',
167 'httpMethod' => 'GET',
168 'parameters' => [
169 'parent' => [
170 'location' => 'path',
171 'type' => 'string',
172 'required' => true,
173 ],
174 'include' => [
175 'location' => 'query',
176 'type' => 'string',
177 'repeated' => true,
178 ],
179 'pageSize' => [
180 'location' => 'query',
181 'type' => 'integer',
182 ],
183 'pageToken' => [
184 'location' => 'query',
185 'type' => 'string',
186 ],
187 ],
188 ],'update' => [
189 'path' => 'v1/{+parent}/products/{+name}',
190 'httpMethod' => 'PUT',
191 'parameters' => [
192 'parent' => [
193 'location' => 'path',
194 'type' => 'string',
195 'required' => true,
196 ],
197 'name' => [
198 'location' => 'path',
199 'type' => 'string',
200 'required' => true,
201 ],
202 ],
203 ],
204 ]
205 ]
206 );
207 }
208}
209
210// Adding a class alias for backwards compatibility with the previous class name.
211class_alias(ManufacturerCenter::class, 'Google_Service_ManufacturerCenter');
Note: See TracBrowser for help on using the repository browser.