Edit File: Networkconnectivity.php
<?php /* * Copyright 2014 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ /** * Service definition for Networkconnectivity (v1alpha1). * * <p> * The Network Connectivity API will be home to various services which provide * information pertaining to network connectivity.</p> * * <p> * For more information about this service, see the API * <a href="https://cloud.google.com/network-connectivity/docs" target="_blank">Documentation</a> * </p> * * @author Google, Inc. */ class Google_Service_Networkconnectivity extends Google_Service { /** See, edit, configure, and delete your Google Cloud Platform data. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; public $projects_locations; public $projects_locations_global_hubs; public $projects_locations_global_policyBasedRoutes; public $projects_locations_internalRanges; public $projects_locations_operations; public $projects_locations_spokes; /** * Constructs the internal representation of the Networkconnectivity service. * * @param Google_Client $client The client used to deliver requests. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct(Google_Client $client, $rootUrl = null) { parent::__construct($client); $this->rootUrl = $rootUrl ?: 'https://networkconnectivity.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1alpha1'; $this->serviceName = 'networkconnectivity'; $this->projects_locations = new Google_Service_Networkconnectivity_Resource_ProjectsLocations( $this, $this->serviceName, 'locations', array( 'methods' => array( 'get' => array( 'path' => 'v1alpha1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1alpha1/{+name}/locations', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->projects_locations_global_hubs = new Google_Service_Networkconnectivity_Resource_ProjectsLocationsNetworkconnectivityGlobalHubs( $this, $this->serviceName, 'hubs', array( 'methods' => array( 'create' => array( 'path' => 'v1alpha1/{+parent}/hubs', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'hubId' => array( 'location' => 'query', 'type' => 'string', ), 'requestId' => array( 'location' => 'query', 'type' => 'string', ), ), ),'delete' => array( 'path' => 'v1alpha1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'requestId' => array( 'location' => 'query', 'type' => 'string', ), ), ),'get' => array( 'path' => 'v1alpha1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'getIamPolicy' => array( 'path' => 'v1alpha1/{+resource}:getIamPolicy', 'httpMethod' => 'GET', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'options.requestedPolicyVersion' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'list' => array( 'path' => 'v1alpha1/{+parent}/hubs', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ),'patch' => array( 'path' => 'v1alpha1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'requestId' => array( 'location' => 'query', 'type' => 'string', ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ),'setIamPolicy' => array( 'path' => 'v1alpha1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'testIamPermissions' => array( 'path' => 'v1alpha1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_locations_global_policyBasedRoutes = new Google_Service_Networkconnectivity_Resource_ProjectsLocationsNetworkconnectivityGlobalPolicyBasedRoutes( $this, $this->serviceName, 'policyBasedRoutes', array( 'methods' => array( 'getIamPolicy' => array( 'path' => 'v1alpha1/{+resource}:getIamPolicy', 'httpMethod' => 'GET', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'options.requestedPolicyVersion' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'setIamPolicy' => array( 'path' => 'v1alpha1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'testIamPermissions' => array( 'path' => 'v1alpha1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_locations_internalRanges = new Google_Service_Networkconnectivity_Resource_ProjectsLocationsInternalRanges( $this, $this->serviceName, 'internalRanges', array( 'methods' => array( 'getIamPolicy' => array( 'path' => 'v1alpha1/{+resource}:getIamPolicy', 'httpMethod' => 'GET', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'options.requestedPolicyVersion' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'setIamPolicy' => array( 'path' => 'v1alpha1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'testIamPermissions' => array( 'path' => 'v1alpha1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_locations_operations = new Google_Service_Networkconnectivity_Resource_ProjectsLocationsOperations( $this, $this->serviceName, 'operations', array( 'methods' => array( 'cancel' => array( 'path' => 'v1alpha1/{+name}:cancel', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v1alpha1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1alpha1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1alpha1/{+name}/operations', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->projects_locations_spokes = new Google_Service_Networkconnectivity_Resource_ProjectsLocationsSpokes( $this, $this->serviceName, 'spokes', array( 'methods' => array( 'create' => array( 'path' => 'v1alpha1/{+parent}/spokes', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'requestId' => array( 'location' => 'query', 'type' => 'string', ), 'spokeId' => array( 'location' => 'query', 'type' => 'string', ), ), ),'delete' => array( 'path' => 'v1alpha1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'requestId' => array( 'location' => 'query', 'type' => 'string', ), ), ),'get' => array( 'path' => 'v1alpha1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'getIamPolicy' => array( 'path' => 'v1alpha1/{+resource}:getIamPolicy', 'httpMethod' => 'GET', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'options.requestedPolicyVersion' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'list' => array( 'path' => 'v1alpha1/{+parent}/spokes', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ),'patch' => array( 'path' => 'v1alpha1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'requestId' => array( 'location' => 'query', 'type' => 'string', ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ),'setIamPolicy' => array( 'path' => 'v1alpha1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'testIamPermissions' => array( 'path' => 'v1alpha1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); } }