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/** 19 * Service definition for DeploymentManager (v2). 20 * 21 * <p> 22 * Declares, configures, and deploys complex solutions on Google Cloud Platform.</p> 23 * 24 * <p> 25 * For more information about this service, see the API 26 * <a href="https://cloud.google.com/deployment-manager/" target="_blank">Documentation</a> 27 * </p> 28 * 29 * @author Google, Inc. 30 */ 31class Google_Service_DeploymentManager extends Google_Service 32{ 33 /** View and manage your data across Google Cloud Platform services. */ 34 const CLOUD_PLATFORM = 35 "https://www.googleapis.com/auth/cloud-platform"; 36 /** View your data across Google Cloud Platform services. */ 37 const CLOUD_PLATFORM_READ_ONLY = 38 "https://www.googleapis.com/auth/cloud-platform.read-only"; 39 /** View and manage your Google Cloud Platform management resources and deployment status information. */ 40 const NDEV_CLOUDMAN = 41 "https://www.googleapis.com/auth/ndev.cloudman"; 42 /** View your Google Cloud Platform management resources and deployment status information. */ 43 const NDEV_CLOUDMAN_READONLY = 44 "https://www.googleapis.com/auth/ndev.cloudman.readonly"; 45 46 public $deployments; 47 public $manifests; 48 public $operations; 49 public $resources; 50 public $types; 51 52 /** 53 * Constructs the internal representation of the DeploymentManager service. 54 * 55 * @param Google_Client $client 56 */ 57 public function __construct(Google_Client $client) 58 { 59 parent::__construct($client); 60 $this->rootUrl = 'https://www.googleapis.com/'; 61 $this->servicePath = 'deploymentmanager/v2/projects/'; 62 $this->batchPath = 'batch/deploymentmanager/v2'; 63 $this->version = 'v2'; 64 $this->serviceName = 'deploymentmanager'; 65 66 $this->deployments = new Google_Service_DeploymentManager_Resource_Deployments( 67 $this, 68 $this->serviceName, 69 'deployments', 70 array( 71 'methods' => array( 72 'cancelPreview' => array( 73 'path' => '{project}/global/deployments/{deployment}/cancelPreview', 74 'httpMethod' => 'POST', 75 'parameters' => array( 76 'project' => array( 77 'location' => 'path', 78 'type' => 'string', 79 'required' => true, 80 ), 81 'deployment' => array( 82 'location' => 'path', 83 'type' => 'string', 84 'required' => true, 85 ), 86 ), 87 ),'delete' => array( 88 'path' => '{project}/global/deployments/{deployment}', 89 'httpMethod' => 'DELETE', 90 'parameters' => array( 91 'project' => array( 92 'location' => 'path', 93 'type' => 'string', 94 'required' => true, 95 ), 96 'deployment' => array( 97 'location' => 'path', 98 'type' => 'string', 99 'required' => true, 100 ), 101 'deletePolicy' => array( 102 'location' => 'query', 103 'type' => 'string', 104 ), 105 ), 106 ),'get' => array( 107 'path' => '{project}/global/deployments/{deployment}', 108 'httpMethod' => 'GET', 109 'parameters' => array( 110 'project' => array( 111 'location' => 'path', 112 'type' => 'string', 113 'required' => true, 114 ), 115 'deployment' => array( 116 'location' => 'path', 117 'type' => 'string', 118 'required' => true, 119 ), 120 ), 121 ),'getIamPolicy' => array( 122 'path' => '{project}/global/deployments/{resource}/getIamPolicy', 123 'httpMethod' => 'GET', 124 'parameters' => array( 125 'project' => array( 126 'location' => 'path', 127 'type' => 'string', 128 'required' => true, 129 ), 130 'resource' => array( 131 'location' => 'path', 132 'type' => 'string', 133 'required' => true, 134 ), 135 ), 136 ),'insert' => array( 137 'path' => '{project}/global/deployments', 138 'httpMethod' => 'POST', 139 'parameters' => array( 140 'project' => array( 141 'location' => 'path', 142 'type' => 'string', 143 'required' => true, 144 ), 145 'createPolicy' => array( 146 'location' => 'query', 147 'type' => 'string', 148 ), 149 'preview' => array( 150 'location' => 'query', 151 'type' => 'boolean', 152 ), 153 ), 154 ),'list' => array( 155 'path' => '{project}/global/deployments', 156 'httpMethod' => 'GET', 157 'parameters' => array( 158 'project' => array( 159 'location' => 'path', 160 'type' => 'string', 161 'required' => true, 162 ), 163 'filter' => array( 164 'location' => 'query', 165 'type' => 'string', 166 ), 167 'maxResults' => array( 168 'location' => 'query', 169 'type' => 'integer', 170 ), 171 'orderBy' => array( 172 'location' => 'query', 173 'type' => 'string', 174 ), 175 'pageToken' => array( 176 'location' => 'query', 177 'type' => 'string', 178 ), 179 ), 180 ),'patch' => array( 181 'path' => '{project}/global/deployments/{deployment}', 182 'httpMethod' => 'PATCH', 183 'parameters' => array( 184 'project' => array( 185 'location' => 'path', 186 'type' => 'string', 187 'required' => true, 188 ), 189 'deployment' => array( 190 'location' => 'path', 191 'type' => 'string', 192 'required' => true, 193 ), 194 'createPolicy' => array( 195 'location' => 'query', 196 'type' => 'string', 197 ), 198 'deletePolicy' => array( 199 'location' => 'query', 200 'type' => 'string', 201 ), 202 'preview' => array( 203 'location' => 'query', 204 'type' => 'boolean', 205 ), 206 ), 207 ),'setIamPolicy' => array( 208 'path' => '{project}/global/deployments/{resource}/setIamPolicy', 209 'httpMethod' => 'POST', 210 'parameters' => array( 211 'project' => array( 212 'location' => 'path', 213 'type' => 'string', 214 'required' => true, 215 ), 216 'resource' => array( 217 'location' => 'path', 218 'type' => 'string', 219 'required' => true, 220 ), 221 ), 222 ),'stop' => array( 223 'path' => '{project}/global/deployments/{deployment}/stop', 224 'httpMethod' => 'POST', 225 'parameters' => array( 226 'project' => array( 227 'location' => 'path', 228 'type' => 'string', 229 'required' => true, 230 ), 231 'deployment' => array( 232 'location' => 'path', 233 'type' => 'string', 234 'required' => true, 235 ), 236 ), 237 ),'testIamPermissions' => array( 238 'path' => '{project}/global/deployments/{resource}/testIamPermissions', 239 'httpMethod' => 'POST', 240 'parameters' => array( 241 'project' => array( 242 'location' => 'path', 243 'type' => 'string', 244 'required' => true, 245 ), 246 'resource' => array( 247 'location' => 'path', 248 'type' => 'string', 249 'required' => true, 250 ), 251 ), 252 ),'update' => array( 253 'path' => '{project}/global/deployments/{deployment}', 254 'httpMethod' => 'PUT', 255 'parameters' => array( 256 'project' => array( 257 'location' => 'path', 258 'type' => 'string', 259 'required' => true, 260 ), 261 'deployment' => array( 262 'location' => 'path', 263 'type' => 'string', 264 'required' => true, 265 ), 266 'createPolicy' => array( 267 'location' => 'query', 268 'type' => 'string', 269 ), 270 'deletePolicy' => array( 271 'location' => 'query', 272 'type' => 'string', 273 ), 274 'preview' => array( 275 'location' => 'query', 276 'type' => 'boolean', 277 ), 278 ), 279 ), 280 ) 281 ) 282 ); 283 $this->manifests = new Google_Service_DeploymentManager_Resource_Manifests( 284 $this, 285 $this->serviceName, 286 'manifests', 287 array( 288 'methods' => array( 289 'get' => array( 290 'path' => '{project}/global/deployments/{deployment}/manifests/{manifest}', 291 'httpMethod' => 'GET', 292 'parameters' => array( 293 'project' => array( 294 'location' => 'path', 295 'type' => 'string', 296 'required' => true, 297 ), 298 'deployment' => array( 299 'location' => 'path', 300 'type' => 'string', 301 'required' => true, 302 ), 303 'manifest' => array( 304 'location' => 'path', 305 'type' => 'string', 306 'required' => true, 307 ), 308 ), 309 ),'list' => array( 310 'path' => '{project}/global/deployments/{deployment}/manifests', 311 'httpMethod' => 'GET', 312 'parameters' => array( 313 'project' => array( 314 'location' => 'path', 315 'type' => 'string', 316 'required' => true, 317 ), 318 'deployment' => array( 319 'location' => 'path', 320 'type' => 'string', 321 'required' => true, 322 ), 323 'filter' => array( 324 'location' => 'query', 325 'type' => 'string', 326 ), 327 'maxResults' => array( 328 'location' => 'query', 329 'type' => 'integer', 330 ), 331 'orderBy' => array( 332 'location' => 'query', 333 'type' => 'string', 334 ), 335 'pageToken' => array( 336 'location' => 'query', 337 'type' => 'string', 338 ), 339 ), 340 ), 341 ) 342 ) 343 ); 344 $this->operations = new Google_Service_DeploymentManager_Resource_Operations( 345 $this, 346 $this->serviceName, 347 'operations', 348 array( 349 'methods' => array( 350 'get' => array( 351 'path' => '{project}/global/operations/{operation}', 352 'httpMethod' => 'GET', 353 'parameters' => array( 354 'project' => array( 355 'location' => 'path', 356 'type' => 'string', 357 'required' => true, 358 ), 359 'operation' => array( 360 'location' => 'path', 361 'type' => 'string', 362 'required' => true, 363 ), 364 ), 365 ),'list' => array( 366 'path' => '{project}/global/operations', 367 'httpMethod' => 'GET', 368 'parameters' => array( 369 'project' => array( 370 'location' => 'path', 371 'type' => 'string', 372 'required' => true, 373 ), 374 'filter' => array( 375 'location' => 'query', 376 'type' => 'string', 377 ), 378 'maxResults' => array( 379 'location' => 'query', 380 'type' => 'integer', 381 ), 382 'orderBy' => array( 383 'location' => 'query', 384 'type' => 'string', 385 ), 386 'pageToken' => array( 387 'location' => 'query', 388 'type' => 'string', 389 ), 390 ), 391 ), 392 ) 393 ) 394 ); 395 $this->resources = new Google_Service_DeploymentManager_Resource_Resources( 396 $this, 397 $this->serviceName, 398 'resources', 399 array( 400 'methods' => array( 401 'get' => array( 402 'path' => '{project}/global/deployments/{deployment}/resources/{resource}', 403 'httpMethod' => 'GET', 404 'parameters' => array( 405 'project' => array( 406 'location' => 'path', 407 'type' => 'string', 408 'required' => true, 409 ), 410 'deployment' => array( 411 'location' => 'path', 412 'type' => 'string', 413 'required' => true, 414 ), 415 'resource' => array( 416 'location' => 'path', 417 'type' => 'string', 418 'required' => true, 419 ), 420 ), 421 ),'list' => array( 422 'path' => '{project}/global/deployments/{deployment}/resources', 423 'httpMethod' => 'GET', 424 'parameters' => array( 425 'project' => array( 426 'location' => 'path', 427 'type' => 'string', 428 'required' => true, 429 ), 430 'deployment' => array( 431 'location' => 'path', 432 'type' => 'string', 433 'required' => true, 434 ), 435 'filter' => array( 436 'location' => 'query', 437 'type' => 'string', 438 ), 439 'maxResults' => array( 440 'location' => 'query', 441 'type' => 'integer', 442 ), 443 'orderBy' => array( 444 'location' => 'query', 445 'type' => 'string', 446 ), 447 'pageToken' => array( 448 'location' => 'query', 449 'type' => 'string', 450 ), 451 ), 452 ), 453 ) 454 ) 455 ); 456 $this->types = new Google_Service_DeploymentManager_Resource_Types( 457 $this, 458 $this->serviceName, 459 'types', 460 array( 461 'methods' => array( 462 'list' => array( 463 'path' => '{project}/global/types', 464 'httpMethod' => 'GET', 465 'parameters' => array( 466 'project' => array( 467 'location' => 'path', 468 'type' => 'string', 469 'required' => true, 470 ), 471 'filter' => array( 472 'location' => 'query', 473 'type' => 'string', 474 ), 475 'maxResults' => array( 476 'location' => 'query', 477 'type' => 'integer', 478 ), 479 'orderBy' => array( 480 'location' => 'query', 481 'type' => 'string', 482 ), 483 'pageToken' => array( 484 'location' => 'query', 485 'type' => 'string', 486 ), 487 ), 488 ), 489 ) 490 ) 491 ); 492 } 493} 494