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 18namespace Google\Service; 19 20use Google\Client; 21 22/** 23 * Service definition for CloudComposer (v1). 24 * 25 * <p> 26 * Manages Apache Airflow environments on Google Cloud Platform.</p> 27 * 28 * <p> 29 * For more information about this service, see the API 30 * <a href="https://cloud.google.com/composer/" target="_blank">Documentation</a> 31 * </p> 32 * 33 * @author Google, Inc. 34 */ 35class CloudComposer 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_environments; 42 public $projects_locations_imageVersions; 43 public $projects_locations_operations; 44 45 /** 46 * Constructs the internal representation of the CloudComposer service. 47 * 48 * @param Client|array $clientOrConfig The client used to deliver requests, or a 49 * config array to pass to a new Client instance. 50 * @param string $rootUrl The root URL used for requests to the service. 51 */ 52 public function __construct($clientOrConfig = [], $rootUrl = null) 53 { 54 parent::__construct($clientOrConfig); 55 $this->rootUrl = $rootUrl ?: 'https://composer.googleapis.com/'; 56 $this->servicePath = ''; 57 $this->batchPath = 'batch'; 58 $this->version = 'v1'; 59 $this->serviceName = 'composer'; 60 61 $this->projects_locations_environments = new CloudComposer\Resource\ProjectsLocationsEnvironments( 62 $this, 63 $this->serviceName, 64 'environments', 65 [ 66 'methods' => [ 67 'create' => [ 68 'path' => 'v1/{+parent}/environments', 69 'httpMethod' => 'POST', 70 'parameters' => [ 71 'parent' => [ 72 'location' => 'path', 73 'type' => 'string', 74 'required' => true, 75 ], 76 ], 77 ],'delete' => [ 78 'path' => 'v1/{+name}', 79 'httpMethod' => 'DELETE', 80 'parameters' => [ 81 'name' => [ 82 'location' => 'path', 83 'type' => 'string', 84 'required' => true, 85 ], 86 ], 87 ],'get' => [ 88 'path' => 'v1/{+name}', 89 'httpMethod' => 'GET', 90 'parameters' => [ 91 'name' => [ 92 'location' => 'path', 93 'type' => 'string', 94 'required' => true, 95 ], 96 ], 97 ],'list' => [ 98 'path' => 'v1/{+parent}/environments', 99 'httpMethod' => 'GET', 100 'parameters' => [ 101 'parent' => [ 102 'location' => 'path', 103 'type' => 'string', 104 'required' => true, 105 ], 106 'pageSize' => [ 107 'location' => 'query', 108 'type' => 'integer', 109 ], 110 'pageToken' => [ 111 'location' => 'query', 112 'type' => 'string', 113 ], 114 ], 115 ],'patch' => [ 116 'path' => 'v1/{+name}', 117 'httpMethod' => 'PATCH', 118 'parameters' => [ 119 'name' => [ 120 'location' => 'path', 121 'type' => 'string', 122 'required' => true, 123 ], 124 'updateMask' => [ 125 'location' => 'query', 126 'type' => 'string', 127 ], 128 ], 129 ], 130 ] 131 ] 132 ); 133 $this->projects_locations_imageVersions = new CloudComposer\Resource\ProjectsLocationsImageVersions( 134 $this, 135 $this->serviceName, 136 'imageVersions', 137 [ 138 'methods' => [ 139 'list' => [ 140 'path' => 'v1/{+parent}/imageVersions', 141 'httpMethod' => 'GET', 142 'parameters' => [ 143 'parent' => [ 144 'location' => 'path', 145 'type' => 'string', 146 'required' => true, 147 ], 148 'includePastReleases' => [ 149 'location' => 'query', 150 'type' => 'boolean', 151 ], 152 'pageSize' => [ 153 'location' => 'query', 154 'type' => 'integer', 155 ], 156 'pageToken' => [ 157 'location' => 'query', 158 'type' => 'string', 159 ], 160 ], 161 ], 162 ] 163 ] 164 ); 165 $this->projects_locations_operations = new CloudComposer\Resource\ProjectsLocationsOperations( 166 $this, 167 $this->serviceName, 168 'operations', 169 [ 170 'methods' => [ 171 'delete' => [ 172 'path' => 'v1/{+name}', 173 'httpMethod' => 'DELETE', 174 'parameters' => [ 175 'name' => [ 176 'location' => 'path', 177 'type' => 'string', 178 'required' => true, 179 ], 180 ], 181 ],'get' => [ 182 'path' => 'v1/{+name}', 183 'httpMethod' => 'GET', 184 'parameters' => [ 185 'name' => [ 186 'location' => 'path', 187 'type' => 'string', 188 'required' => true, 189 ], 190 ], 191 ],'list' => [ 192 'path' => 'v1/{+name}/operations', 193 'httpMethod' => 'GET', 194 'parameters' => [ 195 'name' => [ 196 'location' => 'path', 197 'type' => 'string', 198 'required' => true, 199 ], 200 'filter' => [ 201 'location' => 'query', 202 'type' => 'string', 203 ], 204 'pageSize' => [ 205 'location' => 'query', 206 'type' => 'integer', 207 ], 208 'pageToken' => [ 209 'location' => 'query', 210 'type' => 'string', 211 ], 212 ], 213 ], 214 ] 215 ] 216 ); 217 } 218} 219 220// Adding a class alias for backwards compatibility with the previous class name. 221class_alias(CloudComposer::class, 'Google_Service_CloudComposer'); 222