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,320 @@
<?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\ServerlessVPCAccess;
class Connector extends \Google\Collection
{
/**
* Invalid state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Connector is deployed and ready to receive traffic.
*/
public const STATE_READY = 'READY';
/**
* An Insert operation is in progress. Transient condition.
*/
public const STATE_CREATING = 'CREATING';
/**
* A Delete operation is in progress. Transient condition.
*/
public const STATE_DELETING = 'DELETING';
/**
* Connector is in a bad state, manual deletion recommended.
*/
public const STATE_ERROR = 'ERROR';
/**
* The connector is being updated.
*/
public const STATE_UPDATING = 'UPDATING';
protected $collection_key = 'connectedProjects';
/**
* Output only. List of projects using the connector.
*
* @var string[]
*/
public $connectedProjects;
/**
* Optional. The range of internal addresses that follows RFC 4632 notation.
* Example: `10.132.0.0/28`.
*
* @var string
*/
public $ipCidrRange;
/**
* Machine type of VM Instance underlying connector. Default is e2-micro
*
* @var string
*/
public $machineType;
/**
* Maximum value of instances in autoscaling group underlying the connector.
*
* @var int
*/
public $maxInstances;
/**
* Maximum throughput of the connector in Mbps. Refers to the expected
* throughput when using an `e2-micro` machine type. Value must be a multiple
* of 100 from 300 through 1000. Must be higher than the value specified by
* --min-throughput. If both max-throughput and max-instances are provided,
* max-instances takes precedence over max-throughput. The use of `max-
* throughput` is discouraged in favor of `max-instances`.
*
* @deprecated
* @var int
*/
public $maxThroughput;
/**
* Minimum value of instances in autoscaling group underlying the connector.
*
* @var int
*/
public $minInstances;
/**
* Minimum throughput of the connector in Mbps. Refers to the expected
* throughput when using an `e2-micro` machine type. Value must be a multiple
* of 100 from 200 through 900. Must be lower than the value specified by
* --max-throughput. If both min-throughput and min-instances are provided,
* min-instances takes precedence over min-throughput. The use of `min-
* throughput` is discouraged in favor of `min-instances`.
*
* @deprecated
* @var int
*/
public $minThroughput;
/**
* The resource name in the format `projects/locations/connectors`.
*
* @var string
*/
public $name;
/**
* Optional. Name of a VPC network.
*
* @var string
*/
public $network;
/**
* Output only. State of the VPC access connector.
*
* @var string
*/
public $state;
protected $subnetType = Subnet::class;
protected $subnetDataType = '';
/**
* Output only. List of projects using the connector.
*
* @param string[] $connectedProjects
*/
public function setConnectedProjects($connectedProjects)
{
$this->connectedProjects = $connectedProjects;
}
/**
* @return string[]
*/
public function getConnectedProjects()
{
return $this->connectedProjects;
}
/**
* Optional. The range of internal addresses that follows RFC 4632 notation.
* Example: `10.132.0.0/28`.
*
* @param string $ipCidrRange
*/
public function setIpCidrRange($ipCidrRange)
{
$this->ipCidrRange = $ipCidrRange;
}
/**
* @return string
*/
public function getIpCidrRange()
{
return $this->ipCidrRange;
}
/**
* Machine type of VM Instance underlying connector. Default is e2-micro
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* Maximum value of instances in autoscaling group underlying the connector.
*
* @param int $maxInstances
*/
public function setMaxInstances($maxInstances)
{
$this->maxInstances = $maxInstances;
}
/**
* @return int
*/
public function getMaxInstances()
{
return $this->maxInstances;
}
/**
* Maximum throughput of the connector in Mbps. Refers to the expected
* throughput when using an `e2-micro` machine type. Value must be a multiple
* of 100 from 300 through 1000. Must be higher than the value specified by
* --min-throughput. If both max-throughput and max-instances are provided,
* max-instances takes precedence over max-throughput. The use of `max-
* throughput` is discouraged in favor of `max-instances`.
*
* @deprecated
* @param int $maxThroughput
*/
public function setMaxThroughput($maxThroughput)
{
$this->maxThroughput = $maxThroughput;
}
/**
* @deprecated
* @return int
*/
public function getMaxThroughput()
{
return $this->maxThroughput;
}
/**
* Minimum value of instances in autoscaling group underlying the connector.
*
* @param int $minInstances
*/
public function setMinInstances($minInstances)
{
$this->minInstances = $minInstances;
}
/**
* @return int
*/
public function getMinInstances()
{
return $this->minInstances;
}
/**
* Minimum throughput of the connector in Mbps. Refers to the expected
* throughput when using an `e2-micro` machine type. Value must be a multiple
* of 100 from 200 through 900. Must be lower than the value specified by
* --max-throughput. If both min-throughput and min-instances are provided,
* min-instances takes precedence over min-throughput. The use of `min-
* throughput` is discouraged in favor of `min-instances`.
*
* @deprecated
* @param int $minThroughput
*/
public function setMinThroughput($minThroughput)
{
$this->minThroughput = $minThroughput;
}
/**
* @deprecated
* @return int
*/
public function getMinThroughput()
{
return $this->minThroughput;
}
/**
* The resource name in the format `projects/locations/connectors`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Name of a VPC network.
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Output only. State of the VPC access connector.
*
* Accepted values: STATE_UNSPECIFIED, READY, CREATING, DELETING, ERROR,
* UPDATING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Optional. The subnet in which to house the VPC Access Connector.
*
* @param Subnet $subnet
*/
public function setSubnet(Subnet $subnet)
{
$this->subnet = $subnet;
}
/**
* @return Subnet
*/
public function getSubnet()
{
return $this->subnet;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Connector::class, 'Google_Service_ServerlessVPCAccess_Connector');
@@ -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\ServerlessVPCAccess;
class ListConnectorsResponse extends \Google\Collection
{
protected $collection_key = 'connectors';
protected $connectorsType = Connector::class;
protected $connectorsDataType = 'array';
/**
* Continuation token.
*
* @var string
*/
public $nextPageToken;
/**
* List of Serverless VPC Access connectors.
*
* @param Connector[] $connectors
*/
public function setConnectors($connectors)
{
$this->connectors = $connectors;
}
/**
* @return Connector[]
*/
public function getConnectors()
{
return $this->connectors;
}
/**
* Continuation 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(ListConnectorsResponse::class, 'Google_Service_ServerlessVPCAccess_ListConnectorsResponse');
@@ -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\ServerlessVPCAccess;
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_ServerlessVPCAccess_ListLocationsResponse');
@@ -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\ServerlessVPCAccess;
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_ServerlessVPCAccess_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\ServerlessVPCAccess;
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_ServerlessVPCAccess_Location');
@@ -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\ServerlessVPCAccess;
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_ServerlessVPCAccess_Operation');
@@ -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\ServerlessVPCAccess;
class OperationMetadata extends \Google\Model
{
/**
* Output only. Time when the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. Time when the operation completed.
*
* @var string
*/
public $endTime;
/**
* Output only. Method that initiated the operation e.g.
* google.cloud.vpcaccess.v1.Connectors.CreateConnector.
*
* @var string
*/
public $method;
/**
* Output only. Name of the resource that this operation is acting on e.g.
* projects/my-project/locations/us-central1/connectors/v1.
*
* @var string
*/
public $target;
/**
* Output only. Time when the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Time when the operation completed.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. Method that initiated the operation e.g.
* google.cloud.vpcaccess.v1.Connectors.CreateConnector.
*
* @param string $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* Output only. Name of the resource that this operation is acting on e.g.
* projects/my-project/locations/us-central1/connectors/v1.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_ServerlessVPCAccess_OperationMetadata');
@@ -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\ServerlessVPCAccess;
class OperationMetadataV1Alpha1 extends \Google\Model
{
/**
* Output only. Time when the operation completed.
*
* @var string
*/
public $endTime;
/**
* Output only. Time when the operation was created.
*
* @var string
*/
public $insertTime;
/**
* Output only. Method that initiated the operation e.g.
* google.cloud.vpcaccess.v1alpha1.Connectors.CreateConnector.
*
* @var string
*/
public $method;
/**
* Output only. Name of the resource that this operation is acting on e.g.
* projects/my-project/locations/us-central1/connectors/v1.
*
* @var string
*/
public $target;
/**
* Output only. Time when the operation completed.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. Time when the operation was created.
*
* @param string $insertTime
*/
public function setInsertTime($insertTime)
{
$this->insertTime = $insertTime;
}
/**
* @return string
*/
public function getInsertTime()
{
return $this->insertTime;
}
/**
* Output only. Method that initiated the operation e.g.
* google.cloud.vpcaccess.v1alpha1.Connectors.CreateConnector.
*
* @param string $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* Output only. Name of the resource that this operation is acting on e.g.
* projects/my-project/locations/us-central1/connectors/v1.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadataV1Alpha1::class, 'Google_Service_ServerlessVPCAccess_OperationMetadataV1Alpha1');
@@ -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\ServerlessVPCAccess;
class OperationMetadataV1Beta1 extends \Google\Model
{
/**
* Output only. Time when the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. Time when the operation completed.
*
* @var string
*/
public $endTime;
/**
* Output only. Method that initiated the operation e.g.
* google.cloud.vpcaccess.v1beta1.Connectors.CreateConnector.
*
* @var string
*/
public $method;
/**
* Output only. Name of the resource that this operation is acting on e.g.
* projects/my-project/locations/us-central1/connectors/v1.
*
* @var string
*/
public $target;
/**
* Output only. Time when the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Time when the operation completed.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. Method that initiated the operation e.g.
* google.cloud.vpcaccess.v1beta1.Connectors.CreateConnector.
*
* @param string $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* Output only. Name of the resource that this operation is acting on e.g.
* projects/my-project/locations/us-central1/connectors/v1.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadataV1Beta1::class, 'Google_Service_ServerlessVPCAccess_OperationMetadataV1Beta1');
@@ -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\ServerlessVPCAccess\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $vpcaccessService = new Google\Service\ServerlessVPCAccess(...);
* $projects = $vpcaccessService->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_ServerlessVPCAccess_Resource_Projects');
@@ -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\ServerlessVPCAccess\Resource;
use Google\Service\ServerlessVPCAccess\ListLocationsResponse;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $vpcaccessService = new Google\Service\ServerlessVPCAccess(...);
* $locations = $vpcaccessService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* 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);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_ServerlessVPCAccess_Resource_ProjectsLocations');
@@ -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\ServerlessVPCAccess\Resource;
use Google\Service\ServerlessVPCAccess\Connector;
use Google\Service\ServerlessVPCAccess\ListConnectorsResponse;
use Google\Service\ServerlessVPCAccess\Operation;
/**
* The "connectors" collection of methods.
* Typical usage is:
* <code>
* $vpcaccessService = new Google\Service\ServerlessVPCAccess(...);
* $connectors = $vpcaccessService->projects_locations_connectors;
* </code>
*/
class ProjectsLocationsConnectors extends \Google\Service\Resource
{
/**
* Creates a Serverless VPC Access connector, returns an operation.
* (connectors.create)
*
* @param string $parent Required. The project ID and location in which the
* configuration should be created, specified in the format
* `projects/locations`.
* @param Connector $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string connectorId Required. The ID to use for this connector.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Connector $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the resource
* does not exist. (connectors.delete)
*
* @param string $name Required. Name of a Serverless VPC Access connector to
* delete.
* @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);
}
/**
* Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
* does not exist. (connectors.get)
*
* @param string $name Required. Name of a Serverless VPC Access connector to
* get.
* @param array $optParams Optional parameters.
* @return Connector
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Connector::class);
}
/**
* Lists Serverless VPC Access connectors.
* (connectors.listProjectsLocationsConnectors)
*
* @param string $parent Required. The project and location from which the
* routes should be listed.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of functions to return per call.
* @opt_param string pageToken Continuation token.
* @return ListConnectorsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsConnectors($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListConnectorsResponse::class);
}
/**
* Updates a Serverless VPC Access connector, returns an operation.
* (connectors.patch)
*
* @param string $name The resource name in the format
* `projects/locations/connectors`.
* @param Connector $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The fields to update on the entry group. If
* absent or empty, all modifiable fields are updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Connector $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnectors::class, 'Google_Service_ServerlessVPCAccess_Resource_ProjectsLocationsConnectors');
@@ -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\ServerlessVPCAccess\Resource;
use Google\Service\ServerlessVPCAccess\ListOperationsResponse;
use Google\Service\ServerlessVPCAccess\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $vpcaccessService = new Google\Service\ServerlessVPCAccess(...);
* $operations = $vpcaccessService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* 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_ServerlessVPCAccess_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\ServerlessVPCAccess;
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_ServerlessVPCAccess_Status');
@@ -0,0 +1,80 @@
<?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\ServerlessVPCAccess;
class Subnet extends \Google\Model
{
/**
* Optional. Subnet name (relative, not fully qualified). E.g. if the full
* subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{proj
* ect}/regions/{region}/subnetworks/{subnetName} the correct input for this
* field would be {subnetName}
*
* @var string
*/
public $name;
/**
* Optional. Project in which the subnet exists. If not set, this project is
* assumed to be the project for which the connector create request was
* issued.
*
* @var string
*/
public $projectId;
/**
* Optional. Subnet name (relative, not fully qualified). E.g. if the full
* subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{proj
* ect}/regions/{region}/subnetworks/{subnetName} the correct input for this
* field would be {subnetName}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Project in which the subnet exists. If not set, this project is
* assumed to be the project for which the connector create request was
* issued.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Subnet::class, 'Google_Service_ServerlessVPCAccess_Subnet');