[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 Area120Tables (v1alpha1).
|
---|
| 24 | *
|
---|
| 25 | * <p>
|
---|
| 26 | </p>
|
---|
| 27 | *
|
---|
| 28 | * <p>
|
---|
| 29 | * For more information about this service, see the API
|
---|
| 30 | * <a href="https://support.google.com/area120-tables/answer/10011390" target="_blank">Documentation</a>
|
---|
| 31 | * </p>
|
---|
| 32 | *
|
---|
| 33 | * @author Google, Inc.
|
---|
| 34 | */
|
---|
| 35 | class Area120Tables extends \Google\Service
|
---|
| 36 | {
|
---|
| 37 | /** See, edit, create, and delete all of your Google Drive files. */
|
---|
| 38 | const DRIVE =
|
---|
| 39 | "https://www.googleapis.com/auth/drive";
|
---|
| 40 | /** See, edit, create, and delete only the specific Google Drive files you use with this app. */
|
---|
| 41 | const DRIVE_FILE =
|
---|
| 42 | "https://www.googleapis.com/auth/drive.file";
|
---|
| 43 | /** See and download all your Google Drive files. */
|
---|
| 44 | const DRIVE_READONLY =
|
---|
| 45 | "https://www.googleapis.com/auth/drive.readonly";
|
---|
| 46 | /** See, edit, create, and delete all your Google Sheets spreadsheets. */
|
---|
| 47 | const SPREADSHEETS =
|
---|
| 48 | "https://www.googleapis.com/auth/spreadsheets";
|
---|
| 49 | /** See all your Google Sheets spreadsheets. */
|
---|
| 50 | const SPREADSHEETS_READONLY =
|
---|
| 51 | "https://www.googleapis.com/auth/spreadsheets.readonly";
|
---|
| 52 | /** See, edit, create, and delete your tables in Tables by Area 120. */
|
---|
| 53 | const TABLES =
|
---|
| 54 | "https://www.googleapis.com/auth/tables";
|
---|
| 55 |
|
---|
| 56 | public $tables;
|
---|
| 57 | public $tables_rows;
|
---|
| 58 | public $workspaces;
|
---|
| 59 | public $rootUrlTemplate;
|
---|
| 60 |
|
---|
| 61 | /**
|
---|
| 62 | * Constructs the internal representation of the Area120Tables service.
|
---|
| 63 | *
|
---|
| 64 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
| 65 | * config array to pass to a new Client instance.
|
---|
| 66 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
| 67 | */
|
---|
| 68 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
| 69 | {
|
---|
| 70 | parent::__construct($clientOrConfig);
|
---|
| 71 | $this->rootUrl = $rootUrl ?: 'https://area120tables.googleapis.com/';
|
---|
| 72 | $this->rootUrlTemplate = $rootUrl ?: 'https://area120tables.UNIVERSE_DOMAIN/';
|
---|
| 73 | $this->servicePath = '';
|
---|
| 74 | $this->batchPath = 'batch';
|
---|
| 75 | $this->version = 'v1alpha1';
|
---|
| 76 | $this->serviceName = 'area120tables';
|
---|
| 77 |
|
---|
| 78 | $this->tables = new Area120Tables\Resource\Tables(
|
---|
| 79 | $this,
|
---|
| 80 | $this->serviceName,
|
---|
| 81 | 'tables',
|
---|
| 82 | [
|
---|
| 83 | 'methods' => [
|
---|
| 84 | 'get' => [
|
---|
| 85 | 'path' => 'v1alpha1/{+name}',
|
---|
| 86 | 'httpMethod' => 'GET',
|
---|
| 87 | 'parameters' => [
|
---|
| 88 | 'name' => [
|
---|
| 89 | 'location' => 'path',
|
---|
| 90 | 'type' => 'string',
|
---|
| 91 | 'required' => true,
|
---|
| 92 | ],
|
---|
| 93 | ],
|
---|
| 94 | ],'list' => [
|
---|
| 95 | 'path' => 'v1alpha1/tables',
|
---|
| 96 | 'httpMethod' => 'GET',
|
---|
| 97 | 'parameters' => [
|
---|
| 98 | 'orderBy' => [
|
---|
| 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 | ],
|
---|
| 112 | ]
|
---|
| 113 | ]
|
---|
| 114 | );
|
---|
| 115 | $this->tables_rows = new Area120Tables\Resource\TablesRows(
|
---|
| 116 | $this,
|
---|
| 117 | $this->serviceName,
|
---|
| 118 | 'rows',
|
---|
| 119 | [
|
---|
| 120 | 'methods' => [
|
---|
| 121 | 'batchCreate' => [
|
---|
| 122 | 'path' => 'v1alpha1/{+parent}/rows:batchCreate',
|
---|
| 123 | 'httpMethod' => 'POST',
|
---|
| 124 | 'parameters' => [
|
---|
| 125 | 'parent' => [
|
---|
| 126 | 'location' => 'path',
|
---|
| 127 | 'type' => 'string',
|
---|
| 128 | 'required' => true,
|
---|
| 129 | ],
|
---|
| 130 | ],
|
---|
| 131 | ],'batchDelete' => [
|
---|
| 132 | 'path' => 'v1alpha1/{+parent}/rows:batchDelete',
|
---|
| 133 | 'httpMethod' => 'POST',
|
---|
| 134 | 'parameters' => [
|
---|
| 135 | 'parent' => [
|
---|
| 136 | 'location' => 'path',
|
---|
| 137 | 'type' => 'string',
|
---|
| 138 | 'required' => true,
|
---|
| 139 | ],
|
---|
| 140 | ],
|
---|
| 141 | ],'batchUpdate' => [
|
---|
| 142 | 'path' => 'v1alpha1/{+parent}/rows:batchUpdate',
|
---|
| 143 | 'httpMethod' => 'POST',
|
---|
| 144 | 'parameters' => [
|
---|
| 145 | 'parent' => [
|
---|
| 146 | 'location' => 'path',
|
---|
| 147 | 'type' => 'string',
|
---|
| 148 | 'required' => true,
|
---|
| 149 | ],
|
---|
| 150 | ],
|
---|
| 151 | ],'create' => [
|
---|
| 152 | 'path' => 'v1alpha1/{+parent}/rows',
|
---|
| 153 | 'httpMethod' => 'POST',
|
---|
| 154 | 'parameters' => [
|
---|
| 155 | 'parent' => [
|
---|
| 156 | 'location' => 'path',
|
---|
| 157 | 'type' => 'string',
|
---|
| 158 | 'required' => true,
|
---|
| 159 | ],
|
---|
| 160 | 'view' => [
|
---|
| 161 | 'location' => 'query',
|
---|
| 162 | 'type' => 'string',
|
---|
| 163 | ],
|
---|
| 164 | ],
|
---|
| 165 | ],'delete' => [
|
---|
| 166 | 'path' => 'v1alpha1/{+name}',
|
---|
| 167 | 'httpMethod' => 'DELETE',
|
---|
| 168 | 'parameters' => [
|
---|
| 169 | 'name' => [
|
---|
| 170 | 'location' => 'path',
|
---|
| 171 | 'type' => 'string',
|
---|
| 172 | 'required' => true,
|
---|
| 173 | ],
|
---|
| 174 | ],
|
---|
| 175 | ],'get' => [
|
---|
| 176 | 'path' => 'v1alpha1/{+name}',
|
---|
| 177 | 'httpMethod' => 'GET',
|
---|
| 178 | 'parameters' => [
|
---|
| 179 | 'name' => [
|
---|
| 180 | 'location' => 'path',
|
---|
| 181 | 'type' => 'string',
|
---|
| 182 | 'required' => true,
|
---|
| 183 | ],
|
---|
| 184 | 'view' => [
|
---|
| 185 | 'location' => 'query',
|
---|
| 186 | 'type' => 'string',
|
---|
| 187 | ],
|
---|
| 188 | ],
|
---|
| 189 | ],'list' => [
|
---|
| 190 | 'path' => 'v1alpha1/{+parent}/rows',
|
---|
| 191 | 'httpMethod' => 'GET',
|
---|
| 192 | 'parameters' => [
|
---|
| 193 | 'parent' => [
|
---|
| 194 | 'location' => 'path',
|
---|
| 195 | 'type' => 'string',
|
---|
| 196 | 'required' => true,
|
---|
| 197 | ],
|
---|
| 198 | 'filter' => [
|
---|
| 199 | 'location' => 'query',
|
---|
| 200 | 'type' => 'string',
|
---|
| 201 | ],
|
---|
| 202 | 'orderBy' => [
|
---|
| 203 | 'location' => 'query',
|
---|
| 204 | 'type' => 'string',
|
---|
| 205 | ],
|
---|
| 206 | 'pageSize' => [
|
---|
| 207 | 'location' => 'query',
|
---|
| 208 | 'type' => 'integer',
|
---|
| 209 | ],
|
---|
| 210 | 'pageToken' => [
|
---|
| 211 | 'location' => 'query',
|
---|
| 212 | 'type' => 'string',
|
---|
| 213 | ],
|
---|
| 214 | 'view' => [
|
---|
| 215 | 'location' => 'query',
|
---|
| 216 | 'type' => 'string',
|
---|
| 217 | ],
|
---|
| 218 | ],
|
---|
| 219 | ],'patch' => [
|
---|
| 220 | 'path' => 'v1alpha1/{+name}',
|
---|
| 221 | 'httpMethod' => 'PATCH',
|
---|
| 222 | 'parameters' => [
|
---|
| 223 | 'name' => [
|
---|
| 224 | 'location' => 'path',
|
---|
| 225 | 'type' => 'string',
|
---|
| 226 | 'required' => true,
|
---|
| 227 | ],
|
---|
| 228 | 'updateMask' => [
|
---|
| 229 | 'location' => 'query',
|
---|
| 230 | 'type' => 'string',
|
---|
| 231 | ],
|
---|
| 232 | 'view' => [
|
---|
| 233 | 'location' => 'query',
|
---|
| 234 | 'type' => 'string',
|
---|
| 235 | ],
|
---|
| 236 | ],
|
---|
| 237 | ],
|
---|
| 238 | ]
|
---|
| 239 | ]
|
---|
| 240 | );
|
---|
| 241 | $this->workspaces = new Area120Tables\Resource\Workspaces(
|
---|
| 242 | $this,
|
---|
| 243 | $this->serviceName,
|
---|
| 244 | 'workspaces',
|
---|
| 245 | [
|
---|
| 246 | 'methods' => [
|
---|
| 247 | 'get' => [
|
---|
| 248 | 'path' => 'v1alpha1/{+name}',
|
---|
| 249 | 'httpMethod' => 'GET',
|
---|
| 250 | 'parameters' => [
|
---|
| 251 | 'name' => [
|
---|
| 252 | 'location' => 'path',
|
---|
| 253 | 'type' => 'string',
|
---|
| 254 | 'required' => true,
|
---|
| 255 | ],
|
---|
| 256 | ],
|
---|
| 257 | ],'list' => [
|
---|
| 258 | 'path' => 'v1alpha1/workspaces',
|
---|
| 259 | 'httpMethod' => 'GET',
|
---|
| 260 | 'parameters' => [
|
---|
| 261 | 'pageSize' => [
|
---|
| 262 | 'location' => 'query',
|
---|
| 263 | 'type' => 'integer',
|
---|
| 264 | ],
|
---|
| 265 | 'pageToken' => [
|
---|
| 266 | 'location' => 'query',
|
---|
| 267 | 'type' => 'string',
|
---|
| 268 | ],
|
---|
| 269 | ],
|
---|
| 270 | ],
|
---|
| 271 | ]
|
---|
| 272 | ]
|
---|
| 273 | );
|
---|
| 274 | }
|
---|
| 275 | }
|
---|
| 276 |
|
---|
| 277 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 278 | class_alias(Area120Tables::class, 'Google_Service_Area120Tables');
|
---|