gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,271 @@
<?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\APIManagement;
class ApiObservation extends \Google\Collection
{
/**
* Unknown style
*/
public const STYLE_STYLE_UNSPECIFIED = 'STYLE_UNSPECIFIED';
/**
* Style is Rest API
*/
public const STYLE_REST = 'REST';
/**
* Style is Grpc API
*/
public const STYLE_GRPC = 'GRPC';
/**
* Style is GraphQL API
*/
public const STYLE_GRAPHQL = 'GRAPHQL';
protected $collection_key = 'tags';
/**
* The number of observed API Operations.
*
* @var string
*/
public $apiOperationCount;
/**
* Create time stamp
*
* @var string
*/
public $createTime;
/**
* The hostname of requests processed for this Observation.
*
* @var string
*/
public $hostname;
/**
* Last event detected time stamp
*
* @var string
*/
public $lastEventDetectedTime;
/**
* Identifier. Name of resource
*
* @var string
*/
public $name;
/**
* The IP address (IPv4 or IPv6) of the origin server that the request was
* sent to. This field can include port information. Examples:
* `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
*
* @var string[]
*/
public $serverIps;
/**
* Location of the Observation Source, for example "us-central1" or "europe-
* west1."
*
* @var string[]
*/
public $sourceLocations;
/**
* Style of ApiObservation
*
* @var string
*/
public $style;
/**
* User-defined tags to organize and sort
*
* @var string[]
*/
public $tags;
/**
* Update time stamp
*
* @var string
*/
public $updateTime;
/**
* The number of observed API Operations.
*
* @param string $apiOperationCount
*/
public function setApiOperationCount($apiOperationCount)
{
$this->apiOperationCount = $apiOperationCount;
}
/**
* @return string
*/
public function getApiOperationCount()
{
return $this->apiOperationCount;
}
/**
* Create time stamp
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The hostname of requests processed for this Observation.
*
* @param string $hostname
*/
public function setHostname($hostname)
{
$this->hostname = $hostname;
}
/**
* @return string
*/
public function getHostname()
{
return $this->hostname;
}
/**
* Last event detected time stamp
*
* @param string $lastEventDetectedTime
*/
public function setLastEventDetectedTime($lastEventDetectedTime)
{
$this->lastEventDetectedTime = $lastEventDetectedTime;
}
/**
* @return string
*/
public function getLastEventDetectedTime()
{
return $this->lastEventDetectedTime;
}
/**
* Identifier. Name of resource
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The IP address (IPv4 or IPv6) of the origin server that the request was
* sent to. This field can include port information. Examples:
* `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
*
* @param string[] $serverIps
*/
public function setServerIps($serverIps)
{
$this->serverIps = $serverIps;
}
/**
* @return string[]
*/
public function getServerIps()
{
return $this->serverIps;
}
/**
* Location of the Observation Source, for example "us-central1" or "europe-
* west1."
*
* @param string[] $sourceLocations
*/
public function setSourceLocations($sourceLocations)
{
$this->sourceLocations = $sourceLocations;
}
/**
* @return string[]
*/
public function getSourceLocations()
{
return $this->sourceLocations;
}
/**
* Style of ApiObservation
*
* Accepted values: STYLE_UNSPECIFIED, REST, GRPC, GRAPHQL
*
* @param self::STYLE_* $style
*/
public function setStyle($style)
{
$this->style = $style;
}
/**
* @return self::STYLE_*
*/
public function getStyle()
{
return $this->style;
}
/**
* User-defined tags to organize and sort
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* Update time stamp
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApiObservation::class, 'Google_Service_APIManagement_ApiObservation');
@@ -0,0 +1,132 @@
<?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\APIManagement;
class ApiOperation extends \Google\Model
{
/**
* The number of occurrences of this API Operation.
*
* @var string
*/
public $count;
/**
* First seen time stamp
*
* @var string
*/
public $firstSeenTime;
protected $httpOperationType = HttpOperation::class;
protected $httpOperationDataType = '';
/**
* Last seen time stamp
*
* @var string
*/
public $lastSeenTime;
/**
* Identifier. Name of resource
*
* @var string
*/
public $name;
/**
* The number of occurrences of this API Operation.
*
* @param string $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* First seen time stamp
*
* @param string $firstSeenTime
*/
public function setFirstSeenTime($firstSeenTime)
{
$this->firstSeenTime = $firstSeenTime;
}
/**
* @return string
*/
public function getFirstSeenTime()
{
return $this->firstSeenTime;
}
/**
* An HTTP Operation.
*
* @param HttpOperation $httpOperation
*/
public function setHttpOperation(HttpOperation $httpOperation)
{
$this->httpOperation = $httpOperation;
}
/**
* @return HttpOperation
*/
public function getHttpOperation()
{
return $this->httpOperation;
}
/**
* Last seen time stamp
*
* @param string $lastSeenTime
*/
public function setLastSeenTime($lastSeenTime)
{
$this->lastSeenTime = $lastSeenTime;
}
/**
* @return string
*/
public function getLastSeenTime()
{
return $this->lastSeenTime;
}
/**
* Identifier. Name of resource
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApiOperation::class, 'Google_Service_APIManagement_ApiOperation');
@@ -0,0 +1,25 @@
<?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\APIManagement;
class ApimEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApimEmpty::class, 'Google_Service_APIManagement_ApimEmpty');
@@ -0,0 +1,46 @@
<?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\APIManagement;
class BatchEditTagsApiObservationsRequest extends \Google\Collection
{
protected $collection_key = 'requests';
protected $requestsType = EditTagsApiObservationsRequest::class;
protected $requestsDataType = 'array';
/**
* Required. The request message specifying the resources to update. A maximum
* of 1000 apiObservations can be modified in a batch.
*
* @param EditTagsApiObservationsRequest[] $requests
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return EditTagsApiObservationsRequest[]
*/
public function getRequests()
{
return $this->requests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchEditTagsApiObservationsRequest::class, 'Google_Service_APIManagement_BatchEditTagsApiObservationsRequest');
@@ -0,0 +1,45 @@
<?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\APIManagement;
class BatchEditTagsApiObservationsResponse extends \Google\Collection
{
protected $collection_key = 'apiObservations';
protected $apiObservationsType = ApiObservation::class;
protected $apiObservationsDataType = 'array';
/**
* ApiObservations that were changed
*
* @param ApiObservation[] $apiObservations
*/
public function setApiObservations($apiObservations)
{
$this->apiObservations = $apiObservations;
}
/**
* @return ApiObservation[]
*/
public function getApiObservations()
{
return $this->apiObservations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchEditTagsApiObservationsResponse::class, 'Google_Service_APIManagement_BatchEditTagsApiObservationsResponse');
@@ -0,0 +1,25 @@
<?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\APIManagement;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_APIManagement_CancelOperationRequest');
@@ -0,0 +1,25 @@
<?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\APIManagement;
class DisableObservationJobRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DisableObservationJobRequest::class, 'Google_Service_APIManagement_DisableObservationJobRequest');
@@ -0,0 +1,69 @@
<?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\APIManagement;
class EditTagsApiObservationsRequest extends \Google\Collection
{
protected $collection_key = 'tagActions';
/**
* Required. Identifier of ApiObservation need to be edit tags Format example:
* "apigee.googleapis.com|us-west1|443"
*
* @var string
*/
public $apiObservationId;
protected $tagActionsType = TagAction::class;
protected $tagActionsDataType = 'array';
/**
* Required. Identifier of ApiObservation need to be edit tags Format example:
* "apigee.googleapis.com|us-west1|443"
*
* @param string $apiObservationId
*/
public function setApiObservationId($apiObservationId)
{
$this->apiObservationId = $apiObservationId;
}
/**
* @return string
*/
public function getApiObservationId()
{
return $this->apiObservationId;
}
/**
* Required. Tag actions to be applied
*
* @param TagAction[] $tagActions
*/
public function setTagActions($tagActions)
{
$this->tagActions = $tagActions;
}
/**
* @return TagAction[]
*/
public function getTagActions()
{
return $this->tagActions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EditTagsApiObservationsRequest::class, 'Google_Service_APIManagement_EditTagsApiObservationsRequest');
@@ -0,0 +1,25 @@
<?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\APIManagement;
class EnableObservationJobRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnableObservationJobRequest::class, 'Google_Service_APIManagement_EnableObservationJobRequest');
@@ -0,0 +1,140 @@
<?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\APIManagement;
class Entitlement extends \Google\Model
{
/**
* Whether API Observation is entitled.
*
* @var bool
*/
public $apiObservationEntitled;
/**
* Project number of associated billing project that has Apigee and Advanced
* API Security entitled.
*
* @var string
*/
public $billingProjectNumber;
/**
* Output only. The time of the entitlement creation.
*
* @var string
*/
public $createTime;
/**
* Identifier. The entitlement resource name
* `projects/{project}/locations/{location}/entitlement`
*
* @var string
*/
public $name;
/**
* Output only. The time of the entitlement update.
*
* @var string
*/
public $updateTime;
/**
* Whether API Observation is entitled.
*
* @param bool $apiObservationEntitled
*/
public function setApiObservationEntitled($apiObservationEntitled)
{
$this->apiObservationEntitled = $apiObservationEntitled;
}
/**
* @return bool
*/
public function getApiObservationEntitled()
{
return $this->apiObservationEntitled;
}
/**
* Project number of associated billing project that has Apigee and Advanced
* API Security entitled.
*
* @param string $billingProjectNumber
*/
public function setBillingProjectNumber($billingProjectNumber)
{
$this->billingProjectNumber = $billingProjectNumber;
}
/**
* @return string
*/
public function getBillingProjectNumber()
{
return $this->billingProjectNumber;
}
/**
* Output only. The time of the entitlement creation.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Identifier. The entitlement resource name
* `projects/{project}/locations/{location}/entitlement`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The time of the entitlement update.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Entitlement::class, 'Google_Service_APIManagement_Entitlement');
@@ -0,0 +1,47 @@
<?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\APIManagement;
class GclbObservationSource extends \Google\Collection
{
protected $collection_key = 'pscNetworkConfigs';
protected $pscNetworkConfigsType = GclbObservationSourcePscNetworkConfig::class;
protected $pscNetworkConfigsDataType = 'array';
/**
* Required. The VPC networks where traffic will be observed. All load
* balancers within this network will be observed. Currently, this is limited
* to only one network.
*
* @param GclbObservationSourcePscNetworkConfig[] $pscNetworkConfigs
*/
public function setPscNetworkConfigs($pscNetworkConfigs)
{
$this->pscNetworkConfigs = $pscNetworkConfigs;
}
/**
* @return GclbObservationSourcePscNetworkConfig[]
*/
public function getPscNetworkConfigs()
{
return $this->pscNetworkConfigs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GclbObservationSource::class, 'Google_Service_APIManagement_GclbObservationSource');
@@ -0,0 +1,76 @@
<?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\APIManagement;
class GclbObservationSourcePscNetworkConfig extends \Google\Model
{
/**
* Required. The VPC network. Format:
* `projects/{project_id}/global/networks/{network}`
*
* @var string
*/
public $network;
/**
* Required. The subnetwork in the source region that will be used to connect
* to the Cloud Load Balancers via PSC NEGs. Must belong to `network`. Format:
* projects/{project_id}/regions/{region}/subnetworks/{subnet}
*
* @var string
*/
public $subnetwork;
/**
* Required. The VPC network. Format:
* `projects/{project_id}/global/networks/{network}`
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Required. The subnetwork in the source region that will be used to connect
* to the Cloud Load Balancers via PSC NEGs. Must belong to `network`. Format:
* projects/{project_id}/regions/{region}/subnetworks/{subnet}
*
* @param string $subnetwork
*/
public function setSubnetwork($subnetwork)
{
$this->subnetwork = $subnetwork;
}
/**
* @return string
*/
public function getSubnetwork()
{
return $this->subnetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GclbObservationSourcePscNetworkConfig::class, 'Google_Service_APIManagement_GclbObservationSourcePscNetworkConfig');
@@ -0,0 +1,186 @@
<?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\APIManagement;
class HttpOperation extends \Google\Collection
{
/**
* Unspecified HTTP method
*/
public const METHOD_HTTP_METHOD_UNSPECIFIED = 'HTTP_METHOD_UNSPECIFIED';
/**
* GET HTTP method
*/
public const METHOD_GET = 'GET';
/**
* HEAD HTTP method
*/
public const METHOD_HEAD = 'HEAD';
/**
* POST HTTP method
*/
public const METHOD_POST = 'POST';
/**
* PUT HTTP method
*/
public const METHOD_PUT = 'PUT';
/**
* PATCH HTTP method
*/
public const METHOD_PATCH = 'PATCH';
/**
* DELETE HTTP method
*/
public const METHOD_DELETE = 'DELETE';
/**
* TRACE HTTP method
*/
public const METHOD_TRACE = 'TRACE';
/**
* OPTIONS HTTP method
*/
public const METHOD_OPTIONS = 'OPTIONS';
/**
* CONNECT HTTP method
*/
public const METHOD_CONNECT = 'CONNECT';
protected $collection_key = 'pathParams';
/**
* HTTP Method.
*
* @var string
*/
public $method;
/**
* Path of the HTTP request.
*
* @var string
*/
public $path;
protected $pathParamsType = HttpOperationPathParam::class;
protected $pathParamsDataType = 'array';
protected $queryParamsType = HttpOperationQueryParam::class;
protected $queryParamsDataType = 'map';
protected $requestType = HttpOperationHttpRequest::class;
protected $requestDataType = '';
protected $responseType = HttpOperationHttpResponse::class;
protected $responseDataType = '';
/**
* HTTP Method.
*
* Accepted values: HTTP_METHOD_UNSPECIFIED, GET, HEAD, POST, PUT, PATCH,
* DELETE, TRACE, OPTIONS, CONNECT
*
* @param self::METHOD_* $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return self::METHOD_*
*/
public function getMethod()
{
return $this->method;
}
/**
* Path of the HTTP request.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Path params of HttpOperation
*
* @param HttpOperationPathParam[] $pathParams
*/
public function setPathParams($pathParams)
{
$this->pathParams = $pathParams;
}
/**
* @return HttpOperationPathParam[]
*/
public function getPathParams()
{
return $this->pathParams;
}
/**
* Query params of HttpOperation
*
* @param HttpOperationQueryParam[] $queryParams
*/
public function setQueryParams($queryParams)
{
$this->queryParams = $queryParams;
}
/**
* @return HttpOperationQueryParam[]
*/
public function getQueryParams()
{
return $this->queryParams;
}
/**
* Request metadata.
*
* @param HttpOperationHttpRequest $request
*/
public function setRequest(HttpOperationHttpRequest $request)
{
$this->request = $request;
}
/**
* @return HttpOperationHttpRequest
*/
public function getRequest()
{
return $this->request;
}
/**
* Response metadata.
*
* @param HttpOperationHttpResponse $response
*/
public function setResponse(HttpOperationHttpResponse $response)
{
$this->response = $response;
}
/**
* @return HttpOperationHttpResponse
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpOperation::class, 'Google_Service_APIManagement_HttpOperation');
@@ -0,0 +1,118 @@
<?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\APIManagement;
class HttpOperationHeader extends \Google\Model
{
/**
* Unspecified data type
*/
public const DATA_TYPE_DATA_TYPE_UNSPECIFIED = 'DATA_TYPE_UNSPECIFIED';
/**
* Boolean data type
*/
public const DATA_TYPE_BOOL = 'BOOL';
/**
* Integer data type
*/
public const DATA_TYPE_INTEGER = 'INTEGER';
/**
* Float data type
*/
public const DATA_TYPE_FLOAT = 'FLOAT';
/**
* String data type
*/
public const DATA_TYPE_STRING = 'STRING';
/**
* UUID data type
*/
public const DATA_TYPE_UUID = 'UUID';
/**
* The number of occurrences of this Header across transactions.
*
* @var string
*/
public $count;
/**
* Data type of header
*
* @var string
*/
public $dataType;
/**
* Header name.
*
* @var string
*/
public $name;
/**
* The number of occurrences of this Header across transactions.
*
* @param string $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* Data type of header
*
* Accepted values: DATA_TYPE_UNSPECIFIED, BOOL, INTEGER, FLOAT, STRING, UUID
*
* @param self::DATA_TYPE_* $dataType
*/
public function setDataType($dataType)
{
$this->dataType = $dataType;
}
/**
* @return self::DATA_TYPE_*
*/
public function getDataType()
{
return $this->dataType;
}
/**
* Header name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpOperationHeader::class, 'Google_Service_APIManagement_HttpOperationHeader');
@@ -0,0 +1,44 @@
<?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\APIManagement;
class HttpOperationHttpRequest extends \Google\Model
{
protected $headersType = HttpOperationHeader::class;
protected $headersDataType = 'map';
/**
* Unordered map from header name to header metadata
*
* @param HttpOperationHeader[] $headers
*/
public function setHeaders($headers)
{
$this->headers = $headers;
}
/**
* @return HttpOperationHeader[]
*/
public function getHeaders()
{
return $this->headers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpOperationHttpRequest::class, 'Google_Service_APIManagement_HttpOperationHttpRequest');
@@ -0,0 +1,66 @@
<?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\APIManagement;
class HttpOperationHttpResponse extends \Google\Model
{
protected $headersType = HttpOperationHeader::class;
protected $headersDataType = 'map';
/**
* Map of status code to observed count
*
* @var string[]
*/
public $responseCodes;
/**
* Unordered map from header name to header metadata
*
* @param HttpOperationHeader[] $headers
*/
public function setHeaders($headers)
{
$this->headers = $headers;
}
/**
* @return HttpOperationHeader[]
*/
public function getHeaders()
{
return $this->headers;
}
/**
* Map of status code to observed count
*
* @param string[] $responseCodes
*/
public function setResponseCodes($responseCodes)
{
$this->responseCodes = $responseCodes;
}
/**
* @return string[]
*/
public function getResponseCodes()
{
return $this->responseCodes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpOperationHttpResponse::class, 'Google_Service_APIManagement_HttpOperationHttpResponse');
@@ -0,0 +1,96 @@
<?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\APIManagement;
class HttpOperationPathParam extends \Google\Model
{
/**
* Unspecified data type
*/
public const DATA_TYPE_DATA_TYPE_UNSPECIFIED = 'DATA_TYPE_UNSPECIFIED';
/**
* Boolean data type
*/
public const DATA_TYPE_BOOL = 'BOOL';
/**
* Integer data type
*/
public const DATA_TYPE_INTEGER = 'INTEGER';
/**
* Float data type
*/
public const DATA_TYPE_FLOAT = 'FLOAT';
/**
* String data type
*/
public const DATA_TYPE_STRING = 'STRING';
/**
* UUID data type
*/
public const DATA_TYPE_UUID = 'UUID';
/**
* Data type of path param
*
* @var string
*/
public $dataType;
/**
* Segment location in the path, 1-indexed
*
* @var int
*/
public $position;
/**
* Data type of path param
*
* Accepted values: DATA_TYPE_UNSPECIFIED, BOOL, INTEGER, FLOAT, STRING, UUID
*
* @param self::DATA_TYPE_* $dataType
*/
public function setDataType($dataType)
{
$this->dataType = $dataType;
}
/**
* @return self::DATA_TYPE_*
*/
public function getDataType()
{
return $this->dataType;
}
/**
* Segment location in the path, 1-indexed
*
* @param int $position
*/
public function setPosition($position)
{
$this->position = $position;
}
/**
* @return int
*/
public function getPosition()
{
return $this->position;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpOperationPathParam::class, 'Google_Service_APIManagement_HttpOperationPathParam');
@@ -0,0 +1,118 @@
<?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\APIManagement;
class HttpOperationQueryParam extends \Google\Model
{
/**
* Unspecified data type
*/
public const DATA_TYPE_DATA_TYPE_UNSPECIFIED = 'DATA_TYPE_UNSPECIFIED';
/**
* Boolean data type
*/
public const DATA_TYPE_BOOL = 'BOOL';
/**
* Integer data type
*/
public const DATA_TYPE_INTEGER = 'INTEGER';
/**
* Float data type
*/
public const DATA_TYPE_FLOAT = 'FLOAT';
/**
* String data type
*/
public const DATA_TYPE_STRING = 'STRING';
/**
* UUID data type
*/
public const DATA_TYPE_UUID = 'UUID';
/**
* The number of occurrences of this query parameter across transactions.
*
* @var string
*/
public $count;
/**
* Data type of path param
*
* @var string
*/
public $dataType;
/**
* Name of query param
*
* @var string
*/
public $name;
/**
* The number of occurrences of this query parameter across transactions.
*
* @param string $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* Data type of path param
*
* Accepted values: DATA_TYPE_UNSPECIFIED, BOOL, INTEGER, FLOAT, STRING, UUID
*
* @param self::DATA_TYPE_* $dataType
*/
public function setDataType($dataType)
{
$this->dataType = $dataType;
}
/**
* @return self::DATA_TYPE_*
*/
public function getDataType()
{
return $this->dataType;
}
/**
* Name of query param
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpOperationQueryParam::class, 'Google_Service_APIManagement_HttpOperationQueryParam');
@@ -0,0 +1,73 @@
<?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\APIManagement;
class ListApiObservationTagsResponse extends \Google\Collection
{
protected $collection_key = 'apiObservationTags';
/**
* The tags from the specified project
*
* @var string[]
*/
public $apiObservationTags;
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The tags from the specified project
*
* @param string[] $apiObservationTags
*/
public function setApiObservationTags($apiObservationTags)
{
$this->apiObservationTags = $apiObservationTags;
}
/**
* @return string[]
*/
public function getApiObservationTags()
{
return $this->apiObservationTags;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListApiObservationTagsResponse::class, 'Google_Service_APIManagement_ListApiObservationTagsResponse');
@@ -0,0 +1,70 @@
<?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\APIManagement;
class ListApiObservationsResponse extends \Google\Collection
{
protected $collection_key = 'apiObservations';
protected $apiObservationsType = ApiObservation::class;
protected $apiObservationsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The ApiObservation from the specified project and location and
* ObservationJobs.
*
* @param ApiObservation[] $apiObservations
*/
public function setApiObservations($apiObservations)
{
$this->apiObservations = $apiObservations;
}
/**
* @return ApiObservation[]
*/
public function getApiObservations()
{
return $this->apiObservations;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListApiObservationsResponse::class, 'Google_Service_APIManagement_ListApiObservationsResponse');
@@ -0,0 +1,70 @@
<?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\APIManagement;
class ListApiOperationsResponse extends \Google\Collection
{
protected $collection_key = 'apiOperations';
protected $apiOperationsType = ApiOperation::class;
protected $apiOperationsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The ApiOperations from the specified project and location and
* ObservationJob and ApiObservation.
*
* @param ApiOperation[] $apiOperations
*/
public function setApiOperations($apiOperations)
{
$this->apiOperations = $apiOperations;
}
/**
* @return ApiOperation[]
*/
public function getApiOperations()
{
return $this->apiOperations;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListApiOperationsResponse::class, 'Google_Service_APIManagement_ListApiOperationsResponse');
@@ -0,0 +1,67 @@
<?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\APIManagement;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_APIManagement_ListLocationsResponse');
@@ -0,0 +1,91 @@
<?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\APIManagement;
class ListObservationJobsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $observationJobsType = ObservationJob::class;
protected $observationJobsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The ObservationJob from the specified project and location.
*
* @param ObservationJob[] $observationJobs
*/
public function setObservationJobs($observationJobs)
{
$this->observationJobs = $observationJobs;
}
/**
* @return ObservationJob[]
*/
public function getObservationJobs()
{
return $this->observationJobs;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListObservationJobsResponse::class, 'Google_Service_APIManagement_ListObservationJobsResponse');
@@ -0,0 +1,91 @@
<?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\APIManagement;
class ListObservationSourcesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $observationSourcesType = ObservationSource::class;
protected $observationSourcesDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The ObservationSource from the specified project and location.
*
* @param ObservationSource[] $observationSources
*/
public function setObservationSources($observationSources)
{
$this->observationSources = $observationSources;
}
/**
* @return ObservationSource[]
*/
public function getObservationSources()
{
return $this->observationSources;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListObservationSourcesResponse::class, 'Google_Service_APIManagement_ListObservationSourcesResponse');
@@ -0,0 +1,95 @@
<?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\APIManagement;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_APIManagement_ListOperationsResponse');
@@ -0,0 +1,144 @@
<?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\APIManagement;
class Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_APIManagement_Location');
@@ -0,0 +1,174 @@
<?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\APIManagement;
class ObservationJob extends \Google\Collection
{
/**
* Unspecified state
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Job is in the creating state
*/
public const STATE_CREATING = 'CREATING';
/**
* Job is in the enabling state
*/
public const STATE_ENABLING = 'ENABLING';
/**
* Job is enabled
*/
public const STATE_ENABLED = 'ENABLED';
/**
* Job is in the disabling state
*/
public const STATE_DISABLING = 'DISABLING';
/**
* Job is disabled
*/
public const STATE_DISABLED = 'DISABLED';
/**
* Job is being deleted
*/
public const STATE_DELETING = 'DELETING';
/**
* Job is in an error state
*/
public const STATE_ERROR = 'ERROR';
protected $collection_key = 'sources';
/**
* Output only. [Output only] Create time stamp
*
* @var string
*/
public $createTime;
/**
* Identifier. name of resource Format:
* projects/{project}/locations/{location}/observationJobs/{observation_job}
*
* @var string
*/
public $name;
/**
* Optional. These should be of the same kind of source.
*
* @var string[]
*/
public $sources;
/**
* Output only. The observation job state
*
* @var string
*/
public $state;
/**
* Output only. [Output only] Update time stamp
*
* @var string
*/
public $updateTime;
/**
* Output only. [Output only] Create time stamp
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Identifier. name of resource Format:
* projects/{project}/locations/{location}/observationJobs/{observation_job}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. These should be of the same kind of source.
*
* @param string[] $sources
*/
public function setSources($sources)
{
$this->sources = $sources;
}
/**
* @return string[]
*/
public function getSources()
{
return $this->sources;
}
/**
* Output only. The observation job state
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ENABLING, ENABLED, DISABLING,
* DISABLED, DELETING, ERROR
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. [Output only] Update time stamp
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObservationJob::class, 'Google_Service_APIManagement_ObservationJob');
@@ -0,0 +1,154 @@
<?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\APIManagement;
class ObservationSource extends \Google\Model
{
/**
* Unspecified state
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Source is in the creating state
*/
public const STATE_CREATING = 'CREATING';
/**
* Source has been created and is ready to use
*/
public const STATE_CREATED = 'CREATED';
/**
* Source is being deleted
*/
public const STATE_DELETING = 'DELETING';
/**
* Source is in an error state
*/
public const STATE_ERROR = 'ERROR';
/**
* Output only. [Output only] Create time stamp
*
* @var string
*/
public $createTime;
protected $gclbObservationSourceType = GclbObservationSource::class;
protected $gclbObservationSourceDataType = '';
/**
* Identifier. name of resource For MVP, each region can only have 1 source.
*
* @var string
*/
public $name;
/**
* Output only. The observation source state
*
* @var string
*/
public $state;
/**
* Output only. [Output only] Update time stamp
*
* @var string
*/
public $updateTime;
/**
* Output only. [Output only] Create time stamp
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The GCLB observation source
*
* @param GclbObservationSource $gclbObservationSource
*/
public function setGclbObservationSource(GclbObservationSource $gclbObservationSource)
{
$this->gclbObservationSource = $gclbObservationSource;
}
/**
* @return GclbObservationSource
*/
public function getGclbObservationSource()
{
return $this->gclbObservationSource;
}
/**
* Identifier. name of resource For MVP, each region can only have 1 source.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The observation source state
*
* Accepted values: STATE_UNSPECIFIED, CREATING, CREATED, DELETING, ERROR
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. [Output only] Update time stamp
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObservationSource::class, 'Google_Service_APIManagement_ObservationSource');
@@ -0,0 +1,158 @@
<?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\APIManagement;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_APIManagement_Operation');
@@ -0,0 +1,186 @@
<?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\APIManagement;
class OperationMetadata extends \Google\Model
{
/**
* Output only. API version used to start the operation.
*
* @var string
*/
public $apiVersion;
/**
* Output only. The time the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time the operation finished running.
*
* @var string
*/
public $endTime;
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been cancelled successfully have
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`.
*
* @var bool
*/
public $requestedCancellation;
/**
* Output only. Human-readable status of the operation, if any.
*
* @var string
*/
public $statusMessage;
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @var string
*/
public $target;
/**
* Output only. Name of the verb executed by the operation.
*
* @var string
*/
public $verb;
/**
* Output only. API version used to start the operation.
*
* @param string $apiVersion
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* Output only. The time the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time the operation finished running.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been cancelled successfully have
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`.
*
* @param bool $requestedCancellation
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* Output only. Human-readable status of the operation, if any.
*
* @param string $statusMessage
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Output only. Name of the verb executed by the operation.
*
* @param string $verb
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_APIManagement_OperationMetadata');
@@ -0,0 +1,33 @@
<?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\APIManagement\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $apimService = new Google\Service\APIManagement(...);
* $projects = $apimService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_APIManagement_Resource_Projects');
@@ -0,0 +1,128 @@
<?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\APIManagement\Resource;
use Google\Service\APIManagement\Entitlement;
use Google\Service\APIManagement\ListApiObservationTagsResponse;
use Google\Service\APIManagement\ListLocationsResponse;
use Google\Service\APIManagement\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $apimService = new Google\Service\APIManagement(...);
* $locations = $apimService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* GetEntitlement returns the entitlement for the provided project.
* (locations.getEntitlement)
*
* @param string $name Required. The entitlement resource name Format:
* projects/{project}/locations/{location}/entitlement
* @param array $optParams Optional parameters.
* @return Entitlement
* @throws \Google\Service\Exception
*/
public function getEntitlement($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getEntitlement', [$params], Entitlement::class);
}
/**
* Lists information about the supported locations for this service. This method
* lists locations based on the resource scope provided in the
* ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
* the method lists the public locations available to all projects. * **Project-
* specific locations**: If `name` follows the format `projects/{project}`, the
* method lists locations visible to that specific project. This includes
* public, private, or other project-specific locations enabled for the project.
* For gRPC and client library implementations, the resource name is passed as
* the `name` field. For direct service calls, the resource name is incorporated
* into the request path based on the specific service implementation and
* version. (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field unless
* explicitly documented otherwise. This is primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
/**
* ListApiObservationTags lists all extant tags on any observation in the given
* project. (locations.listApiObservationTags)
*
* @param string $parent Required. The parent, which owns this collection of
* tags. Format: projects/{project}/locations/{location}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of tags to return. The
* service may return fewer than this value. If unspecified, at most 10 tags
* will be returned. The maximum value is 1000; values above 1000 will be
* coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListApiObservationTags` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListApiObservationTags`
* must match the call that provided the page token.
* @return ListApiObservationTagsResponse
* @throws \Google\Service\Exception
*/
public function listApiObservationTags($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('listApiObservationTags', [$params], ListApiObservationTagsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_APIManagement_Resource_ProjectsLocations');
@@ -0,0 +1,162 @@
<?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\APIManagement\Resource;
use Google\Service\APIManagement\DisableObservationJobRequest;
use Google\Service\APIManagement\EnableObservationJobRequest;
use Google\Service\APIManagement\ListObservationJobsResponse;
use Google\Service\APIManagement\ObservationJob;
use Google\Service\APIManagement\Operation;
/**
* The "observationJobs" collection of methods.
* Typical usage is:
* <code>
* $apimService = new Google\Service\APIManagement(...);
* $observationJobs = $apimService->projects_locations_observationJobs;
* </code>
*/
class ProjectsLocationsObservationJobs extends \Google\Service\Resource
{
/**
* CreateObservationJob creates a new ObservationJob but does not have any
* effecton its own. It is a configuration that can be used in an Observation
* Job to collect data about existing APIs. (observationJobs.create)
*
* @param string $parent Required. The parent resource where this ObservationJob
* will be created. Format: projects/{project}/locations/{location}
* @param ObservationJob $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string observationJobId Required. The ID to use for the
* Observation Job. This value should be 4-63 characters, and valid characters
* are /a-z-/.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, ObservationJob $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* DeleteObservationJob deletes an ObservationJob. This method will fail if the
* observation job is currently being used by any ObservationSource, even if not
* enabled. (observationJobs.delete)
*
* @param string $name Required. Name of the resource Format:
* projects/{project}/locations/{location}/observationJobs/{observation_job}
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Disables the given ObservationJob. (observationJobs.disable)
*
* @param string $name Required. The name of the ObservationJob to disable.
* Format: projects/{project}/locations/{location}/observationJobs/{job}
* @param DisableObservationJobRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function disable($name, DisableObservationJobRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('disable', [$params], Operation::class);
}
/**
* Enables the given ObservationJob. (observationJobs.enable)
*
* @param string $name Required. The name of the ObservationJob to enable.
* Format: projects/{project}/locations/{location}/observationJobs/{job}
* @param EnableObservationJobRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function enable($name, EnableObservationJobRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('enable', [$params], Operation::class);
}
/**
* GetObservationJob retrieves a single ObservationJob by name.
* (observationJobs.get)
*
* @param string $name Required. The name of the ObservationJob to retrieve.
* Format: projects/{project}/locations/{location}/observationJobs/{job}
* @param array $optParams Optional parameters.
* @return ObservationJob
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ObservationJob::class);
}
/**
* ListObservationJobs gets all ObservationJobs for a given project and
* location. (observationJobs.listProjectsLocationsObservationJobs)
*
* @param string $parent Required. The parent, which owns this collection of
* ObservationJobs. Format: projects/{project}/locations/{location}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of ObservationJobs to
* return. The service may return fewer than this value. If unspecified, at most
* 10 ObservationJobs will be returned. The maximum value is 1000; values above
* 1000 will be coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListObservationJobs` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListObservationJobs` must
* match the call that provided the page token.
* @return ListObservationJobsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsObservationJobs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListObservationJobsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsObservationJobs::class, 'Google_Service_APIManagement_Resource_ProjectsLocationsObservationJobs');
@@ -0,0 +1,100 @@
<?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\APIManagement\Resource;
use Google\Service\APIManagement\ApiObservation;
use Google\Service\APIManagement\BatchEditTagsApiObservationsRequest;
use Google\Service\APIManagement\BatchEditTagsApiObservationsResponse;
use Google\Service\APIManagement\ListApiObservationsResponse;
/**
* The "apiObservations" collection of methods.
* Typical usage is:
* <code>
* $apimService = new Google\Service\APIManagement(...);
* $apiObservations = $apimService->projects_locations_observationJobs_apiObservations;
* </code>
*/
class ProjectsLocationsObservationJobsApiObservations extends \Google\Service\Resource
{
/**
* BatchEditTagsApiObservations adds or removes Tags for ApiObservations.
* (apiObservations.batchEditTags)
*
* @param string $parent Required. The parent resource shared by all
* ApiObservations being edited. Format:
* projects/{project}/locations/{location}/observationJobs/{observation_job}
* @param BatchEditTagsApiObservationsRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchEditTagsApiObservationsResponse
* @throws \Google\Service\Exception
*/
public function batchEditTags($parent, BatchEditTagsApiObservationsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchEditTags', [$params], BatchEditTagsApiObservationsResponse::class);
}
/**
* GetApiObservation retrieves a single ApiObservation by name.
* (apiObservations.get)
*
* @param string $name Required. The name of the ApiObservation to retrieve.
* Format: projects/{project}/locations/{location}/observationJobs/{observation_
* job}/apiObservations/{api_observation}
* @param array $optParams Optional parameters.
* @return ApiObservation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ApiObservation::class);
}
/**
* ListApiObservations gets all ApiObservations for a given project and location
* and ObservationJob.
* (apiObservations.listProjectsLocationsObservationJobsApiObservations)
*
* @param string $parent Required. The parent, which owns this collection of
* ApiObservations. Format:
* projects/{project}/locations/{location}/observationJobs/{observation_job}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of ApiObservations to
* return. The service may return fewer than this value. If unspecified, at most
* 10 ApiObservations will be returned. The maximum value is 1000; values above
* 1000 will be coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListApiObservations` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListApiObservations` must
* match the call that provided the page token.
* @return ListApiObservationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsObservationJobsApiObservations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListApiObservationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsObservationJobsApiObservations::class, 'Google_Service_APIManagement_Resource_ProjectsLocationsObservationJobsApiObservations');
@@ -0,0 +1,79 @@
<?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\APIManagement\Resource;
use Google\Service\APIManagement\ApiOperation;
use Google\Service\APIManagement\ListApiOperationsResponse;
/**
* The "apiOperations" collection of methods.
* Typical usage is:
* <code>
* $apimService = new Google\Service\APIManagement(...);
* $apiOperations = $apimService->projects_locations_observationJobs_apiObservations_apiOperations;
* </code>
*/
class ProjectsLocationsObservationJobsApiObservationsApiOperations extends \Google\Service\Resource
{
/**
* GetApiOperation retrieves a single ApiOperation by name. (apiOperations.get)
*
* @param string $name Required. The name of the ApiOperation to retrieve.
* Format: projects/{project}/locations/{location}/observationJobs/{observation_
* job}/apiObservations/{api_observation}/apiOperation/{api_operation}
* @param array $optParams Optional parameters.
* @return ApiOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ApiOperation::class);
}
/**
* ListApiOperations gets all ApiOperations for a given project and location and
* ObservationJob and ApiObservation. (apiOperations.listProjectsLocationsObserv
* ationJobsApiObservationsApiOperations)
*
* @param string $parent Required. The parent, which owns this collection of
* ApiOperations. Format: projects/{project}/locations/{location}/observationJob
* s/{observation_job}/apiObservations/{api_observation}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of ApiOperations to
* return. The service may return fewer than this value. If unspecified, at most
* 10 ApiOperations will be returned. The maximum value is 1000; values above
* 1000 will be coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListApiApiOperations` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListApiApiOperations` must
* match the call that provided the page token.
* @return ListApiOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsObservationJobsApiObservationsApiOperations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListApiOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsObservationJobsApiObservationsApiOperations::class, 'Google_Service_APIManagement_Resource_ProjectsLocationsObservationJobsApiObservationsApiOperations');
@@ -0,0 +1,128 @@
<?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\APIManagement\Resource;
use Google\Service\APIManagement\ListObservationSourcesResponse;
use Google\Service\APIManagement\ObservationSource;
use Google\Service\APIManagement\Operation;
/**
* The "observationSources" collection of methods.
* Typical usage is:
* <code>
* $apimService = new Google\Service\APIManagement(...);
* $observationSources = $apimService->projects_locations_observationSources;
* </code>
*/
class ProjectsLocationsObservationSources extends \Google\Service\Resource
{
/**
* CreateObservationSource creates a new ObservationSource but does not affect
* any deployed infrastructure. It is a configuration that can be used in an
* Observation Job to collect data about APIs running in user's dataplane.
* (observationSources.create)
*
* @param string $parent Required. Value for parent.
* @param ObservationSource $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string observationSourceId Required. The ID to use for the
* Observation Source. This value should be 4-63 characters, and valid
* characters are /a-z-/.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, ObservationSource $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* DeleteObservationSource deletes an observation source. This method will fail
* if the observation source is currently being used by any ObservationJob, even
* if not enabled. (observationSources.delete)
*
* @param string $name Required. Name of the resource Format:
* projects/{project}/locations/{location}/observationSources/{source}
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* GetObservationSource retrieves a single ObservationSource by name.
* (observationSources.get)
*
* @param string $name Required. The name of the ObservationSource to retrieve.
* Format: projects/{project}/locations/{location}/observationSources/{source}
* @param array $optParams Optional parameters.
* @return ObservationSource
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ObservationSource::class);
}
/**
* ListObservationSources gets all ObservationSources for a given project and
* location. (observationSources.listProjectsLocationsObservationSources)
*
* @param string $parent Required. The parent, which owns this collection of
* ObservationSources. Format: projects/{project}/locations/{location}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of ObservationSources to
* return. The service may return fewer than this value. If unspecified, at most
* 10 ObservationSources will be returned. The maximum value is 1000; values
* above 1000 will be coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListObservationSources` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListObservationSources`
* must match the call that provided the page token.
* @return ListObservationSourcesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsObservationSources($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListObservationSourcesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsObservationSources::class, 'Google_Service_APIManagement_Resource_ProjectsLocationsObservationSources');
@@ -0,0 +1,121 @@
<?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\APIManagement\Resource;
use Google\Service\APIManagement\ApimEmpty;
use Google\Service\APIManagement\CancelOperationRequest;
use Google\Service\APIManagement\ListOperationsResponse;
use Google\Service\APIManagement\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $apimService = new Google\Service\APIManagement(...);
* $operations = $apimService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return ApimEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], ApimEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return ApimEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ApimEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_APIManagement_Resource_ProjectsLocationsOperations');
@@ -0,0 +1,99 @@
<?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\APIManagement;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_APIManagement_Status');
@@ -0,0 +1,84 @@
<?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\APIManagement;
class TagAction extends \Google\Model
{
/**
* Unspecified.
*/
public const ACTION_ACTION_UNSPECIFIED = 'ACTION_UNSPECIFIED';
/**
* Addition of a Tag.
*/
public const ACTION_ADD = 'ADD';
/**
* Removal of a Tag.
*/
public const ACTION_REMOVE = 'REMOVE';
/**
* Required. Action to be applied
*
* @var string
*/
public $action;
/**
* Required. Tag to be added or removed
*
* @var string
*/
public $tag;
/**
* Required. Action to be applied
*
* Accepted values: ACTION_UNSPECIFIED, ADD, REMOVE
*
* @param self::ACTION_* $action
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return self::ACTION_*
*/
public function getAction()
{
return $this->action;
}
/**
* Required. Tag to be added or removed
*
* @param string $tag
*/
public function setTag($tag)
{
$this->tag = $tag;
}
/**
* @return string
*/
public function getTag()
{
return $this->tag;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TagAction::class, 'Google_Service_APIManagement_TagAction');