2024-07-29 22:15:21 +00:00

1251 lines
38 KiB
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.
*/
namespace Google\Service;
use Google\Client;
/**
* Service definition for Sasportal (v1alpha1).
*
* <p>
</p>
*
* <p>
* For more information about this service, see the API
* <a href="https://developers.google.com/spectrum-access-system/" target="_blank">Documentation</a>
* </p>
*
* @author Google, Inc.
*/
class Sasportal extends \Google\Service
{
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
const CLOUD_PLATFORM =
"https://www.googleapis.com/auth/cloud-platform";
/** Read, create, update, and delete your SAS Portal data.. */
const SASPORTAL =
"https://www.googleapis.com/auth/sasportal";
public $customers;
public $customers_deployments;
public $customers_deployments_devices;
public $customers_devices;
public $customers_nodes;
public $customers_nodes_deployments;
public $customers_nodes_devices;
public $customers_nodes_nodes;
public $deployments;
public $deployments_devices;
public $installer;
public $nodes;
public $nodes_deployments;
public $nodes_deployments_devices;
public $nodes_devices;
public $nodes_nodes;
public $nodes_nodes_deployments;
public $nodes_nodes_devices;
public $nodes_nodes_nodes;
public $policies;
public $rootUrlTemplate;
/**
* Constructs the internal representation of the Sasportal service.
*
* @param Client|array $clientOrConfig The client used to deliver requests, or a
* config array to pass to a new Client instance.
* @param string $rootUrl The root URL used for requests to the service.
*/
public function __construct($clientOrConfig = [], $rootUrl = null)
{
parent::__construct($clientOrConfig);
$this->rootUrl = $rootUrl ?: 'https://sasportal.googleapis.com/';
$this->rootUrlTemplate = $rootUrl ?: 'https://sasportal.UNIVERSE_DOMAIN/';
$this->servicePath = '';
$this->batchPath = 'batch';
$this->version = 'v1alpha1';
$this->serviceName = 'sasportal';
$this->customers = new Sasportal\Resource\Customers(
$this,
$this->serviceName,
'customers',
[
'methods' => [
'get' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1alpha1/customers',
'httpMethod' => 'GET',
'parameters' => [
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],'listGcpProjectDeployments' => [
'path' => 'v1alpha1/customers:listGcpProjectDeployments',
'httpMethod' => 'GET',
'parameters' => [],
],'listLegacyOrganizations' => [
'path' => 'v1alpha1/customers:listLegacyOrganizations',
'httpMethod' => 'GET',
'parameters' => [],
],'migrateOrganization' => [
'path' => 'v1alpha1/customers:migrateOrganization',
'httpMethod' => 'POST',
'parameters' => [],
],'patch' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'PATCH',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'updateMask' => [
'location' => 'query',
'type' => 'string',
],
],
],'provisionDeployment' => [
'path' => 'v1alpha1/customers:provisionDeployment',
'httpMethod' => 'POST',
'parameters' => [],
],'setupSasAnalytics' => [
'path' => 'v1alpha1/customers:setupSasAnalytics',
'httpMethod' => 'POST',
'parameters' => [],
],
]
]
);
$this->customers_deployments = new Sasportal\Resource\CustomersDeployments(
$this,
$this->serviceName,
'deployments',
[
'methods' => [
'create' => [
'path' => 'v1alpha1/{+parent}/deployments',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'delete' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'DELETE',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'get' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1alpha1/{+parent}/deployments',
'httpMethod' => 'GET',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],'move' => [
'path' => 'v1alpha1/{+name}:move',
'httpMethod' => 'POST',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'patch' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'PATCH',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'updateMask' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
);
$this->customers_deployments_devices = new Sasportal\Resource\CustomersDeploymentsDevices(
$this,
$this->serviceName,
'devices',
[
'methods' => [
'create' => [
'path' => 'v1alpha1/{+parent}/devices',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'createSigned' => [
'path' => 'v1alpha1/{+parent}/devices:createSigned',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1alpha1/{+parent}/devices',
'httpMethod' => 'GET',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
);
$this->customers_devices = new Sasportal\Resource\CustomersDevices(
$this,
$this->serviceName,
'devices',
[
'methods' => [
'create' => [
'path' => 'v1alpha1/{+parent}/devices',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'createSigned' => [
'path' => 'v1alpha1/{+parent}/devices:createSigned',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'delete' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'DELETE',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'get' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1alpha1/{+parent}/devices',
'httpMethod' => 'GET',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],'move' => [
'path' => 'v1alpha1/{+name}:move',
'httpMethod' => 'POST',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'patch' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'PATCH',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'updateMask' => [
'location' => 'query',
'type' => 'string',
],
],
],'signDevice' => [
'path' => 'v1alpha1/{+name}:signDevice',
'httpMethod' => 'POST',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'updateSigned' => [
'path' => 'v1alpha1/{+name}:updateSigned',
'httpMethod' => 'PATCH',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],
]
]
);
$this->customers_nodes = new Sasportal\Resource\CustomersNodes(
$this,
$this->serviceName,
'nodes',
[
'methods' => [
'create' => [
'path' => 'v1alpha1/{+parent}/nodes',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'delete' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'DELETE',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'get' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1alpha1/{+parent}/nodes',
'httpMethod' => 'GET',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],'move' => [
'path' => 'v1alpha1/{+name}:move',
'httpMethod' => 'POST',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'patch' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'PATCH',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'updateMask' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
);
$this->customers_nodes_deployments = new Sasportal\Resource\CustomersNodesDeployments(
$this,
$this->serviceName,
'deployments',
[
'methods' => [
'create' => [
'path' => 'v1alpha1/{+parent}/deployments',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1alpha1/{+parent}/deployments',
'httpMethod' => 'GET',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
);
$this->customers_nodes_devices = new Sasportal\Resource\CustomersNodesDevices(
$this,
$this->serviceName,
'devices',
[
'methods' => [
'create' => [
'path' => 'v1alpha1/{+parent}/devices',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'createSigned' => [
'path' => 'v1alpha1/{+parent}/devices:createSigned',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1alpha1/{+parent}/devices',
'httpMethod' => 'GET',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
);
$this->customers_nodes_nodes = new Sasportal\Resource\CustomersNodesNodes(
$this,
$this->serviceName,
'nodes',
[
'methods' => [
'create' => [
'path' => 'v1alpha1/{+parent}/nodes',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1alpha1/{+parent}/nodes',
'httpMethod' => 'GET',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
);
$this->deployments = new Sasportal\Resource\Deployments(
$this,
$this->serviceName,
'deployments',
[
'methods' => [
'get' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],
]
]
);
$this->deployments_devices = new Sasportal\Resource\DeploymentsDevices(
$this,
$this->serviceName,
'devices',
[
'methods' => [
'delete' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'DELETE',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'get' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'move' => [
'path' => 'v1alpha1/{+name}:move',
'httpMethod' => 'POST',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'patch' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'PATCH',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'updateMask' => [
'location' => 'query',
'type' => 'string',
],
],
],'signDevice' => [
'path' => 'v1alpha1/{+name}:signDevice',
'httpMethod' => 'POST',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'updateSigned' => [
'path' => 'v1alpha1/{+name}:updateSigned',
'httpMethod' => 'PATCH',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],
]
]
);
$this->installer = new Sasportal\Resource\Installer(
$this,
$this->serviceName,
'installer',
[
'methods' => [
'generateSecret' => [
'path' => 'v1alpha1/installer:generateSecret',
'httpMethod' => 'POST',
'parameters' => [],
],'validate' => [
'path' => 'v1alpha1/installer:validate',
'httpMethod' => 'POST',
'parameters' => [],
],
]
]
);
$this->nodes = new Sasportal\Resource\Nodes(
$this,
$this->serviceName,
'nodes',
[
'methods' => [
'get' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],
]
]
);
$this->nodes_deployments = new Sasportal\Resource\NodesDeployments(
$this,
$this->serviceName,
'deployments',
[
'methods' => [
'delete' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'DELETE',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'get' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1alpha1/{+parent}/deployments',
'httpMethod' => 'GET',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],'move' => [
'path' => 'v1alpha1/{+name}:move',
'httpMethod' => 'POST',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'patch' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'PATCH',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'updateMask' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
);
$this->nodes_deployments_devices = new Sasportal\Resource\NodesDeploymentsDevices(
$this,
$this->serviceName,
'devices',
[
'methods' => [
'create' => [
'path' => 'v1alpha1/{+parent}/devices',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'createSigned' => [
'path' => 'v1alpha1/{+parent}/devices:createSigned',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1alpha1/{+parent}/devices',
'httpMethod' => 'GET',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
);
$this->nodes_devices = new Sasportal\Resource\NodesDevices(
$this,
$this->serviceName,
'devices',
[
'methods' => [
'create' => [
'path' => 'v1alpha1/{+parent}/devices',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'createSigned' => [
'path' => 'v1alpha1/{+parent}/devices:createSigned',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'delete' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'DELETE',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'get' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1alpha1/{+parent}/devices',
'httpMethod' => 'GET',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],'move' => [
'path' => 'v1alpha1/{+name}:move',
'httpMethod' => 'POST',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'patch' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'PATCH',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'updateMask' => [
'location' => 'query',
'type' => 'string',
],
],
],'signDevice' => [
'path' => 'v1alpha1/{+name}:signDevice',
'httpMethod' => 'POST',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'updateSigned' => [
'path' => 'v1alpha1/{+name}:updateSigned',
'httpMethod' => 'PATCH',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],
]
]
);
$this->nodes_nodes = new Sasportal\Resource\NodesNodes(
$this,
$this->serviceName,
'nodes',
[
'methods' => [
'create' => [
'path' => 'v1alpha1/{+parent}/nodes',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'delete' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'DELETE',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'get' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1alpha1/{+parent}/nodes',
'httpMethod' => 'GET',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],'move' => [
'path' => 'v1alpha1/{+name}:move',
'httpMethod' => 'POST',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'patch' => [
'path' => 'v1alpha1/{+name}',
'httpMethod' => 'PATCH',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'updateMask' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
);
$this->nodes_nodes_deployments = new Sasportal\Resource\NodesNodesDeployments(
$this,
$this->serviceName,
'deployments',
[
'methods' => [
'create' => [
'path' => 'v1alpha1/{+parent}/deployments',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1alpha1/{+parent}/deployments',
'httpMethod' => 'GET',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
);
$this->nodes_nodes_devices = new Sasportal\Resource\NodesNodesDevices(
$this,
$this->serviceName,
'devices',
[
'methods' => [
'create' => [
'path' => 'v1alpha1/{+parent}/devices',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'createSigned' => [
'path' => 'v1alpha1/{+parent}/devices:createSigned',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1alpha1/{+parent}/devices',
'httpMethod' => 'GET',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
);
$this->nodes_nodes_nodes = new Sasportal\Resource\NodesNodesNodes(
$this,
$this->serviceName,
'nodes',
[
'methods' => [
'create' => [
'path' => 'v1alpha1/{+parent}/nodes',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1alpha1/{+parent}/nodes',
'httpMethod' => 'GET',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
);
$this->policies = new Sasportal\Resource\Policies(
$this,
$this->serviceName,
'policies',
[
'methods' => [
'get' => [
'path' => 'v1alpha1/policies:get',
'httpMethod' => 'POST',
'parameters' => [],
],'set' => [
'path' => 'v1alpha1/policies:set',
'httpMethod' => 'POST',
'parameters' => [],
],'test' => [
'path' => 'v1alpha1/policies:test',
'httpMethod' => 'POST',
'parameters' => [],
],
]
]
);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Sasportal::class, 'Google_Service_Sasportal');