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