[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 DataFusion (v1).
|
---|
| 24 | *
|
---|
| 25 | * <p>
|
---|
| 26 | * Cloud Data Fusion is a fully-managed, cloud native, enterprise data
|
---|
| 27 | * integration service for quickly building and managing data pipelines. It
|
---|
| 28 | * provides a graphical interface to increase time efficiency and reduce
|
---|
| 29 | * complexity, and allows business users, developers, and data scientists to
|
---|
| 30 | * easily and reliably build scalable data integration solutions to cleanse,
|
---|
| 31 | * prepare, blend, transfer and transform data without having to wrestle with
|
---|
| 32 | * infrastructure.</p>
|
---|
| 33 | *
|
---|
| 34 | * <p>
|
---|
| 35 | * For more information about this service, see the API
|
---|
| 36 | * <a href="https://cloud.google.com/data-fusion/docs" target="_blank">Documentation</a>
|
---|
| 37 | * </p>
|
---|
| 38 | *
|
---|
| 39 | * @author Google, Inc.
|
---|
| 40 | */
|
---|
| 41 | class DataFusion extends \Google\Service
|
---|
| 42 | {
|
---|
| 43 | /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
|
---|
| 44 | const CLOUD_PLATFORM =
|
---|
| 45 | "https://www.googleapis.com/auth/cloud-platform";
|
---|
| 46 |
|
---|
| 47 | public $projects_locations;
|
---|
| 48 | public $projects_locations_instances;
|
---|
| 49 | public $projects_locations_instances_dnsPeerings;
|
---|
| 50 | public $projects_locations_operations;
|
---|
| 51 | public $projects_locations_versions;
|
---|
| 52 | public $rootUrlTemplate;
|
---|
| 53 |
|
---|
| 54 | /**
|
---|
| 55 | * Constructs the internal representation of the DataFusion service.
|
---|
| 56 | *
|
---|
| 57 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
| 58 | * config array to pass to a new Client instance.
|
---|
| 59 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
| 60 | */
|
---|
| 61 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
| 62 | {
|
---|
| 63 | parent::__construct($clientOrConfig);
|
---|
| 64 | $this->rootUrl = $rootUrl ?: 'https://datafusion.googleapis.com/';
|
---|
| 65 | $this->rootUrlTemplate = $rootUrl ?: 'https://datafusion.UNIVERSE_DOMAIN/';
|
---|
| 66 | $this->servicePath = '';
|
---|
| 67 | $this->batchPath = 'batch';
|
---|
| 68 | $this->version = 'v1';
|
---|
| 69 | $this->serviceName = 'datafusion';
|
---|
| 70 |
|
---|
| 71 | $this->projects_locations = new DataFusion\Resource\ProjectsLocations(
|
---|
| 72 | $this,
|
---|
| 73 | $this->serviceName,
|
---|
| 74 | 'locations',
|
---|
| 75 | [
|
---|
| 76 | 'methods' => [
|
---|
| 77 | 'get' => [
|
---|
| 78 | 'path' => 'v1/{+name}',
|
---|
| 79 | 'httpMethod' => 'GET',
|
---|
| 80 | 'parameters' => [
|
---|
| 81 | 'name' => [
|
---|
| 82 | 'location' => 'path',
|
---|
| 83 | 'type' => 'string',
|
---|
| 84 | 'required' => true,
|
---|
| 85 | ],
|
---|
| 86 | ],
|
---|
| 87 | ],'list' => [
|
---|
| 88 | 'path' => 'v1/{+name}/locations',
|
---|
| 89 | 'httpMethod' => 'GET',
|
---|
| 90 | 'parameters' => [
|
---|
| 91 | 'name' => [
|
---|
| 92 | 'location' => 'path',
|
---|
| 93 | 'type' => 'string',
|
---|
| 94 | 'required' => true,
|
---|
| 95 | ],
|
---|
| 96 | 'filter' => [
|
---|
| 97 | 'location' => 'query',
|
---|
| 98 | 'type' => 'string',
|
---|
| 99 | ],
|
---|
| 100 | 'pageSize' => [
|
---|
| 101 | 'location' => 'query',
|
---|
| 102 | 'type' => 'integer',
|
---|
| 103 | ],
|
---|
| 104 | 'pageToken' => [
|
---|
| 105 | 'location' => 'query',
|
---|
| 106 | 'type' => 'string',
|
---|
| 107 | ],
|
---|
| 108 | ],
|
---|
| 109 | ],
|
---|
| 110 | ]
|
---|
| 111 | ]
|
---|
| 112 | );
|
---|
| 113 | $this->projects_locations_instances = new DataFusion\Resource\ProjectsLocationsInstances(
|
---|
| 114 | $this,
|
---|
| 115 | $this->serviceName,
|
---|
| 116 | 'instances',
|
---|
| 117 | [
|
---|
| 118 | 'methods' => [
|
---|
| 119 | 'create' => [
|
---|
| 120 | 'path' => 'v1/{+parent}/instances',
|
---|
| 121 | 'httpMethod' => 'POST',
|
---|
| 122 | 'parameters' => [
|
---|
| 123 | 'parent' => [
|
---|
| 124 | 'location' => 'path',
|
---|
| 125 | 'type' => 'string',
|
---|
| 126 | 'required' => true,
|
---|
| 127 | ],
|
---|
| 128 | 'instanceId' => [
|
---|
| 129 | 'location' => 'query',
|
---|
| 130 | 'type' => 'string',
|
---|
| 131 | ],
|
---|
| 132 | ],
|
---|
| 133 | ],'delete' => [
|
---|
| 134 | 'path' => 'v1/{+name}',
|
---|
| 135 | 'httpMethod' => 'DELETE',
|
---|
| 136 | 'parameters' => [
|
---|
| 137 | 'name' => [
|
---|
| 138 | 'location' => 'path',
|
---|
| 139 | 'type' => 'string',
|
---|
| 140 | 'required' => true,
|
---|
| 141 | ],
|
---|
| 142 | ],
|
---|
| 143 | ],'get' => [
|
---|
| 144 | 'path' => 'v1/{+name}',
|
---|
| 145 | 'httpMethod' => 'GET',
|
---|
| 146 | 'parameters' => [
|
---|
| 147 | 'name' => [
|
---|
| 148 | 'location' => 'path',
|
---|
| 149 | 'type' => 'string',
|
---|
| 150 | 'required' => true,
|
---|
| 151 | ],
|
---|
| 152 | ],
|
---|
| 153 | ],'getIamPolicy' => [
|
---|
| 154 | 'path' => 'v1/{+resource}:getIamPolicy',
|
---|
| 155 | 'httpMethod' => 'GET',
|
---|
| 156 | 'parameters' => [
|
---|
| 157 | 'resource' => [
|
---|
| 158 | 'location' => 'path',
|
---|
| 159 | 'type' => 'string',
|
---|
| 160 | 'required' => true,
|
---|
| 161 | ],
|
---|
| 162 | 'options.requestedPolicyVersion' => [
|
---|
| 163 | 'location' => 'query',
|
---|
| 164 | 'type' => 'integer',
|
---|
| 165 | ],
|
---|
| 166 | ],
|
---|
| 167 | ],'list' => [
|
---|
| 168 | 'path' => 'v1/{+parent}/instances',
|
---|
| 169 | 'httpMethod' => 'GET',
|
---|
| 170 | 'parameters' => [
|
---|
| 171 | 'parent' => [
|
---|
| 172 | 'location' => 'path',
|
---|
| 173 | 'type' => 'string',
|
---|
| 174 | 'required' => true,
|
---|
| 175 | ],
|
---|
| 176 | 'filter' => [
|
---|
| 177 | 'location' => 'query',
|
---|
| 178 | 'type' => 'string',
|
---|
| 179 | ],
|
---|
| 180 | 'orderBy' => [
|
---|
| 181 | 'location' => 'query',
|
---|
| 182 | 'type' => 'string',
|
---|
| 183 | ],
|
---|
| 184 | 'pageSize' => [
|
---|
| 185 | 'location' => 'query',
|
---|
| 186 | 'type' => 'integer',
|
---|
| 187 | ],
|
---|
| 188 | 'pageToken' => [
|
---|
| 189 | 'location' => 'query',
|
---|
| 190 | 'type' => 'string',
|
---|
| 191 | ],
|
---|
| 192 | ],
|
---|
| 193 | ],'patch' => [
|
---|
| 194 | 'path' => 'v1/{+name}',
|
---|
| 195 | 'httpMethod' => 'PATCH',
|
---|
| 196 | 'parameters' => [
|
---|
| 197 | 'name' => [
|
---|
| 198 | 'location' => 'path',
|
---|
| 199 | 'type' => 'string',
|
---|
| 200 | 'required' => true,
|
---|
| 201 | ],
|
---|
| 202 | 'updateMask' => [
|
---|
| 203 | 'location' => 'query',
|
---|
| 204 | 'type' => 'string',
|
---|
| 205 | ],
|
---|
| 206 | ],
|
---|
| 207 | ],'restart' => [
|
---|
| 208 | 'path' => 'v1/{+name}:restart',
|
---|
| 209 | 'httpMethod' => 'POST',
|
---|
| 210 | 'parameters' => [
|
---|
| 211 | 'name' => [
|
---|
| 212 | 'location' => 'path',
|
---|
| 213 | 'type' => 'string',
|
---|
| 214 | 'required' => true,
|
---|
| 215 | ],
|
---|
| 216 | ],
|
---|
| 217 | ],'setIamPolicy' => [
|
---|
| 218 | 'path' => 'v1/{+resource}:setIamPolicy',
|
---|
| 219 | 'httpMethod' => 'POST',
|
---|
| 220 | 'parameters' => [
|
---|
| 221 | 'resource' => [
|
---|
| 222 | 'location' => 'path',
|
---|
| 223 | 'type' => 'string',
|
---|
| 224 | 'required' => true,
|
---|
| 225 | ],
|
---|
| 226 | ],
|
---|
| 227 | ],'testIamPermissions' => [
|
---|
| 228 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
| 229 | 'httpMethod' => 'POST',
|
---|
| 230 | 'parameters' => [
|
---|
| 231 | 'resource' => [
|
---|
| 232 | 'location' => 'path',
|
---|
| 233 | 'type' => 'string',
|
---|
| 234 | 'required' => true,
|
---|
| 235 | ],
|
---|
| 236 | ],
|
---|
| 237 | ],
|
---|
| 238 | ]
|
---|
| 239 | ]
|
---|
| 240 | );
|
---|
| 241 | $this->projects_locations_instances_dnsPeerings = new DataFusion\Resource\ProjectsLocationsInstancesDnsPeerings(
|
---|
| 242 | $this,
|
---|
| 243 | $this->serviceName,
|
---|
| 244 | 'dnsPeerings',
|
---|
| 245 | [
|
---|
| 246 | 'methods' => [
|
---|
| 247 | 'create' => [
|
---|
| 248 | 'path' => 'v1/{+parent}/dnsPeerings',
|
---|
| 249 | 'httpMethod' => 'POST',
|
---|
| 250 | 'parameters' => [
|
---|
| 251 | 'parent' => [
|
---|
| 252 | 'location' => 'path',
|
---|
| 253 | 'type' => 'string',
|
---|
| 254 | 'required' => true,
|
---|
| 255 | ],
|
---|
| 256 | 'dnsPeeringId' => [
|
---|
| 257 | 'location' => 'query',
|
---|
| 258 | 'type' => 'string',
|
---|
| 259 | ],
|
---|
| 260 | ],
|
---|
| 261 | ],'delete' => [
|
---|
| 262 | 'path' => 'v1/{+name}',
|
---|
| 263 | 'httpMethod' => 'DELETE',
|
---|
| 264 | 'parameters' => [
|
---|
| 265 | 'name' => [
|
---|
| 266 | 'location' => 'path',
|
---|
| 267 | 'type' => 'string',
|
---|
| 268 | 'required' => true,
|
---|
| 269 | ],
|
---|
| 270 | ],
|
---|
| 271 | ],'list' => [
|
---|
| 272 | 'path' => 'v1/{+parent}/dnsPeerings',
|
---|
| 273 | 'httpMethod' => 'GET',
|
---|
| 274 | 'parameters' => [
|
---|
| 275 | 'parent' => [
|
---|
| 276 | 'location' => 'path',
|
---|
| 277 | 'type' => 'string',
|
---|
| 278 | 'required' => true,
|
---|
| 279 | ],
|
---|
| 280 | 'pageSize' => [
|
---|
| 281 | 'location' => 'query',
|
---|
| 282 | 'type' => 'integer',
|
---|
| 283 | ],
|
---|
| 284 | 'pageToken' => [
|
---|
| 285 | 'location' => 'query',
|
---|
| 286 | 'type' => 'string',
|
---|
| 287 | ],
|
---|
| 288 | ],
|
---|
| 289 | ],
|
---|
| 290 | ]
|
---|
| 291 | ]
|
---|
| 292 | );
|
---|
| 293 | $this->projects_locations_operations = new DataFusion\Resource\ProjectsLocationsOperations(
|
---|
| 294 | $this,
|
---|
| 295 | $this->serviceName,
|
---|
| 296 | 'operations',
|
---|
| 297 | [
|
---|
| 298 | 'methods' => [
|
---|
| 299 | 'cancel' => [
|
---|
| 300 | 'path' => 'v1/{+name}:cancel',
|
---|
| 301 | 'httpMethod' => 'POST',
|
---|
| 302 | 'parameters' => [
|
---|
| 303 | 'name' => [
|
---|
| 304 | 'location' => 'path',
|
---|
| 305 | 'type' => 'string',
|
---|
| 306 | 'required' => true,
|
---|
| 307 | ],
|
---|
| 308 | ],
|
---|
| 309 | ],'delete' => [
|
---|
| 310 | 'path' => 'v1/{+name}',
|
---|
| 311 | 'httpMethod' => 'DELETE',
|
---|
| 312 | 'parameters' => [
|
---|
| 313 | 'name' => [
|
---|
| 314 | 'location' => 'path',
|
---|
| 315 | 'type' => 'string',
|
---|
| 316 | 'required' => true,
|
---|
| 317 | ],
|
---|
| 318 | ],
|
---|
| 319 | ],'get' => [
|
---|
| 320 | 'path' => 'v1/{+name}',
|
---|
| 321 | 'httpMethod' => 'GET',
|
---|
| 322 | 'parameters' => [
|
---|
| 323 | 'name' => [
|
---|
| 324 | 'location' => 'path',
|
---|
| 325 | 'type' => 'string',
|
---|
| 326 | 'required' => true,
|
---|
| 327 | ],
|
---|
| 328 | ],
|
---|
| 329 | ],'list' => [
|
---|
| 330 | 'path' => 'v1/{+name}/operations',
|
---|
| 331 | 'httpMethod' => 'GET',
|
---|
| 332 | 'parameters' => [
|
---|
| 333 | 'name' => [
|
---|
| 334 | 'location' => 'path',
|
---|
| 335 | 'type' => 'string',
|
---|
| 336 | 'required' => true,
|
---|
| 337 | ],
|
---|
| 338 | 'filter' => [
|
---|
| 339 | 'location' => 'query',
|
---|
| 340 | 'type' => 'string',
|
---|
| 341 | ],
|
---|
| 342 | 'pageSize' => [
|
---|
| 343 | 'location' => 'query',
|
---|
| 344 | 'type' => 'integer',
|
---|
| 345 | ],
|
---|
| 346 | 'pageToken' => [
|
---|
| 347 | 'location' => 'query',
|
---|
| 348 | 'type' => 'string',
|
---|
| 349 | ],
|
---|
| 350 | ],
|
---|
| 351 | ],
|
---|
| 352 | ]
|
---|
| 353 | ]
|
---|
| 354 | );
|
---|
| 355 | $this->projects_locations_versions = new DataFusion\Resource\ProjectsLocationsVersions(
|
---|
| 356 | $this,
|
---|
| 357 | $this->serviceName,
|
---|
| 358 | 'versions',
|
---|
| 359 | [
|
---|
| 360 | 'methods' => [
|
---|
| 361 | 'list' => [
|
---|
| 362 | 'path' => 'v1/{+parent}/versions',
|
---|
| 363 | 'httpMethod' => 'GET',
|
---|
| 364 | 'parameters' => [
|
---|
| 365 | 'parent' => [
|
---|
| 366 | 'location' => 'path',
|
---|
| 367 | 'type' => 'string',
|
---|
| 368 | 'required' => true,
|
---|
| 369 | ],
|
---|
| 370 | 'latestPatchOnly' => [
|
---|
| 371 | 'location' => 'query',
|
---|
| 372 | 'type' => 'boolean',
|
---|
| 373 | ],
|
---|
| 374 | 'pageSize' => [
|
---|
| 375 | 'location' => 'query',
|
---|
| 376 | 'type' => 'integer',
|
---|
| 377 | ],
|
---|
| 378 | 'pageToken' => [
|
---|
| 379 | 'location' => 'query',
|
---|
| 380 | 'type' => 'string',
|
---|
| 381 | ],
|
---|
| 382 | ],
|
---|
| 383 | ],
|
---|
| 384 | ]
|
---|
| 385 | ]
|
---|
| 386 | );
|
---|
| 387 | }
|
---|
| 388 | }
|
---|
| 389 |
|
---|
| 390 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 391 | class_alias(DataFusion::class, 'Google_Service_DataFusion');
|
---|