AlloyDB
import { AlloyDB } from "https://googleapis.deno.dev/v1/alloydb:v1.ts";
AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases.
§Methods
Creates a new Backup in a given project and location.
Required. Value for parent.
Deletes a single Backup.
Required. Name of the resource. For the required format, see the comment on the Backup.name field.
Lists Backups in a given project and location.
Required. Parent value for ListBackupsRequest
Updates the parameters of a single Backup.
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}
Creates a new Cluster in a given project and location.
Required. The location of the new cluster. For the required format, see the comment on the Cluster.name field.
Creates a cluster of type SECONDARY in the given location using the primary cluster as the source.
Required. The location of the new cluster. For the required format, see the comment on the Cluster.name field.
Deletes a single Cluster.
Required. The name of the resource. For the required format, see the comment on the Cluster.name field.
Gets details of a single Cluster.
Required. The name of the resource. For the required format, see the comment on the Cluster.name field.
Creates a new Instance in a given project and location.
Required. The name of the parent resource. For the required format, see the comment on the Instance.name field.
Creates a new SECONDARY Instance in a given project and location.
Required. The name of the parent resource. For the required format, see the comment on the Instance.name field.
Deletes a single Instance.
Required. The name of the resource. For the required format, see the comment on the Instance.name field.
Forces a Failover for a highly available instance. Failover promotes the HA standby instance as the new primary. Imperative only.
Required. The name of the resource. For the required format, see the comment on the Instance.name field.
Gets details of a single Instance.
Required. The name of the resource. For the required format, see the comment on the Instance.name field.
Get instance metadata used for a connection.
Required. The name of the parent resource. The required format is: projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance}
Injects fault in an instance. Imperative only.
Required. The name of the resource. For the required format, see the comment on the Instance.name field.
Lists Instances in a given project and location.
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/-
Updates the parameters of a single Instance.
Output only. The name of the instance resource with the format: * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{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}
Restart an Instance in a cluster. Imperative only.
Required. The name of the resource. For the required format, see the comment on the Instance.name field.
Lists Clusters in a given project and location.
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/-
Updates the parameters of a single Cluster.
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}
Promotes a SECONDARY cluster. This turns down replication from the PRIMARY cluster and promotes a secondary cluster into its own standalone cluster. Imperative only.
Required. The name of the resource. For the required format, see the comment on the Cluster.name field
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.
Required. The name of the parent resource. For the required format, see the comment on the Cluster.name field.
Creates a new User in a given project, location, and cluster.
Required. Value for parent.
Deletes a single User.
Required. The name of the resource. For the required format, see the comment on the User.name field.
Lists Users in a given project and location.
Required. Parent value for ListUsersRequest
Updates the parameters of a single User.
Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
Gets information about a location.
Resource name for the location.
Lists information about the supported locations for this service.
The resource that owns the locations collection, if applicable.
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
.
The name of the operation resource to be cancelled.
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
.
The name of the operation resource to be deleted.
Lists operations that match the specified filter in the request. If the
server doesn't support this method, it returns UNIMPLEMENTED
.
The name of the operation's parent resource.
Lists SupportedDatabaseFlags for a given project and location.
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.