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 Networkconnectivity (v1). 24 * 25 * <p> 26 * The Network Connectivity API provides access to Network Connectivity Center.</p> 27 * 28 * <p> 29 * For more information about this service, see the API 30 * <a href="https://cloud.google.com/network-connectivity/docs/reference/networkconnectivity/rest" target="_blank">Documentation</a> 31 * </p> 32 * 33 * @author Google, Inc. 34 */ 35class Networkconnectivity 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_global_hubs; 43 public $projects_locations_global_policyBasedRoutes; 44 public $projects_locations_operations; 45 public $projects_locations_spokes; 46 47 /** 48 * Constructs the internal representation of the Networkconnectivity service. 49 * 50 * @param Client|array $clientOrConfig The client used to deliver requests, or a 51 * config array to pass to a new Client instance. 52 * @param string $rootUrl The root URL used for requests to the service. 53 */ 54 public function __construct($clientOrConfig = [], $rootUrl = null) 55 { 56 parent::__construct($clientOrConfig); 57 $this->rootUrl = $rootUrl ?: 'https://networkconnectivity.googleapis.com/'; 58 $this->servicePath = ''; 59 $this->batchPath = 'batch'; 60 $this->version = 'v1'; 61 $this->serviceName = 'networkconnectivity'; 62 63 $this->projects_locations = new Networkconnectivity\Resource\ProjectsLocations( 64 $this, 65 $this->serviceName, 66 'locations', 67 [ 68 'methods' => [ 69 'get' => [ 70 'path' => 'v1/{+name}', 71 'httpMethod' => 'GET', 72 'parameters' => [ 73 'name' => [ 74 'location' => 'path', 75 'type' => 'string', 76 'required' => true, 77 ], 78 ], 79 ],'list' => [ 80 'path' => 'v1/{+name}/locations', 81 'httpMethod' => 'GET', 82 'parameters' => [ 83 'name' => [ 84 'location' => 'path', 85 'type' => 'string', 86 'required' => true, 87 ], 88 'filter' => [ 89 'location' => 'query', 90 'type' => 'string', 91 ], 92 'pageSize' => [ 93 'location' => 'query', 94 'type' => 'integer', 95 ], 96 'pageToken' => [ 97 'location' => 'query', 98 'type' => 'string', 99 ], 100 ], 101 ], 102 ] 103 ] 104 ); 105 $this->projects_locations_global_hubs = new Networkconnectivity\Resource\ProjectsLocationsNetworkconnectivityGlobalHubs( 106 $this, 107 $this->serviceName, 108 'hubs', 109 [ 110 'methods' => [ 111 'create' => [ 112 'path' => 'v1/{+parent}/hubs', 113 'httpMethod' => 'POST', 114 'parameters' => [ 115 'parent' => [ 116 'location' => 'path', 117 'type' => 'string', 118 'required' => true, 119 ], 120 'hubId' => [ 121 'location' => 'query', 122 'type' => 'string', 123 ], 124 'requestId' => [ 125 'location' => 'query', 126 'type' => 'string', 127 ], 128 ], 129 ],'delete' => [ 130 'path' => 'v1/{+name}', 131 'httpMethod' => 'DELETE', 132 'parameters' => [ 133 'name' => [ 134 'location' => 'path', 135 'type' => 'string', 136 'required' => true, 137 ], 138 'requestId' => [ 139 'location' => 'query', 140 'type' => 'string', 141 ], 142 ], 143 ],'get' => [ 144 'path' => 'v1/{+name}', 145 'httpMethod' => 'GET', 146 'parameters' => [ 147 'name' => [ 148 'location' => 'path', 149 'type' => 'string', 150 'required' => true, 151 ], 152 ], 153 ],'getIamPolicy' => [ 154 'path' => 'v1/{+resource}:getIamPolicy', 155 'httpMethod' => 'GET', 156 'parameters' => [ 157 'resource' => [ 158 'location' => 'path', 159 'type' => 'string', 160 'required' => true, 161 ], 162 'options.requestedPolicyVersion' => [ 163 'location' => 'query', 164 'type' => 'integer', 165 ], 166 ], 167 ],'list' => [ 168 'path' => 'v1/{+parent}/hubs', 169 'httpMethod' => 'GET', 170 'parameters' => [ 171 'parent' => [ 172 'location' => 'path', 173 'type' => 'string', 174 'required' => true, 175 ], 176 'filter' => [ 177 'location' => 'query', 178 'type' => 'string', 179 ], 180 'orderBy' => [ 181 'location' => 'query', 182 'type' => 'string', 183 ], 184 'pageSize' => [ 185 'location' => 'query', 186 'type' => 'integer', 187 ], 188 'pageToken' => [ 189 'location' => 'query', 190 'type' => 'string', 191 ], 192 ], 193 ],'patch' => [ 194 'path' => 'v1/{+name}', 195 'httpMethod' => 'PATCH', 196 'parameters' => [ 197 'name' => [ 198 'location' => 'path', 199 'type' => 'string', 200 'required' => true, 201 ], 202 'requestId' => [ 203 'location' => 'query', 204 'type' => 'string', 205 ], 206 'updateMask' => [ 207 'location' => 'query', 208 'type' => 'string', 209 ], 210 ], 211 ],'setIamPolicy' => [ 212 'path' => 'v1/{+resource}:setIamPolicy', 213 'httpMethod' => 'POST', 214 'parameters' => [ 215 'resource' => [ 216 'location' => 'path', 217 'type' => 'string', 218 'required' => true, 219 ], 220 ], 221 ],'testIamPermissions' => [ 222 'path' => 'v1/{+resource}:testIamPermissions', 223 'httpMethod' => 'POST', 224 'parameters' => [ 225 'resource' => [ 226 'location' => 'path', 227 'type' => 'string', 228 'required' => true, 229 ], 230 ], 231 ], 232 ] 233 ] 234 ); 235 $this->projects_locations_global_policyBasedRoutes = new Networkconnectivity\Resource\ProjectsLocationsNetworkconnectivityGlobalPolicyBasedRoutes( 236 $this, 237 $this->serviceName, 238 'policyBasedRoutes', 239 [ 240 'methods' => [ 241 'getIamPolicy' => [ 242 'path' => 'v1/{+resource}:getIamPolicy', 243 'httpMethod' => 'GET', 244 'parameters' => [ 245 'resource' => [ 246 'location' => 'path', 247 'type' => 'string', 248 'required' => true, 249 ], 250 'options.requestedPolicyVersion' => [ 251 'location' => 'query', 252 'type' => 'integer', 253 ], 254 ], 255 ],'setIamPolicy' => [ 256 'path' => 'v1/{+resource}:setIamPolicy', 257 'httpMethod' => 'POST', 258 'parameters' => [ 259 'resource' => [ 260 'location' => 'path', 261 'type' => 'string', 262 'required' => true, 263 ], 264 ], 265 ],'testIamPermissions' => [ 266 'path' => 'v1/{+resource}:testIamPermissions', 267 'httpMethod' => 'POST', 268 'parameters' => [ 269 'resource' => [ 270 'location' => 'path', 271 'type' => 'string', 272 'required' => true, 273 ], 274 ], 275 ], 276 ] 277 ] 278 ); 279 $this->projects_locations_operations = new Networkconnectivity\Resource\ProjectsLocationsOperations( 280 $this, 281 $this->serviceName, 282 'operations', 283 [ 284 'methods' => [ 285 'cancel' => [ 286 'path' => 'v1/{+name}:cancel', 287 'httpMethod' => 'POST', 288 'parameters' => [ 289 'name' => [ 290 'location' => 'path', 291 'type' => 'string', 292 'required' => true, 293 ], 294 ], 295 ],'delete' => [ 296 'path' => 'v1/{+name}', 297 'httpMethod' => 'DELETE', 298 'parameters' => [ 299 'name' => [ 300 'location' => 'path', 301 'type' => 'string', 302 'required' => true, 303 ], 304 ], 305 ],'get' => [ 306 'path' => 'v1/{+name}', 307 'httpMethod' => 'GET', 308 'parameters' => [ 309 'name' => [ 310 'location' => 'path', 311 'type' => 'string', 312 'required' => true, 313 ], 314 ], 315 ],'list' => [ 316 'path' => 'v1/{+name}/operations', 317 'httpMethod' => 'GET', 318 'parameters' => [ 319 'name' => [ 320 'location' => 'path', 321 'type' => 'string', 322 'required' => true, 323 ], 324 'filter' => [ 325 'location' => 'query', 326 'type' => 'string', 327 ], 328 'pageSize' => [ 329 'location' => 'query', 330 'type' => 'integer', 331 ], 332 'pageToken' => [ 333 'location' => 'query', 334 'type' => 'string', 335 ], 336 ], 337 ], 338 ] 339 ] 340 ); 341 $this->projects_locations_spokes = new Networkconnectivity\Resource\ProjectsLocationsSpokes( 342 $this, 343 $this->serviceName, 344 'spokes', 345 [ 346 'methods' => [ 347 'create' => [ 348 'path' => 'v1/{+parent}/spokes', 349 'httpMethod' => 'POST', 350 'parameters' => [ 351 'parent' => [ 352 'location' => 'path', 353 'type' => 'string', 354 'required' => true, 355 ], 356 'requestId' => [ 357 'location' => 'query', 358 'type' => 'string', 359 ], 360 'spokeId' => [ 361 'location' => 'query', 362 'type' => 'string', 363 ], 364 ], 365 ],'delete' => [ 366 'path' => 'v1/{+name}', 367 'httpMethod' => 'DELETE', 368 'parameters' => [ 369 'name' => [ 370 'location' => 'path', 371 'type' => 'string', 372 'required' => true, 373 ], 374 'requestId' => [ 375 'location' => 'query', 376 'type' => 'string', 377 ], 378 ], 379 ],'get' => [ 380 'path' => 'v1/{+name}', 381 'httpMethod' => 'GET', 382 'parameters' => [ 383 'name' => [ 384 'location' => 'path', 385 'type' => 'string', 386 'required' => true, 387 ], 388 ], 389 ],'getIamPolicy' => [ 390 'path' => 'v1/{+resource}:getIamPolicy', 391 'httpMethod' => 'GET', 392 'parameters' => [ 393 'resource' => [ 394 'location' => 'path', 395 'type' => 'string', 396 'required' => true, 397 ], 398 'options.requestedPolicyVersion' => [ 399 'location' => 'query', 400 'type' => 'integer', 401 ], 402 ], 403 ],'list' => [ 404 'path' => 'v1/{+parent}/spokes', 405 'httpMethod' => 'GET', 406 'parameters' => [ 407 'parent' => [ 408 'location' => 'path', 409 'type' => 'string', 410 'required' => true, 411 ], 412 'filter' => [ 413 'location' => 'query', 414 'type' => 'string', 415 ], 416 'orderBy' => [ 417 'location' => 'query', 418 'type' => 'string', 419 ], 420 'pageSize' => [ 421 'location' => 'query', 422 'type' => 'integer', 423 ], 424 'pageToken' => [ 425 'location' => 'query', 426 'type' => 'string', 427 ], 428 ], 429 ],'patch' => [ 430 'path' => 'v1/{+name}', 431 'httpMethod' => 'PATCH', 432 'parameters' => [ 433 'name' => [ 434 'location' => 'path', 435 'type' => 'string', 436 'required' => true, 437 ], 438 'requestId' => [ 439 'location' => 'query', 440 'type' => 'string', 441 ], 442 'updateMask' => [ 443 'location' => 'query', 444 'type' => 'string', 445 ], 446 ], 447 ],'setIamPolicy' => [ 448 'path' => 'v1/{+resource}:setIamPolicy', 449 'httpMethod' => 'POST', 450 'parameters' => [ 451 'resource' => [ 452 'location' => 'path', 453 'type' => 'string', 454 'required' => true, 455 ], 456 ], 457 ],'testIamPermissions' => [ 458 'path' => 'v1/{+resource}:testIamPermissions', 459 'httpMethod' => 'POST', 460 'parameters' => [ 461 'resource' => [ 462 'location' => 'path', 463 'type' => 'string', 464 'required' => true, 465 ], 466 ], 467 ], 468 ] 469 ] 470 ); 471 } 472} 473 474// Adding a class alias for backwards compatibility with the previous class name. 475class_alias(Networkconnectivity::class, 'Google_Service_Networkconnectivity'); 476