Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -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\CloudAlloyDBAdmin\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $projects = $alloydbService->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_CloudAlloyDBAdmin_Resource_Projects');

View File

@@ -0,0 +1,77 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\GoogleCloudLocationListLocationsResponse;
use Google\Service\CloudAlloyDBAdmin\GoogleCloudLocationLocation;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $locations = $alloydbService->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 GoogleCloudLocationLocation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudLocationLocation::class);
}
/**
* Lists information about the supported locations for this service.
* (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. It is
* unsupported and is ignored 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 GoogleCloudLocationListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudLocationListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocations');

View File

@@ -0,0 +1,182 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\Backup;
use Google\Service\CloudAlloyDBAdmin\ListBackupsResponse;
use Google\Service\CloudAlloyDBAdmin\Operation;
/**
* The "backups" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $backups = $alloydbService->projects_locations_backups;
* </code>
*/
class ProjectsLocationsBackups extends \Google\Service\Resource
{
/**
* Creates a new Backup in a given project and location. (backups.create)
*
* @param string $parent Required. Value for parent.
* @param Backup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string backupId Required. ID of the requesting object.
* @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 ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Backup $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Backup. (backups.delete)
*
* @param string $name Required. Name of the resource. For the required format,
* see the comment on the Backup.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the Backup. If an etag
* is provided and does not match the current etag of the Backup, deletion will
* be blocked and an ABORTED error will be returned.
* @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 ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @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 details of a single Backup. (backups.get)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
*
* @opt_param string view Optional. The view of the backup to return.
* @return Backup
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Backup::class);
}
/**
* Lists Backups in a given project and location.
* (backups.listProjectsLocationsBackups)
*
* @param string $parent Required. Parent value for ListBackupsRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filtering results
* @opt_param string orderBy Hint for how to order the results
* @opt_param int pageSize Requested page size. Server may return fewer items
* than requested. If unspecified, server will pick an appropriate default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @opt_param string view Optional. The view of the backup to return.
* @return ListBackupsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBackups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBackupsResponse::class);
}
/**
* Updates the parameters of a single Backup. (backups.patch)
*
* @param string $name Output only. The name of the backup resource with the
* format: * projects/{project}/locations/{region}/backups/{backup_id} where the
* cluster and backup ID segments should satisfy the regex expression
* `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters,
* numbers, and dashes, starting with a letter, and ending with a letter or
* number. For more details see https://google.aip.dev/122. The prefix of the
* backup resource name is the name of the parent resource: *
* projects/{project}/locations/{region}
* @param Backup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, update succeeds even
* if instance is not found. In that case, a new backup is created and
* `update_mask` is ignored.
* @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 ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Backup resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Backup $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(ProjectsLocationsBackups::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsBackups');

View File

@@ -0,0 +1,349 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\Cluster;
use Google\Service\CloudAlloyDBAdmin\ExportClusterRequest;
use Google\Service\CloudAlloyDBAdmin\ImportClusterRequest;
use Google\Service\CloudAlloyDBAdmin\ListClustersResponse;
use Google\Service\CloudAlloyDBAdmin\Operation;
use Google\Service\CloudAlloyDBAdmin\PromoteClusterRequest;
use Google\Service\CloudAlloyDBAdmin\RestoreClusterRequest;
use Google\Service\CloudAlloyDBAdmin\RestoreFromCloudSQLRequest;
use Google\Service\CloudAlloyDBAdmin\SwitchoverClusterRequest;
use Google\Service\CloudAlloyDBAdmin\UpgradeClusterRequest;
/**
* The "clusters" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $clusters = $alloydbService->projects_locations_clusters;
* </code>
*/
class ProjectsLocationsClusters extends \Google\Service\Resource
{
/**
* Creates a new Cluster in a given project and location. (clusters.create)
*
* @param string $parent Required. The location of the new cluster. For the
* required format, see the comment on the Cluster.name field.
* @param Cluster $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clusterId Required. ID of the requesting object.
* @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 ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Cluster $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Creates a cluster of type SECONDARY in the given location using the primary
* cluster as the source. (clusters.createsecondary)
*
* @param string $parent Required. The location of the new cluster. For the
* required format, see the comment on the Cluster.name field.
* @param Cluster $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clusterId Required. ID of the requesting object (the
* secondary cluster).
* @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 ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function createsecondary($parent, Cluster $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('createsecondary', [$params], Operation::class);
}
/**
* Deletes a single Cluster. (clusters.delete)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Cluster.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the Cluster. If an etag
* is provided and does not match the current etag of the Cluster, deletion will
* be blocked and an ABORTED error will be returned.
* @opt_param bool force Optional. Whether to cascade delete child instances for
* given cluster.
* @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 ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @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);
}
/**
* Exports data from the cluster. Imperative only. (clusters.export)
*
* @param string $name Required. The resource name of the cluster.
* @param ExportClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function export($name, ExportClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('export', [$params], Operation::class);
}
/**
* Gets details of a single Cluster. (clusters.get)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Cluster.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string view Optional. The view of the cluster to return. Returns
* all default fields if not set.
* @return Cluster
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Cluster::class);
}
/**
* Imports data to the cluster. Imperative only. (clusters.import)
*
* @param string $name Required. The resource name of the cluster.
* @param ImportClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function import($name, ImportClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('import', [$params], Operation::class);
}
/**
* Lists Clusters in a given project and location.
* (clusters.listProjectsLocationsClusters)
*
* @param string $parent Required. The name of the parent resource. For the
* required format, see the comment on the Cluster.name field. Additionally, you
* can perform an aggregated list operation by specifying a value with the
* following format: * projects/{project}/locations/-
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @return ListClustersResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsClusters($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListClustersResponse::class);
}
/**
* Updates the parameters of a single Cluster. (clusters.patch)
*
* @param string $name Output only. The name of the cluster resource with the
* format: * projects/{project}/locations/{region}/clusters/{cluster_id} where
* the cluster ID segment should satisfy the regex expression `[a-z0-9-]+`. For
* more details see https://google.aip.dev/122. The prefix of the cluster
* resource name is the name of the parent resource: *
* projects/{project}/locations/{region}
* @param Cluster $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, update succeeds even
* if cluster is not found. In that case, a new cluster is created and
* `update_mask` is ignored.
* @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 ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Cluster resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Cluster $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Promotes a SECONDARY cluster. This turns down replication from the PRIMARY
* cluster and promotes a secondary cluster into its own standalone cluster.
* Imperative only. (clusters.promote)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Cluster.name field
* @param PromoteClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function promote($name, PromoteClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('promote', [$params], Operation::class);
}
/**
* Creates a new Cluster in a given project and location, with a volume restored
* from the provided source, either a backup ID or a point-in-time and a source
* cluster. (clusters.restore)
*
* @param string $parent Required. The name of the parent resource. For the
* required format, see the comment on the Cluster.name field.
* @param RestoreClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function restore($parent, RestoreClusterRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('restore', [$params], Operation::class);
}
/**
* Restores an AlloyDB cluster from a CloudSQL resource.
* (clusters.restoreFromCloudSQL)
*
* @param string $parent Required. The location of the new cluster. For the
* required format, see the comment on Cluster.name field.
* @param RestoreFromCloudSQLRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function restoreFromCloudSQL($parent, RestoreFromCloudSQLRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('restoreFromCloudSQL', [$params], Operation::class);
}
/**
* Switches the roles of PRIMARY and SECONDARY clusters without any data loss.
* This promotes the SECONDARY cluster to PRIMARY and sets up the original
* PRIMARY cluster to replicate from this newly promoted cluster.
* (clusters.switchover)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Cluster.name field
* @param SwitchoverClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function switchover($name, SwitchoverClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('switchover', [$params], Operation::class);
}
/**
* Upgrades a single Cluster. Imperative only. (clusters.upgrade)
*
* @param string $name Required. The resource name of the cluster.
* @param UpgradeClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function upgrade($name, UpgradeClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upgrade', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsClusters::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsClusters');

View File

@@ -0,0 +1,305 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\ConnectionInfo;
use Google\Service\CloudAlloyDBAdmin\FailoverInstanceRequest;
use Google\Service\CloudAlloyDBAdmin\InjectFaultRequest;
use Google\Service\CloudAlloyDBAdmin\Instance;
use Google\Service\CloudAlloyDBAdmin\ListInstancesResponse;
use Google\Service\CloudAlloyDBAdmin\Operation;
use Google\Service\CloudAlloyDBAdmin\RestartInstanceRequest;
/**
* The "instances" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $instances = $alloydbService->projects_locations_clusters_instances;
* </code>
*/
class ProjectsLocationsClustersInstances extends \Google\Service\Resource
{
/**
* Creates a new Instance in a given project and location. (instances.create)
*
* @param string $parent Required. The name of the parent resource. For the
* required format, see the comment on the Instance.name field.
* @param Instance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string instanceId Required. ID of the requesting object.
* @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 ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Instance $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Creates a new SECONDARY Instance in a given project and location.
* (instances.createsecondary)
*
* @param string $parent Required. The name of the parent resource. For the
* required format, see the comment on the Instance.name field.
* @param Instance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string instanceId Required. ID of the requesting object.
* @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 ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function createsecondary($parent, Instance $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('createsecondary', [$params], Operation::class);
}
/**
* Deletes a single Instance. (instances.delete)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Instance.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the Instance. If an etag
* is provided and does not match the current etag of the Instance, deletion
* will be blocked and an ABORTED error will be returned.
* @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 ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @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);
}
/**
* Forces a Failover for a highly available instance. Failover promotes the HA
* standby instance as the new primary. Imperative only. (instances.failover)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Instance.name field.
* @param FailoverInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function failover($name, FailoverInstanceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('failover', [$params], Operation::class);
}
/**
* Gets details of a single Instance. (instances.get)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Instance.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string view The view of the instance to return.
* @return Instance
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Instance::class);
}
/**
* Get instance metadata used for a connection. (instances.getConnectionInfo)
*
* @param string $parent Required. The name of the parent resource. The required
* format is: projects/{project}/locations/{location}/clusters/{cluster}/instanc
* es/{instance}
* @param array $optParams Optional parameters.
*
* @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 ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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 ConnectionInfo
* @throws \Google\Service\Exception
*/
public function getConnectionInfo($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('getConnectionInfo', [$params], ConnectionInfo::class);
}
/**
* Injects fault in an instance. Imperative only. (instances.injectFault)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Instance.name field.
* @param InjectFaultRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function injectFault($name, InjectFaultRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('injectFault', [$params], Operation::class);
}
/**
* Lists Instances in a given project and location.
* (instances.listProjectsLocationsClustersInstances)
*
* @param string $parent Required. The name of the parent resource. For the
* required format, see the comment on the Instance.name field. Additionally,
* you can perform an aggregated list operation by specifying a value with one
* of the following formats: * projects/{project}/locations/-/clusters/- *
* projects/{project}/locations/{region}/clusters/-
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @return ListInstancesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsClustersInstances($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListInstancesResponse::class);
}
/**
* Updates the parameters of a single Instance. (instances.patch)
*
* @param string $name Output only. The name of the instance resource with the
* format: * projects/{project}/locations/{region}/clusters/{cluster_id}/instanc
* es/{instance_id} where the cluster and instance ID segments should satisfy
* the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters
* of lowercase letters, numbers, and dashes, starting with a letter, and ending
* with a letter or number. For more details see https://google.aip.dev/122. The
* prefix of the instance resource name is the name of the parent resource: *
* projects/{project}/locations/{region}/clusters/{cluster_id}
* @param Instance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, update succeeds even
* if instance is not found. In that case, a new instance is created and
* `update_mask` is ignored.
* @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 ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Instance resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Instance $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Restart an Instance in a cluster. Imperative only. (instances.restart)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Instance.name field.
* @param RestartInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function restart($name, RestartInstanceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('restart', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsClustersInstances::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsClustersInstances');

View File

@@ -0,0 +1,171 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\AlloydbEmpty;
use Google\Service\CloudAlloyDBAdmin\ListUsersResponse;
use Google\Service\CloudAlloyDBAdmin\User;
/**
* The "users" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $users = $alloydbService->projects_locations_clusters_users;
* </code>
*/
class ProjectsLocationsClustersUsers extends \Google\Service\Resource
{
/**
* Creates a new User in a given project, location, and cluster. (users.create)
*
* @param string $parent Required. Value for parent.
* @param User $postBody
* @param array $optParams Optional parameters.
*
* @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 ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param string userId Required. ID of the requesting object.
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return User
* @throws \Google\Service\Exception
*/
public function create($parent, User $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], User::class);
}
/**
* Deletes a single User. (users.delete)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the User.name field.
* @param array $optParams Optional parameters.
*
* @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 ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return AlloydbEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], AlloydbEmpty::class);
}
/**
* Gets details of a single User. (users.get)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the User.name field.
* @param array $optParams Optional parameters.
* @return User
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], User::class);
}
/**
* Lists Users in a given project and location.
* (users.listProjectsLocationsClustersUsers)
*
* @param string $parent Required. Parent value for ListUsersRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListUsersResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsClustersUsers($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUsersResponse::class);
}
/**
* Updates the parameters of a single User. (users.patch)
*
* @param string $name Output only. Name of the resource in the form of
* projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
* @param User $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. Allow missing fields in the update
* mask.
* @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 ignores the request if it has already been completed. The server
* guarantees 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 the original operation with the same request ID was received, and if
* so, ignores 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).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the User resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return User
* @throws \Google\Service\Exception
*/
public function patch($name, User $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], User::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsClustersUsers::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsClustersUsers');

View File

@@ -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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\AlloydbEmpty;
use Google\Service\CloudAlloyDBAdmin\CancelOperationRequest;
use Google\Service\CloudAlloyDBAdmin\ListOperationsResponse;
use Google\Service\CloudAlloyDBAdmin\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $operations = $alloydbService->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 AlloydbEmpty
* @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], AlloydbEmpty::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 AlloydbEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], AlloydbEmpty::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_CloudAlloyDBAdmin_Resource_ProjectsLocationsOperations');

View File

@@ -0,0 +1,61 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\ListSupportedDatabaseFlagsResponse;
/**
* The "supportedDatabaseFlags" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $supportedDatabaseFlags = $alloydbService->projects_locations_supportedDatabaseFlags;
* </code>
*/
class ProjectsLocationsSupportedDatabaseFlags extends \Google\Service\Resource
{
/**
* Lists SupportedDatabaseFlags for a given project and location.
* (supportedDatabaseFlags.listProjectsLocationsSupportedDatabaseFlags)
*
* @param string $parent Required. The name of the parent resource. The required
* format is: * projects/{project}/locations/{location} Regardless of the parent
* specified here, as long it is contains a valid project and location, the
* service will return a static list of supported flags resources. Note that we
* do not yet support region-specific flags.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. Server may return fewer items
* than requested. If unspecified, server will pick an appropriate default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @opt_param string scope Optional. The scope for which supported flags are
* requested. If not specified, default is DATABASE.
* @return ListSupportedDatabaseFlagsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsSupportedDatabaseFlags($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSupportedDatabaseFlagsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsSupportedDatabaseFlags::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsSupportedDatabaseFlags');