[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 Backupdr (v1).
|
---|
| 24 | *
|
---|
| 25 | * <p>
|
---|
| 26 | </p>
|
---|
| 27 | *
|
---|
| 28 | * <p>
|
---|
| 29 | * For more information about this service, see the API
|
---|
| 30 | * <a href="https://cloud.google.com/backup-disaster-recovery" target="_blank">Documentation</a>
|
---|
| 31 | * </p>
|
---|
| 32 | *
|
---|
| 33 | * @author Google, Inc.
|
---|
| 34 | */
|
---|
| 35 | class Backupdr extends \Google\Service
|
---|
| 36 | {
|
---|
| 37 | /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
|
---|
| 38 | const CLOUD_PLATFORM =
|
---|
| 39 | "https://www.googleapis.com/auth/cloud-platform";
|
---|
| 40 |
|
---|
| 41 | public $projects_locations;
|
---|
| 42 | public $projects_locations_backupPlanAssociations;
|
---|
| 43 | public $projects_locations_backupPlans;
|
---|
| 44 | public $projects_locations_backupVaults;
|
---|
| 45 | public $projects_locations_backupVaults_dataSources;
|
---|
| 46 | public $projects_locations_backupVaults_dataSources_backups;
|
---|
| 47 | public $projects_locations_managementServers;
|
---|
| 48 | public $projects_locations_operations;
|
---|
| 49 | public $rootUrlTemplate;
|
---|
| 50 |
|
---|
| 51 | /**
|
---|
| 52 | * Constructs the internal representation of the Backupdr service.
|
---|
| 53 | *
|
---|
| 54 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
| 55 | * config array to pass to a new Client instance.
|
---|
| 56 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
| 57 | */
|
---|
| 58 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
| 59 | {
|
---|
| 60 | parent::__construct($clientOrConfig);
|
---|
| 61 | $this->rootUrl = $rootUrl ?: 'https://backupdr.googleapis.com/';
|
---|
| 62 | $this->rootUrlTemplate = $rootUrl ?: 'https://backupdr.UNIVERSE_DOMAIN/';
|
---|
| 63 | $this->servicePath = '';
|
---|
| 64 | $this->batchPath = 'batch';
|
---|
| 65 | $this->version = 'v1';
|
---|
| 66 | $this->serviceName = 'backupdr';
|
---|
| 67 |
|
---|
| 68 | $this->projects_locations = new Backupdr\Resource\ProjectsLocations(
|
---|
| 69 | $this,
|
---|
| 70 | $this->serviceName,
|
---|
| 71 | 'locations',
|
---|
| 72 | [
|
---|
| 73 | 'methods' => [
|
---|
| 74 | 'get' => [
|
---|
| 75 | 'path' => 'v1/{+name}',
|
---|
| 76 | 'httpMethod' => 'GET',
|
---|
| 77 | 'parameters' => [
|
---|
| 78 | 'name' => [
|
---|
| 79 | 'location' => 'path',
|
---|
| 80 | 'type' => 'string',
|
---|
| 81 | 'required' => true,
|
---|
| 82 | ],
|
---|
| 83 | ],
|
---|
| 84 | ],'list' => [
|
---|
| 85 | 'path' => 'v1/{+name}/locations',
|
---|
| 86 | 'httpMethod' => 'GET',
|
---|
| 87 | 'parameters' => [
|
---|
| 88 | 'name' => [
|
---|
| 89 | 'location' => 'path',
|
---|
| 90 | 'type' => 'string',
|
---|
| 91 | 'required' => true,
|
---|
| 92 | ],
|
---|
| 93 | 'filter' => [
|
---|
| 94 | 'location' => 'query',
|
---|
| 95 | 'type' => 'string',
|
---|
| 96 | ],
|
---|
| 97 | 'pageSize' => [
|
---|
| 98 | 'location' => 'query',
|
---|
| 99 | 'type' => 'integer',
|
---|
| 100 | ],
|
---|
| 101 | 'pageToken' => [
|
---|
| 102 | 'location' => 'query',
|
---|
| 103 | 'type' => 'string',
|
---|
| 104 | ],
|
---|
| 105 | ],
|
---|
| 106 | ],
|
---|
| 107 | ]
|
---|
| 108 | ]
|
---|
| 109 | );
|
---|
| 110 | $this->projects_locations_backupPlanAssociations = new Backupdr\Resource\ProjectsLocationsBackupPlanAssociations(
|
---|
| 111 | $this,
|
---|
| 112 | $this->serviceName,
|
---|
| 113 | 'backupPlanAssociations',
|
---|
| 114 | [
|
---|
| 115 | 'methods' => [
|
---|
| 116 | 'create' => [
|
---|
| 117 | 'path' => 'v1/{+parent}/backupPlanAssociations',
|
---|
| 118 | 'httpMethod' => 'POST',
|
---|
| 119 | 'parameters' => [
|
---|
| 120 | 'parent' => [
|
---|
| 121 | 'location' => 'path',
|
---|
| 122 | 'type' => 'string',
|
---|
| 123 | 'required' => true,
|
---|
| 124 | ],
|
---|
| 125 | 'backupPlanAssociationId' => [
|
---|
| 126 | 'location' => 'query',
|
---|
| 127 | 'type' => 'string',
|
---|
| 128 | ],
|
---|
| 129 | 'requestId' => [
|
---|
| 130 | 'location' => 'query',
|
---|
| 131 | 'type' => 'string',
|
---|
| 132 | ],
|
---|
| 133 | ],
|
---|
| 134 | ],'delete' => [
|
---|
| 135 | 'path' => 'v1/{+name}',
|
---|
| 136 | 'httpMethod' => 'DELETE',
|
---|
| 137 | 'parameters' => [
|
---|
| 138 | 'name' => [
|
---|
| 139 | 'location' => 'path',
|
---|
| 140 | 'type' => 'string',
|
---|
| 141 | 'required' => true,
|
---|
| 142 | ],
|
---|
| 143 | 'requestId' => [
|
---|
| 144 | 'location' => 'query',
|
---|
| 145 | 'type' => 'string',
|
---|
| 146 | ],
|
---|
| 147 | ],
|
---|
| 148 | ],'get' => [
|
---|
| 149 | 'path' => 'v1/{+name}',
|
---|
| 150 | 'httpMethod' => 'GET',
|
---|
| 151 | 'parameters' => [
|
---|
| 152 | 'name' => [
|
---|
| 153 | 'location' => 'path',
|
---|
| 154 | 'type' => 'string',
|
---|
| 155 | 'required' => true,
|
---|
| 156 | ],
|
---|
| 157 | ],
|
---|
| 158 | ],'list' => [
|
---|
| 159 | 'path' => 'v1/{+parent}/backupPlanAssociations',
|
---|
| 160 | 'httpMethod' => 'GET',
|
---|
| 161 | 'parameters' => [
|
---|
| 162 | 'parent' => [
|
---|
| 163 | 'location' => 'path',
|
---|
| 164 | 'type' => 'string',
|
---|
| 165 | 'required' => true,
|
---|
| 166 | ],
|
---|
| 167 | 'filter' => [
|
---|
| 168 | 'location' => 'query',
|
---|
| 169 | 'type' => 'string',
|
---|
| 170 | ],
|
---|
| 171 | 'pageSize' => [
|
---|
| 172 | 'location' => 'query',
|
---|
| 173 | 'type' => 'integer',
|
---|
| 174 | ],
|
---|
| 175 | 'pageToken' => [
|
---|
| 176 | 'location' => 'query',
|
---|
| 177 | 'type' => 'string',
|
---|
| 178 | ],
|
---|
| 179 | ],
|
---|
| 180 | ],'triggerBackup' => [
|
---|
| 181 | 'path' => 'v1/{+name}:triggerBackup',
|
---|
| 182 | 'httpMethod' => 'POST',
|
---|
| 183 | 'parameters' => [
|
---|
| 184 | 'name' => [
|
---|
| 185 | 'location' => 'path',
|
---|
| 186 | 'type' => 'string',
|
---|
| 187 | 'required' => true,
|
---|
| 188 | ],
|
---|
| 189 | ],
|
---|
| 190 | ],
|
---|
| 191 | ]
|
---|
| 192 | ]
|
---|
| 193 | );
|
---|
| 194 | $this->projects_locations_backupPlans = new Backupdr\Resource\ProjectsLocationsBackupPlans(
|
---|
| 195 | $this,
|
---|
| 196 | $this->serviceName,
|
---|
| 197 | 'backupPlans',
|
---|
| 198 | [
|
---|
| 199 | 'methods' => [
|
---|
| 200 | 'create' => [
|
---|
| 201 | 'path' => 'v1/{+parent}/backupPlans',
|
---|
| 202 | 'httpMethod' => 'POST',
|
---|
| 203 | 'parameters' => [
|
---|
| 204 | 'parent' => [
|
---|
| 205 | 'location' => 'path',
|
---|
| 206 | 'type' => 'string',
|
---|
| 207 | 'required' => true,
|
---|
| 208 | ],
|
---|
| 209 | 'backupPlanId' => [
|
---|
| 210 | 'location' => 'query',
|
---|
| 211 | 'type' => 'string',
|
---|
| 212 | ],
|
---|
| 213 | 'requestId' => [
|
---|
| 214 | 'location' => 'query',
|
---|
| 215 | 'type' => 'string',
|
---|
| 216 | ],
|
---|
| 217 | ],
|
---|
| 218 | ],'delete' => [
|
---|
| 219 | 'path' => 'v1/{+name}',
|
---|
| 220 | 'httpMethod' => 'DELETE',
|
---|
| 221 | 'parameters' => [
|
---|
| 222 | 'name' => [
|
---|
| 223 | 'location' => 'path',
|
---|
| 224 | 'type' => 'string',
|
---|
| 225 | 'required' => true,
|
---|
| 226 | ],
|
---|
| 227 | 'requestId' => [
|
---|
| 228 | 'location' => 'query',
|
---|
| 229 | 'type' => 'string',
|
---|
| 230 | ],
|
---|
| 231 | ],
|
---|
| 232 | ],'get' => [
|
---|
| 233 | 'path' => 'v1/{+name}',
|
---|
| 234 | 'httpMethod' => 'GET',
|
---|
| 235 | 'parameters' => [
|
---|
| 236 | 'name' => [
|
---|
| 237 | 'location' => 'path',
|
---|
| 238 | 'type' => 'string',
|
---|
| 239 | 'required' => true,
|
---|
| 240 | ],
|
---|
| 241 | ],
|
---|
| 242 | ],'list' => [
|
---|
| 243 | 'path' => 'v1/{+parent}/backupPlans',
|
---|
| 244 | 'httpMethod' => 'GET',
|
---|
| 245 | 'parameters' => [
|
---|
| 246 | 'parent' => [
|
---|
| 247 | 'location' => 'path',
|
---|
| 248 | 'type' => 'string',
|
---|
| 249 | 'required' => true,
|
---|
| 250 | ],
|
---|
| 251 | 'filter' => [
|
---|
| 252 | 'location' => 'query',
|
---|
| 253 | 'type' => 'string',
|
---|
| 254 | ],
|
---|
| 255 | 'orderBy' => [
|
---|
| 256 | 'location' => 'query',
|
---|
| 257 | 'type' => 'string',
|
---|
| 258 | ],
|
---|
| 259 | 'pageSize' => [
|
---|
| 260 | 'location' => 'query',
|
---|
| 261 | 'type' => 'integer',
|
---|
| 262 | ],
|
---|
| 263 | 'pageToken' => [
|
---|
| 264 | 'location' => 'query',
|
---|
| 265 | 'type' => 'string',
|
---|
| 266 | ],
|
---|
| 267 | ],
|
---|
| 268 | ],
|
---|
| 269 | ]
|
---|
| 270 | ]
|
---|
| 271 | );
|
---|
| 272 | $this->projects_locations_backupVaults = new Backupdr\Resource\ProjectsLocationsBackupVaults(
|
---|
| 273 | $this,
|
---|
| 274 | $this->serviceName,
|
---|
| 275 | 'backupVaults',
|
---|
| 276 | [
|
---|
| 277 | 'methods' => [
|
---|
| 278 | 'create' => [
|
---|
| 279 | 'path' => 'v1/{+parent}/backupVaults',
|
---|
| 280 | 'httpMethod' => 'POST',
|
---|
| 281 | 'parameters' => [
|
---|
| 282 | 'parent' => [
|
---|
| 283 | 'location' => 'path',
|
---|
| 284 | 'type' => 'string',
|
---|
| 285 | 'required' => true,
|
---|
| 286 | ],
|
---|
| 287 | 'backupVaultId' => [
|
---|
| 288 | 'location' => 'query',
|
---|
| 289 | 'type' => 'string',
|
---|
| 290 | ],
|
---|
| 291 | 'requestId' => [
|
---|
| 292 | 'location' => 'query',
|
---|
| 293 | 'type' => 'string',
|
---|
| 294 | ],
|
---|
| 295 | 'validateOnly' => [
|
---|
| 296 | 'location' => 'query',
|
---|
| 297 | 'type' => 'boolean',
|
---|
| 298 | ],
|
---|
| 299 | ],
|
---|
| 300 | ],'delete' => [
|
---|
| 301 | 'path' => 'v1/{+name}',
|
---|
| 302 | 'httpMethod' => 'DELETE',
|
---|
| 303 | 'parameters' => [
|
---|
| 304 | 'name' => [
|
---|
| 305 | 'location' => 'path',
|
---|
| 306 | 'type' => 'string',
|
---|
| 307 | 'required' => true,
|
---|
| 308 | ],
|
---|
| 309 | 'allowMissing' => [
|
---|
| 310 | 'location' => 'query',
|
---|
| 311 | 'type' => 'boolean',
|
---|
| 312 | ],
|
---|
| 313 | 'etag' => [
|
---|
| 314 | 'location' => 'query',
|
---|
| 315 | 'type' => 'string',
|
---|
| 316 | ],
|
---|
| 317 | 'force' => [
|
---|
| 318 | 'location' => 'query',
|
---|
| 319 | 'type' => 'boolean',
|
---|
| 320 | ],
|
---|
| 321 | 'ignoreBackupPlanReferences' => [
|
---|
| 322 | 'location' => 'query',
|
---|
| 323 | 'type' => 'boolean',
|
---|
| 324 | ],
|
---|
| 325 | 'requestId' => [
|
---|
| 326 | 'location' => 'query',
|
---|
| 327 | 'type' => 'string',
|
---|
| 328 | ],
|
---|
| 329 | 'validateOnly' => [
|
---|
| 330 | 'location' => 'query',
|
---|
| 331 | 'type' => 'boolean',
|
---|
| 332 | ],
|
---|
| 333 | ],
|
---|
| 334 | ],'fetchUsable' => [
|
---|
| 335 | 'path' => 'v1/{+parent}/backupVaults:fetchUsable',
|
---|
| 336 | 'httpMethod' => 'GET',
|
---|
| 337 | 'parameters' => [
|
---|
| 338 | 'parent' => [
|
---|
| 339 | 'location' => 'path',
|
---|
| 340 | 'type' => 'string',
|
---|
| 341 | 'required' => true,
|
---|
| 342 | ],
|
---|
| 343 | 'filter' => [
|
---|
| 344 | 'location' => 'query',
|
---|
| 345 | 'type' => 'string',
|
---|
| 346 | ],
|
---|
| 347 | 'orderBy' => [
|
---|
| 348 | 'location' => 'query',
|
---|
| 349 | 'type' => 'string',
|
---|
| 350 | ],
|
---|
| 351 | 'pageSize' => [
|
---|
| 352 | 'location' => 'query',
|
---|
| 353 | 'type' => 'integer',
|
---|
| 354 | ],
|
---|
| 355 | 'pageToken' => [
|
---|
| 356 | 'location' => 'query',
|
---|
| 357 | 'type' => 'string',
|
---|
| 358 | ],
|
---|
| 359 | ],
|
---|
| 360 | ],'get' => [
|
---|
| 361 | 'path' => 'v1/{+name}',
|
---|
| 362 | 'httpMethod' => 'GET',
|
---|
| 363 | 'parameters' => [
|
---|
| 364 | 'name' => [
|
---|
| 365 | 'location' => 'path',
|
---|
| 366 | 'type' => 'string',
|
---|
| 367 | 'required' => true,
|
---|
| 368 | ],
|
---|
| 369 | 'view' => [
|
---|
| 370 | 'location' => 'query',
|
---|
| 371 | 'type' => 'string',
|
---|
| 372 | ],
|
---|
| 373 | ],
|
---|
| 374 | ],'list' => [
|
---|
| 375 | 'path' => 'v1/{+parent}/backupVaults',
|
---|
| 376 | 'httpMethod' => 'GET',
|
---|
| 377 | 'parameters' => [
|
---|
| 378 | 'parent' => [
|
---|
| 379 | 'location' => 'path',
|
---|
| 380 | 'type' => 'string',
|
---|
| 381 | 'required' => true,
|
---|
| 382 | ],
|
---|
| 383 | 'filter' => [
|
---|
| 384 | 'location' => 'query',
|
---|
| 385 | 'type' => 'string',
|
---|
| 386 | ],
|
---|
| 387 | 'orderBy' => [
|
---|
| 388 | 'location' => 'query',
|
---|
| 389 | 'type' => 'string',
|
---|
| 390 | ],
|
---|
| 391 | 'pageSize' => [
|
---|
| 392 | 'location' => 'query',
|
---|
| 393 | 'type' => 'integer',
|
---|
| 394 | ],
|
---|
| 395 | 'pageToken' => [
|
---|
| 396 | 'location' => 'query',
|
---|
| 397 | 'type' => 'string',
|
---|
| 398 | ],
|
---|
| 399 | 'view' => [
|
---|
| 400 | 'location' => 'query',
|
---|
| 401 | 'type' => 'string',
|
---|
| 402 | ],
|
---|
| 403 | ],
|
---|
| 404 | ],'patch' => [
|
---|
| 405 | 'path' => 'v1/{+name}',
|
---|
| 406 | 'httpMethod' => 'PATCH',
|
---|
| 407 | 'parameters' => [
|
---|
| 408 | 'name' => [
|
---|
| 409 | 'location' => 'path',
|
---|
| 410 | 'type' => 'string',
|
---|
| 411 | 'required' => true,
|
---|
| 412 | ],
|
---|
| 413 | 'force' => [
|
---|
| 414 | 'location' => 'query',
|
---|
| 415 | 'type' => 'boolean',
|
---|
| 416 | ],
|
---|
| 417 | 'requestId' => [
|
---|
| 418 | 'location' => 'query',
|
---|
| 419 | 'type' => 'string',
|
---|
| 420 | ],
|
---|
| 421 | 'updateMask' => [
|
---|
| 422 | 'location' => 'query',
|
---|
| 423 | 'type' => 'string',
|
---|
| 424 | ],
|
---|
| 425 | 'validateOnly' => [
|
---|
| 426 | 'location' => 'query',
|
---|
| 427 | 'type' => 'boolean',
|
---|
| 428 | ],
|
---|
| 429 | ],
|
---|
| 430 | ],'testIamPermissions' => [
|
---|
| 431 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
| 432 | 'httpMethod' => 'POST',
|
---|
| 433 | 'parameters' => [
|
---|
| 434 | 'resource' => [
|
---|
| 435 | 'location' => 'path',
|
---|
| 436 | 'type' => 'string',
|
---|
| 437 | 'required' => true,
|
---|
| 438 | ],
|
---|
| 439 | ],
|
---|
| 440 | ],
|
---|
| 441 | ]
|
---|
| 442 | ]
|
---|
| 443 | );
|
---|
| 444 | $this->projects_locations_backupVaults_dataSources = new Backupdr\Resource\ProjectsLocationsBackupVaultsDataSources(
|
---|
| 445 | $this,
|
---|
| 446 | $this->serviceName,
|
---|
| 447 | 'dataSources',
|
---|
| 448 | [
|
---|
| 449 | 'methods' => [
|
---|
| 450 | 'abandonBackup' => [
|
---|
| 451 | 'path' => 'v1/{+dataSource}:abandonBackup',
|
---|
| 452 | 'httpMethod' => 'POST',
|
---|
| 453 | 'parameters' => [
|
---|
| 454 | 'dataSource' => [
|
---|
| 455 | 'location' => 'path',
|
---|
| 456 | 'type' => 'string',
|
---|
| 457 | 'required' => true,
|
---|
| 458 | ],
|
---|
| 459 | ],
|
---|
| 460 | ],'fetchAccessToken' => [
|
---|
| 461 | 'path' => 'v1/{+name}:fetchAccessToken',
|
---|
| 462 | 'httpMethod' => 'POST',
|
---|
| 463 | 'parameters' => [
|
---|
| 464 | 'name' => [
|
---|
| 465 | 'location' => 'path',
|
---|
| 466 | 'type' => 'string',
|
---|
| 467 | 'required' => true,
|
---|
| 468 | ],
|
---|
| 469 | ],
|
---|
| 470 | ],'finalizeBackup' => [
|
---|
| 471 | 'path' => 'v1/{+dataSource}:finalizeBackup',
|
---|
| 472 | 'httpMethod' => 'POST',
|
---|
| 473 | 'parameters' => [
|
---|
| 474 | 'dataSource' => [
|
---|
| 475 | 'location' => 'path',
|
---|
| 476 | 'type' => 'string',
|
---|
| 477 | 'required' => true,
|
---|
| 478 | ],
|
---|
| 479 | ],
|
---|
| 480 | ],'get' => [
|
---|
| 481 | 'path' => 'v1/{+name}',
|
---|
| 482 | 'httpMethod' => 'GET',
|
---|
| 483 | 'parameters' => [
|
---|
| 484 | 'name' => [
|
---|
| 485 | 'location' => 'path',
|
---|
| 486 | 'type' => 'string',
|
---|
| 487 | 'required' => true,
|
---|
| 488 | ],
|
---|
| 489 | ],
|
---|
| 490 | ],'initiateBackup' => [
|
---|
| 491 | 'path' => 'v1/{+dataSource}:initiateBackup',
|
---|
| 492 | 'httpMethod' => 'POST',
|
---|
| 493 | 'parameters' => [
|
---|
| 494 | 'dataSource' => [
|
---|
| 495 | 'location' => 'path',
|
---|
| 496 | 'type' => 'string',
|
---|
| 497 | 'required' => true,
|
---|
| 498 | ],
|
---|
| 499 | ],
|
---|
| 500 | ],'list' => [
|
---|
| 501 | 'path' => 'v1/{+parent}/dataSources',
|
---|
| 502 | 'httpMethod' => 'GET',
|
---|
| 503 | 'parameters' => [
|
---|
| 504 | 'parent' => [
|
---|
| 505 | 'location' => 'path',
|
---|
| 506 | 'type' => 'string',
|
---|
| 507 | 'required' => true,
|
---|
| 508 | ],
|
---|
| 509 | 'filter' => [
|
---|
| 510 | 'location' => 'query',
|
---|
| 511 | 'type' => 'string',
|
---|
| 512 | ],
|
---|
| 513 | 'orderBy' => [
|
---|
| 514 | 'location' => 'query',
|
---|
| 515 | 'type' => 'string',
|
---|
| 516 | ],
|
---|
| 517 | 'pageSize' => [
|
---|
| 518 | 'location' => 'query',
|
---|
| 519 | 'type' => 'integer',
|
---|
| 520 | ],
|
---|
| 521 | 'pageToken' => [
|
---|
| 522 | 'location' => 'query',
|
---|
| 523 | 'type' => 'string',
|
---|
| 524 | ],
|
---|
| 525 | ],
|
---|
| 526 | ],'patch' => [
|
---|
| 527 | 'path' => 'v1/{+name}',
|
---|
| 528 | 'httpMethod' => 'PATCH',
|
---|
| 529 | 'parameters' => [
|
---|
| 530 | 'name' => [
|
---|
| 531 | 'location' => 'path',
|
---|
| 532 | 'type' => 'string',
|
---|
| 533 | 'required' => true,
|
---|
| 534 | ],
|
---|
| 535 | 'allowMissing' => [
|
---|
| 536 | 'location' => 'query',
|
---|
| 537 | 'type' => 'boolean',
|
---|
| 538 | ],
|
---|
| 539 | 'requestId' => [
|
---|
| 540 | 'location' => 'query',
|
---|
| 541 | 'type' => 'string',
|
---|
| 542 | ],
|
---|
| 543 | 'updateMask' => [
|
---|
| 544 | 'location' => 'query',
|
---|
| 545 | 'type' => 'string',
|
---|
| 546 | ],
|
---|
| 547 | ],
|
---|
| 548 | ],'remove' => [
|
---|
| 549 | 'path' => 'v1/{+name}:remove',
|
---|
| 550 | 'httpMethod' => 'POST',
|
---|
| 551 | 'parameters' => [
|
---|
| 552 | 'name' => [
|
---|
| 553 | 'location' => 'path',
|
---|
| 554 | 'type' => 'string',
|
---|
| 555 | 'required' => true,
|
---|
| 556 | ],
|
---|
| 557 | ],
|
---|
| 558 | ],'setInternalStatus' => [
|
---|
| 559 | 'path' => 'v1/{+dataSource}:setInternalStatus',
|
---|
| 560 | 'httpMethod' => 'POST',
|
---|
| 561 | 'parameters' => [
|
---|
| 562 | 'dataSource' => [
|
---|
| 563 | 'location' => 'path',
|
---|
| 564 | 'type' => 'string',
|
---|
| 565 | 'required' => true,
|
---|
| 566 | ],
|
---|
| 567 | ],
|
---|
| 568 | ],
|
---|
| 569 | ]
|
---|
| 570 | ]
|
---|
| 571 | );
|
---|
| 572 | $this->projects_locations_backupVaults_dataSources_backups = new Backupdr\Resource\ProjectsLocationsBackupVaultsDataSourcesBackups(
|
---|
| 573 | $this,
|
---|
| 574 | $this->serviceName,
|
---|
| 575 | 'backups',
|
---|
| 576 | [
|
---|
| 577 | 'methods' => [
|
---|
| 578 | 'delete' => [
|
---|
| 579 | 'path' => 'v1/{+name}',
|
---|
| 580 | 'httpMethod' => 'DELETE',
|
---|
| 581 | 'parameters' => [
|
---|
| 582 | 'name' => [
|
---|
| 583 | 'location' => 'path',
|
---|
| 584 | 'type' => 'string',
|
---|
| 585 | 'required' => true,
|
---|
| 586 | ],
|
---|
| 587 | 'requestId' => [
|
---|
| 588 | 'location' => 'query',
|
---|
| 589 | 'type' => 'string',
|
---|
| 590 | ],
|
---|
| 591 | ],
|
---|
| 592 | ],'get' => [
|
---|
| 593 | 'path' => 'v1/{+name}',
|
---|
| 594 | 'httpMethod' => 'GET',
|
---|
| 595 | 'parameters' => [
|
---|
| 596 | 'name' => [
|
---|
| 597 | 'location' => 'path',
|
---|
| 598 | 'type' => 'string',
|
---|
| 599 | 'required' => true,
|
---|
| 600 | ],
|
---|
| 601 | 'view' => [
|
---|
| 602 | 'location' => 'query',
|
---|
| 603 | 'type' => 'string',
|
---|
| 604 | ],
|
---|
| 605 | ],
|
---|
| 606 | ],'list' => [
|
---|
| 607 | 'path' => 'v1/{+parent}/backups',
|
---|
| 608 | 'httpMethod' => 'GET',
|
---|
| 609 | 'parameters' => [
|
---|
| 610 | 'parent' => [
|
---|
| 611 | 'location' => 'path',
|
---|
| 612 | 'type' => 'string',
|
---|
| 613 | 'required' => true,
|
---|
| 614 | ],
|
---|
| 615 | 'filter' => [
|
---|
| 616 | 'location' => 'query',
|
---|
| 617 | 'type' => 'string',
|
---|
| 618 | ],
|
---|
| 619 | 'orderBy' => [
|
---|
| 620 | 'location' => 'query',
|
---|
| 621 | 'type' => 'string',
|
---|
| 622 | ],
|
---|
| 623 | 'pageSize' => [
|
---|
| 624 | 'location' => 'query',
|
---|
| 625 | 'type' => 'integer',
|
---|
| 626 | ],
|
---|
| 627 | 'pageToken' => [
|
---|
| 628 | 'location' => 'query',
|
---|
| 629 | 'type' => 'string',
|
---|
| 630 | ],
|
---|
| 631 | 'view' => [
|
---|
| 632 | 'location' => 'query',
|
---|
| 633 | 'type' => 'string',
|
---|
| 634 | ],
|
---|
| 635 | ],
|
---|
| 636 | ],'patch' => [
|
---|
| 637 | 'path' => 'v1/{+name}',
|
---|
| 638 | 'httpMethod' => 'PATCH',
|
---|
| 639 | 'parameters' => [
|
---|
| 640 | 'name' => [
|
---|
| 641 | 'location' => 'path',
|
---|
| 642 | 'type' => 'string',
|
---|
| 643 | 'required' => true,
|
---|
| 644 | ],
|
---|
| 645 | 'requestId' => [
|
---|
| 646 | 'location' => 'query',
|
---|
| 647 | 'type' => 'string',
|
---|
| 648 | ],
|
---|
| 649 | 'updateMask' => [
|
---|
| 650 | 'location' => 'query',
|
---|
| 651 | 'type' => 'string',
|
---|
| 652 | ],
|
---|
| 653 | ],
|
---|
| 654 | ],'restore' => [
|
---|
| 655 | 'path' => 'v1/{+name}:restore',
|
---|
| 656 | 'httpMethod' => 'POST',
|
---|
| 657 | 'parameters' => [
|
---|
| 658 | 'name' => [
|
---|
| 659 | 'location' => 'path',
|
---|
| 660 | 'type' => 'string',
|
---|
| 661 | 'required' => true,
|
---|
| 662 | ],
|
---|
| 663 | ],
|
---|
| 664 | ],
|
---|
| 665 | ]
|
---|
| 666 | ]
|
---|
| 667 | );
|
---|
| 668 | $this->projects_locations_managementServers = new Backupdr\Resource\ProjectsLocationsManagementServers(
|
---|
| 669 | $this,
|
---|
| 670 | $this->serviceName,
|
---|
| 671 | 'managementServers',
|
---|
| 672 | [
|
---|
| 673 | 'methods' => [
|
---|
| 674 | 'create' => [
|
---|
| 675 | 'path' => 'v1/{+parent}/managementServers',
|
---|
| 676 | 'httpMethod' => 'POST',
|
---|
| 677 | 'parameters' => [
|
---|
| 678 | 'parent' => [
|
---|
| 679 | 'location' => 'path',
|
---|
| 680 | 'type' => 'string',
|
---|
| 681 | 'required' => true,
|
---|
| 682 | ],
|
---|
| 683 | 'managementServerId' => [
|
---|
| 684 | 'location' => 'query',
|
---|
| 685 | 'type' => 'string',
|
---|
| 686 | ],
|
---|
| 687 | 'requestId' => [
|
---|
| 688 | 'location' => 'query',
|
---|
| 689 | 'type' => 'string',
|
---|
| 690 | ],
|
---|
| 691 | ],
|
---|
| 692 | ],'delete' => [
|
---|
| 693 | 'path' => 'v1/{+name}',
|
---|
| 694 | 'httpMethod' => 'DELETE',
|
---|
| 695 | 'parameters' => [
|
---|
| 696 | 'name' => [
|
---|
| 697 | 'location' => 'path',
|
---|
| 698 | 'type' => 'string',
|
---|
| 699 | 'required' => true,
|
---|
| 700 | ],
|
---|
| 701 | 'requestId' => [
|
---|
| 702 | 'location' => 'query',
|
---|
| 703 | 'type' => 'string',
|
---|
| 704 | ],
|
---|
| 705 | ],
|
---|
| 706 | ],'get' => [
|
---|
| 707 | 'path' => 'v1/{+name}',
|
---|
| 708 | 'httpMethod' => 'GET',
|
---|
| 709 | 'parameters' => [
|
---|
| 710 | 'name' => [
|
---|
| 711 | 'location' => 'path',
|
---|
| 712 | 'type' => 'string',
|
---|
| 713 | 'required' => true,
|
---|
| 714 | ],
|
---|
| 715 | ],
|
---|
| 716 | ],'getIamPolicy' => [
|
---|
| 717 | 'path' => 'v1/{+resource}:getIamPolicy',
|
---|
| 718 | 'httpMethod' => 'GET',
|
---|
| 719 | 'parameters' => [
|
---|
| 720 | 'resource' => [
|
---|
| 721 | 'location' => 'path',
|
---|
| 722 | 'type' => 'string',
|
---|
| 723 | 'required' => true,
|
---|
| 724 | ],
|
---|
| 725 | 'options.requestedPolicyVersion' => [
|
---|
| 726 | 'location' => 'query',
|
---|
| 727 | 'type' => 'integer',
|
---|
| 728 | ],
|
---|
| 729 | ],
|
---|
| 730 | ],'list' => [
|
---|
| 731 | 'path' => 'v1/{+parent}/managementServers',
|
---|
| 732 | 'httpMethod' => 'GET',
|
---|
| 733 | 'parameters' => [
|
---|
| 734 | 'parent' => [
|
---|
| 735 | 'location' => 'path',
|
---|
| 736 | 'type' => 'string',
|
---|
| 737 | 'required' => true,
|
---|
| 738 | ],
|
---|
| 739 | 'filter' => [
|
---|
| 740 | 'location' => 'query',
|
---|
| 741 | 'type' => 'string',
|
---|
| 742 | ],
|
---|
| 743 | 'orderBy' => [
|
---|
| 744 | 'location' => 'query',
|
---|
| 745 | 'type' => 'string',
|
---|
| 746 | ],
|
---|
| 747 | 'pageSize' => [
|
---|
| 748 | 'location' => 'query',
|
---|
| 749 | 'type' => 'integer',
|
---|
| 750 | ],
|
---|
| 751 | 'pageToken' => [
|
---|
| 752 | 'location' => 'query',
|
---|
| 753 | 'type' => 'string',
|
---|
| 754 | ],
|
---|
| 755 | ],
|
---|
| 756 | ],'setIamPolicy' => [
|
---|
| 757 | 'path' => 'v1/{+resource}:setIamPolicy',
|
---|
| 758 | 'httpMethod' => 'POST',
|
---|
| 759 | 'parameters' => [
|
---|
| 760 | 'resource' => [
|
---|
| 761 | 'location' => 'path',
|
---|
| 762 | 'type' => 'string',
|
---|
| 763 | 'required' => true,
|
---|
| 764 | ],
|
---|
| 765 | ],
|
---|
| 766 | ],'testIamPermissions' => [
|
---|
| 767 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
| 768 | 'httpMethod' => 'POST',
|
---|
| 769 | 'parameters' => [
|
---|
| 770 | 'resource' => [
|
---|
| 771 | 'location' => 'path',
|
---|
| 772 | 'type' => 'string',
|
---|
| 773 | 'required' => true,
|
---|
| 774 | ],
|
---|
| 775 | ],
|
---|
| 776 | ],
|
---|
| 777 | ]
|
---|
| 778 | ]
|
---|
| 779 | );
|
---|
| 780 | $this->projects_locations_operations = new Backupdr\Resource\ProjectsLocationsOperations(
|
---|
| 781 | $this,
|
---|
| 782 | $this->serviceName,
|
---|
| 783 | 'operations',
|
---|
| 784 | [
|
---|
| 785 | 'methods' => [
|
---|
| 786 | 'cancel' => [
|
---|
| 787 | 'path' => 'v1/{+name}:cancel',
|
---|
| 788 | 'httpMethod' => 'POST',
|
---|
| 789 | 'parameters' => [
|
---|
| 790 | 'name' => [
|
---|
| 791 | 'location' => 'path',
|
---|
| 792 | 'type' => 'string',
|
---|
| 793 | 'required' => true,
|
---|
| 794 | ],
|
---|
| 795 | ],
|
---|
| 796 | ],'delete' => [
|
---|
| 797 | 'path' => 'v1/{+name}',
|
---|
| 798 | 'httpMethod' => 'DELETE',
|
---|
| 799 | 'parameters' => [
|
---|
| 800 | 'name' => [
|
---|
| 801 | 'location' => 'path',
|
---|
| 802 | 'type' => 'string',
|
---|
| 803 | 'required' => true,
|
---|
| 804 | ],
|
---|
| 805 | ],
|
---|
| 806 | ],'get' => [
|
---|
| 807 | 'path' => 'v1/{+name}',
|
---|
| 808 | 'httpMethod' => 'GET',
|
---|
| 809 | 'parameters' => [
|
---|
| 810 | 'name' => [
|
---|
| 811 | 'location' => 'path',
|
---|
| 812 | 'type' => 'string',
|
---|
| 813 | 'required' => true,
|
---|
| 814 | ],
|
---|
| 815 | ],
|
---|
| 816 | ],'list' => [
|
---|
| 817 | 'path' => 'v1/{+name}/operations',
|
---|
| 818 | 'httpMethod' => 'GET',
|
---|
| 819 | 'parameters' => [
|
---|
| 820 | 'name' => [
|
---|
| 821 | 'location' => 'path',
|
---|
| 822 | 'type' => 'string',
|
---|
| 823 | 'required' => true,
|
---|
| 824 | ],
|
---|
| 825 | 'filter' => [
|
---|
| 826 | 'location' => 'query',
|
---|
| 827 | 'type' => 'string',
|
---|
| 828 | ],
|
---|
| 829 | 'pageSize' => [
|
---|
| 830 | 'location' => 'query',
|
---|
| 831 | 'type' => 'integer',
|
---|
| 832 | ],
|
---|
| 833 | 'pageToken' => [
|
---|
| 834 | 'location' => 'query',
|
---|
| 835 | 'type' => 'string',
|
---|
| 836 | ],
|
---|
| 837 | ],
|
---|
| 838 | ],
|
---|
| 839 | ]
|
---|
| 840 | ]
|
---|
| 841 | );
|
---|
| 842 | }
|
---|
| 843 | }
|
---|
| 844 |
|
---|
| 845 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 846 | class_alias(Backupdr::class, 'Google_Service_Backupdr');
|
---|