[e3d4e0a] | 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 | namespace Google\Service;
|
---|
| 19 |
|
---|
| 20 | use Google\Client;
|
---|
| 21 |
|
---|
| 22 | /**
|
---|
| 23 | * Service definition for Css (v1).
|
---|
| 24 | *
|
---|
| 25 | * <p>
|
---|
| 26 | * Programmatically manage your Comparison Shopping Service (CSS) account data
|
---|
| 27 | * at scale.</p>
|
---|
| 28 | *
|
---|
| 29 | * <p>
|
---|
| 30 | * For more information about this service, see the API
|
---|
| 31 | * <a href="https://developers.google.com/comparison-shopping-services/api/overview" target="_blank">Documentation</a>
|
---|
| 32 | * </p>
|
---|
| 33 | *
|
---|
| 34 | * @author Google, Inc.
|
---|
| 35 | */
|
---|
| 36 | class Css extends \Google\Service
|
---|
| 37 | {
|
---|
| 38 | /** Manage your product listings and accounts for Google Shopping. */
|
---|
| 39 | const CONTENT =
|
---|
| 40 | "https://www.googleapis.com/auth/content";
|
---|
| 41 |
|
---|
| 42 | public $accounts;
|
---|
| 43 | public $accounts_cssProductInputs;
|
---|
| 44 | public $accounts_cssProducts;
|
---|
| 45 | public $accounts_labels;
|
---|
| 46 | public $rootUrlTemplate;
|
---|
| 47 |
|
---|
| 48 | /**
|
---|
| 49 | * Constructs the internal representation of the Css service.
|
---|
| 50 | *
|
---|
| 51 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
| 52 | * config array to pass to a new Client instance.
|
---|
| 53 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
| 54 | */
|
---|
| 55 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
| 56 | {
|
---|
| 57 | parent::__construct($clientOrConfig);
|
---|
| 58 | $this->rootUrl = $rootUrl ?: 'https://css.googleapis.com/';
|
---|
| 59 | $this->rootUrlTemplate = $rootUrl ?: 'https://css.UNIVERSE_DOMAIN/';
|
---|
| 60 | $this->servicePath = '';
|
---|
| 61 | $this->batchPath = 'batch';
|
---|
| 62 | $this->version = 'v1';
|
---|
| 63 | $this->serviceName = 'css';
|
---|
| 64 |
|
---|
| 65 | $this->accounts = new Css\Resource\Accounts(
|
---|
| 66 | $this,
|
---|
| 67 | $this->serviceName,
|
---|
| 68 | 'accounts',
|
---|
| 69 | [
|
---|
| 70 | 'methods' => [
|
---|
| 71 | 'get' => [
|
---|
| 72 | 'path' => 'v1/{+name}',
|
---|
| 73 | 'httpMethod' => 'GET',
|
---|
| 74 | 'parameters' => [
|
---|
| 75 | 'name' => [
|
---|
| 76 | 'location' => 'path',
|
---|
| 77 | 'type' => 'string',
|
---|
| 78 | 'required' => true,
|
---|
| 79 | ],
|
---|
| 80 | 'parent' => [
|
---|
| 81 | 'location' => 'query',
|
---|
| 82 | 'type' => 'string',
|
---|
| 83 | ],
|
---|
| 84 | ],
|
---|
| 85 | ],'listChildAccounts' => [
|
---|
| 86 | 'path' => 'v1/{+parent}:listChildAccounts',
|
---|
| 87 | 'httpMethod' => 'GET',
|
---|
| 88 | 'parameters' => [
|
---|
| 89 | 'parent' => [
|
---|
| 90 | 'location' => 'path',
|
---|
| 91 | 'type' => 'string',
|
---|
| 92 | 'required' => true,
|
---|
| 93 | ],
|
---|
| 94 | 'fullName' => [
|
---|
| 95 | 'location' => 'query',
|
---|
| 96 | 'type' => 'string',
|
---|
| 97 | ],
|
---|
| 98 | 'labelId' => [
|
---|
| 99 | 'location' => 'query',
|
---|
| 100 | 'type' => 'string',
|
---|
| 101 | ],
|
---|
| 102 | 'pageSize' => [
|
---|
| 103 | 'location' => 'query',
|
---|
| 104 | 'type' => 'integer',
|
---|
| 105 | ],
|
---|
| 106 | 'pageToken' => [
|
---|
| 107 | 'location' => 'query',
|
---|
| 108 | 'type' => 'string',
|
---|
| 109 | ],
|
---|
| 110 | ],
|
---|
| 111 | ],'updateLabels' => [
|
---|
| 112 | 'path' => 'v1/{+name}:updateLabels',
|
---|
| 113 | 'httpMethod' => 'POST',
|
---|
| 114 | 'parameters' => [
|
---|
| 115 | 'name' => [
|
---|
| 116 | 'location' => 'path',
|
---|
| 117 | 'type' => 'string',
|
---|
| 118 | 'required' => true,
|
---|
| 119 | ],
|
---|
| 120 | ],
|
---|
| 121 | ],
|
---|
| 122 | ]
|
---|
| 123 | ]
|
---|
| 124 | );
|
---|
| 125 | $this->accounts_cssProductInputs = new Css\Resource\AccountsCssProductInputs(
|
---|
| 126 | $this,
|
---|
| 127 | $this->serviceName,
|
---|
| 128 | 'cssProductInputs',
|
---|
| 129 | [
|
---|
| 130 | 'methods' => [
|
---|
| 131 | 'delete' => [
|
---|
| 132 | 'path' => 'v1/{+name}',
|
---|
| 133 | 'httpMethod' => 'DELETE',
|
---|
| 134 | 'parameters' => [
|
---|
| 135 | 'name' => [
|
---|
| 136 | 'location' => 'path',
|
---|
| 137 | 'type' => 'string',
|
---|
| 138 | 'required' => true,
|
---|
| 139 | ],
|
---|
| 140 | 'supplementalFeedId' => [
|
---|
| 141 | 'location' => 'query',
|
---|
| 142 | 'type' => 'string',
|
---|
| 143 | ],
|
---|
| 144 | ],
|
---|
| 145 | ],'insert' => [
|
---|
| 146 | 'path' => 'v1/{+parent}/cssProductInputs:insert',
|
---|
| 147 | 'httpMethod' => 'POST',
|
---|
| 148 | 'parameters' => [
|
---|
| 149 | 'parent' => [
|
---|
| 150 | 'location' => 'path',
|
---|
| 151 | 'type' => 'string',
|
---|
| 152 | 'required' => true,
|
---|
| 153 | ],
|
---|
| 154 | 'feedId' => [
|
---|
| 155 | 'location' => 'query',
|
---|
| 156 | 'type' => 'string',
|
---|
| 157 | ],
|
---|
| 158 | ],
|
---|
| 159 | ],
|
---|
| 160 | ]
|
---|
| 161 | ]
|
---|
| 162 | );
|
---|
| 163 | $this->accounts_cssProducts = new Css\Resource\AccountsCssProducts(
|
---|
| 164 | $this,
|
---|
| 165 | $this->serviceName,
|
---|
| 166 | 'cssProducts',
|
---|
| 167 | [
|
---|
| 168 | 'methods' => [
|
---|
| 169 | 'get' => [
|
---|
| 170 | 'path' => 'v1/{+name}',
|
---|
| 171 | 'httpMethod' => 'GET',
|
---|
| 172 | 'parameters' => [
|
---|
| 173 | 'name' => [
|
---|
| 174 | 'location' => 'path',
|
---|
| 175 | 'type' => 'string',
|
---|
| 176 | 'required' => true,
|
---|
| 177 | ],
|
---|
| 178 | ],
|
---|
| 179 | ],'list' => [
|
---|
| 180 | 'path' => 'v1/{+parent}/cssProducts',
|
---|
| 181 | 'httpMethod' => 'GET',
|
---|
| 182 | 'parameters' => [
|
---|
| 183 | 'parent' => [
|
---|
| 184 | 'location' => 'path',
|
---|
| 185 | 'type' => 'string',
|
---|
| 186 | 'required' => true,
|
---|
| 187 | ],
|
---|
| 188 | 'pageSize' => [
|
---|
| 189 | 'location' => 'query',
|
---|
| 190 | 'type' => 'integer',
|
---|
| 191 | ],
|
---|
| 192 | 'pageToken' => [
|
---|
| 193 | 'location' => 'query',
|
---|
| 194 | 'type' => 'string',
|
---|
| 195 | ],
|
---|
| 196 | ],
|
---|
| 197 | ],
|
---|
| 198 | ]
|
---|
| 199 | ]
|
---|
| 200 | );
|
---|
| 201 | $this->accounts_labels = new Css\Resource\AccountsLabels(
|
---|
| 202 | $this,
|
---|
| 203 | $this->serviceName,
|
---|
| 204 | 'labels',
|
---|
| 205 | [
|
---|
| 206 | 'methods' => [
|
---|
| 207 | 'create' => [
|
---|
| 208 | 'path' => 'v1/{+parent}/labels',
|
---|
| 209 | 'httpMethod' => 'POST',
|
---|
| 210 | 'parameters' => [
|
---|
| 211 | 'parent' => [
|
---|
| 212 | 'location' => 'path',
|
---|
| 213 | 'type' => 'string',
|
---|
| 214 | 'required' => true,
|
---|
| 215 | ],
|
---|
| 216 | ],
|
---|
| 217 | ],'delete' => [
|
---|
| 218 | 'path' => 'v1/{+name}',
|
---|
| 219 | 'httpMethod' => 'DELETE',
|
---|
| 220 | 'parameters' => [
|
---|
| 221 | 'name' => [
|
---|
| 222 | 'location' => 'path',
|
---|
| 223 | 'type' => 'string',
|
---|
| 224 | 'required' => true,
|
---|
| 225 | ],
|
---|
| 226 | ],
|
---|
| 227 | ],'list' => [
|
---|
| 228 | 'path' => 'v1/{+parent}/labels',
|
---|
| 229 | 'httpMethod' => 'GET',
|
---|
| 230 | 'parameters' => [
|
---|
| 231 | 'parent' => [
|
---|
| 232 | 'location' => 'path',
|
---|
| 233 | 'type' => 'string',
|
---|
| 234 | 'required' => true,
|
---|
| 235 | ],
|
---|
| 236 | 'pageSize' => [
|
---|
| 237 | 'location' => 'query',
|
---|
| 238 | 'type' => 'integer',
|
---|
| 239 | ],
|
---|
| 240 | 'pageToken' => [
|
---|
| 241 | 'location' => 'query',
|
---|
| 242 | 'type' => 'string',
|
---|
| 243 | ],
|
---|
| 244 | ],
|
---|
| 245 | ],'patch' => [
|
---|
| 246 | 'path' => 'v1/{+name}',
|
---|
| 247 | 'httpMethod' => 'PATCH',
|
---|
| 248 | 'parameters' => [
|
---|
| 249 | 'name' => [
|
---|
| 250 | 'location' => 'path',
|
---|
| 251 | 'type' => 'string',
|
---|
| 252 | 'required' => true,
|
---|
| 253 | ],
|
---|
| 254 | ],
|
---|
| 255 | ],
|
---|
| 256 | ]
|
---|
| 257 | ]
|
---|
| 258 | );
|
---|
| 259 | }
|
---|
| 260 | }
|
---|
| 261 |
|
---|
| 262 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 263 | class_alias(Css::class, 'Google_Service_Css');
|
---|