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 CloudIAP (v1). 24 * 25 * <p> 26 * Controls access to cloud applications running 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/iap" target="_blank">Documentation</a> 31 * </p> 32 * 33 * @author Google, Inc. 34 */ 35class CloudIAP 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_brands; 42 public $projects_brands_identityAwareProxyClients; 43 public $projects_iap_tunnel_locations_destGroups; 44 public $v1; 45 46 /** 47 * Constructs the internal representation of the CloudIAP service. 48 * 49 * @param Client|array $clientOrConfig The client used to deliver requests, or a 50 * config array to pass to a new Client instance. 51 * @param string $rootUrl The root URL used for requests to the service. 52 */ 53 public function __construct($clientOrConfig = [], $rootUrl = null) 54 { 55 parent::__construct($clientOrConfig); 56 $this->rootUrl = $rootUrl ?: 'https://iap.googleapis.com/'; 57 $this->servicePath = ''; 58 $this->batchPath = 'batch'; 59 $this->version = 'v1'; 60 $this->serviceName = 'iap'; 61 62 $this->projects_brands = new CloudIAP\Resource\ProjectsBrands( 63 $this, 64 $this->serviceName, 65 'brands', 66 [ 67 'methods' => [ 68 'create' => [ 69 'path' => 'v1/{+parent}/brands', 70 'httpMethod' => 'POST', 71 'parameters' => [ 72 'parent' => [ 73 'location' => 'path', 74 'type' => 'string', 75 'required' => true, 76 ], 77 ], 78 ],'get' => [ 79 'path' => 'v1/{+name}', 80 'httpMethod' => 'GET', 81 'parameters' => [ 82 'name' => [ 83 'location' => 'path', 84 'type' => 'string', 85 'required' => true, 86 ], 87 ], 88 ],'list' => [ 89 'path' => 'v1/{+parent}/brands', 90 'httpMethod' => 'GET', 91 'parameters' => [ 92 'parent' => [ 93 'location' => 'path', 94 'type' => 'string', 95 'required' => true, 96 ], 97 ], 98 ], 99 ] 100 ] 101 ); 102 $this->projects_brands_identityAwareProxyClients = new CloudIAP\Resource\ProjectsBrandsIdentityAwareProxyClients( 103 $this, 104 $this->serviceName, 105 'identityAwareProxyClients', 106 [ 107 'methods' => [ 108 'create' => [ 109 'path' => 'v1/{+parent}/identityAwareProxyClients', 110 'httpMethod' => 'POST', 111 'parameters' => [ 112 'parent' => [ 113 'location' => 'path', 114 'type' => 'string', 115 'required' => true, 116 ], 117 ], 118 ],'delete' => [ 119 'path' => 'v1/{+name}', 120 'httpMethod' => 'DELETE', 121 'parameters' => [ 122 'name' => [ 123 'location' => 'path', 124 'type' => 'string', 125 'required' => true, 126 ], 127 ], 128 ],'get' => [ 129 'path' => 'v1/{+name}', 130 'httpMethod' => 'GET', 131 'parameters' => [ 132 'name' => [ 133 'location' => 'path', 134 'type' => 'string', 135 'required' => true, 136 ], 137 ], 138 ],'list' => [ 139 'path' => 'v1/{+parent}/identityAwareProxyClients', 140 'httpMethod' => 'GET', 141 'parameters' => [ 142 'parent' => [ 143 'location' => 'path', 144 'type' => 'string', 145 'required' => true, 146 ], 147 'pageSize' => [ 148 'location' => 'query', 149 'type' => 'integer', 150 ], 151 'pageToken' => [ 152 'location' => 'query', 153 'type' => 'string', 154 ], 155 ], 156 ],'resetSecret' => [ 157 'path' => 'v1/{+name}:resetSecret', 158 'httpMethod' => 'POST', 159 'parameters' => [ 160 'name' => [ 161 'location' => 'path', 162 'type' => 'string', 163 'required' => true, 164 ], 165 ], 166 ], 167 ] 168 ] 169 ); 170 $this->projects_iap_tunnel_locations_destGroups = new CloudIAP\Resource\ProjectsIapTunnelLocationsDestGroups( 171 $this, 172 $this->serviceName, 173 'destGroups', 174 [ 175 'methods' => [ 176 'create' => [ 177 'path' => 'v1/{+parent}/destGroups', 178 'httpMethod' => 'POST', 179 'parameters' => [ 180 'parent' => [ 181 'location' => 'path', 182 'type' => 'string', 183 'required' => true, 184 ], 185 'tunnelDestGroupId' => [ 186 'location' => 'query', 187 'type' => 'string', 188 ], 189 ], 190 ],'delete' => [ 191 'path' => 'v1/{+name}', 192 'httpMethod' => 'DELETE', 193 'parameters' => [ 194 'name' => [ 195 'location' => 'path', 196 'type' => 'string', 197 'required' => true, 198 ], 199 ], 200 ],'get' => [ 201 'path' => 'v1/{+name}', 202 'httpMethod' => 'GET', 203 'parameters' => [ 204 'name' => [ 205 'location' => 'path', 206 'type' => 'string', 207 'required' => true, 208 ], 209 ], 210 ],'list' => [ 211 'path' => 'v1/{+parent}/destGroups', 212 'httpMethod' => 'GET', 213 'parameters' => [ 214 'parent' => [ 215 'location' => 'path', 216 'type' => 'string', 217 'required' => true, 218 ], 219 'pageSize' => [ 220 'location' => 'query', 221 'type' => 'integer', 222 ], 223 'pageToken' => [ 224 'location' => 'query', 225 'type' => 'string', 226 ], 227 ], 228 ],'patch' => [ 229 'path' => 'v1/{+name}', 230 'httpMethod' => 'PATCH', 231 'parameters' => [ 232 'name' => [ 233 'location' => 'path', 234 'type' => 'string', 235 'required' => true, 236 ], 237 'updateMask' => [ 238 'location' => 'query', 239 'type' => 'string', 240 ], 241 ], 242 ], 243 ] 244 ] 245 ); 246 $this->v1 = new CloudIAP\Resource\V1( 247 $this, 248 $this->serviceName, 249 'v1', 250 [ 251 'methods' => [ 252 'getIamPolicy' => [ 253 'path' => 'v1/{+resource}:getIamPolicy', 254 'httpMethod' => 'POST', 255 'parameters' => [ 256 'resource' => [ 257 'location' => 'path', 258 'type' => 'string', 259 'required' => true, 260 ], 261 ], 262 ],'getIapSettings' => [ 263 'path' => 'v1/{+name}:iapSettings', 264 'httpMethod' => 'GET', 265 'parameters' => [ 266 'name' => [ 267 'location' => 'path', 268 'type' => 'string', 269 'required' => true, 270 ], 271 ], 272 ],'setIamPolicy' => [ 273 'path' => 'v1/{+resource}:setIamPolicy', 274 'httpMethod' => 'POST', 275 'parameters' => [ 276 'resource' => [ 277 'location' => 'path', 278 'type' => 'string', 279 'required' => true, 280 ], 281 ], 282 ],'testIamPermissions' => [ 283 'path' => 'v1/{+resource}:testIamPermissions', 284 'httpMethod' => 'POST', 285 'parameters' => [ 286 'resource' => [ 287 'location' => 'path', 288 'type' => 'string', 289 'required' => true, 290 ], 291 ], 292 ],'updateIapSettings' => [ 293 'path' => 'v1/{+name}:iapSettings', 294 'httpMethod' => 'PATCH', 295 'parameters' => [ 296 'name' => [ 297 'location' => 'path', 298 'type' => 'string', 299 'required' => true, 300 ], 301 'updateMask' => [ 302 'location' => 'query', 303 'type' => 'string', 304 ], 305 ], 306 ], 307 ] 308 ] 309 ); 310 } 311} 312 313// Adding a class alias for backwards compatibility with the previous class name. 314class_alias(CloudIAP::class, 'Google_Service_CloudIAP'); 315