Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DatabaseResource

import type { DatabaseResource } from "https://googleapis.deno.dev/v1/databasecenter:v1beta.ts";

DatabaseResource represents every individually configured database unit representing compute and/or storage.

interface DatabaseResource {
affiliations?: Affiliation[];
backupdrConfig?: BackupDRConfig;
childResources?: DatabaseResource[];
container?: string;
edition?:
| "EDITION_UNSPECIFIED"
| "EDITION_ENTERPRISE"
| "EDITION_ENTERPRISE_PLUS"
| "EDITION_STANDARD";
fullResourceName?: string;
labels?: Label[];
location?: string;
machineConfig?: MachineConfig;
maintenanceInfo?: MaintenanceInfo;
metrics?: Metrics;
product?: Product;
resourceCategory?:
| "RESOURCE_CATEGORY_UNSPECIFIED"
| "INSTANCE"
| "CLUSTER"
| "DATABASE"
| "DATASET"
| "RESERVATION";
resourceName?: string;
resourceType?: string;
signalGroups?: SignalGroup[];
subResourceType?:
| "SUB_RESOURCE_TYPE_UNSPECIFIED"
| "SUB_RESOURCE_TYPE_PRIMARY"
| "SUB_RESOURCE_TYPE_SECONDARY"
| "SUB_RESOURCE_TYPE_READ_REPLICA"
| "SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY"
| "SUB_RESOURCE_TYPE_READ_POOL"
| "SUB_RESOURCE_TYPE_RESERVATION"
| "SUB_RESOURCE_TYPE_DATASET"
| "SUB_RESOURCE_TYPE_OTHER";
tags?: Tag[];
}

§Properties

§
affiliations?: Affiliation[]
[src]

Optional. Affiliation details of the resource.

§
backupdrConfig?: BackupDRConfig
[src]

Optional. Backup and disaster recovery details for the resource.

§
childResources?: DatabaseResource[]
[src]

List of children associated with a database group.

§
container?: string
[src]

Specifies where the resource is created. For Google Cloud resources, it is the full name of the project.

§
edition?: "EDITION_UNSPECIFIED" | "EDITION_ENTERPRISE" | "EDITION_ENTERPRISE_PLUS" | "EDITION_STANDARD"
[src]

The edition of the resource.

§
fullResourceName?: string
[src]

The full resource name, based on CAIS resource name format https://cloud.google.com/asset-inventory/docs/resource-name-format Example: //cloudsql.googleapis.com/projects/project-number/instances/mysql-1 //cloudsql.googleapis.com/projects/project-number/instances/postgres-1 //spanner.googleapis.com/projects/project-number/instances/spanner-instance-1 //alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1 //alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1

§
labels?: Label[]
[src]

Labels applied on the resource. The requirements for labels assigned to Google Cloud resources may be found at https://cloud.google.com/resource-manager/docs/labels-overview#requirements

§
location?: string
[src]

The location of the resources. It supports returning only regional locations in Google Cloud. These are of the form: "us-central1", "us-east1", etc. See https://cloud.google.com/about/locations for a list of such regions.

§
machineConfig?: MachineConfig
[src]

Machine configuration like CPU, memory, etc for the resource.

§
maintenanceInfo?: MaintenanceInfo
[src]

Optional. The maintenance information of the resource.

§
metrics?: Metrics
[src]

Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.

§
product?: Product
[src]

The product this resource represents.

§
resourceCategory?: "RESOURCE_CATEGORY_UNSPECIFIED" | "INSTANCE" | "CLUSTER" | "DATABASE" | "DATASET" | "RESERVATION"
[src]

The category of the resource.

§
resourceName?: string
[src]

The name of the resource(The last part of the full resource name). Example: For full resource name - //cloudsql.googleapis.com/projects/project-number/instances/mysql-1, resource name - mysql-1 For full resource name - //cloudsql.googleapis.com/projects/project-number/instances/postgres-1 , resource name - postgres-1 Note: In some cases, there might be more than one resource with the same resource name.

§
resourceType?: string
[src]

The type of resource defined according to the pattern: {Service Name}/{Type}. Ex: sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance spanner.googleapis.com/Instance

§
signalGroups?: SignalGroup[]
[src]

The list of signal groups and count of issues related to the resource. Only those signals which have been requested would be included.

§
subResourceType?: "SUB_RESOURCE_TYPE_UNSPECIFIED" | "SUB_RESOURCE_TYPE_PRIMARY" | "SUB_RESOURCE_TYPE_SECONDARY" | "SUB_RESOURCE_TYPE_READ_REPLICA" | "SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY" | "SUB_RESOURCE_TYPE_READ_POOL" | "SUB_RESOURCE_TYPE_RESERVATION" | "SUB_RESOURCE_TYPE_DATASET" | "SUB_RESOURCE_TYPE_OTHER"
[src]

Subtype of the resource specified at creation time.

§
tags?: Tag[]
[src]

Tags applied on the resource. The requirements for tags assigned to Google Cloud resources may be found at https://cloud.google.com/resource-manager/docs/tags/tags-overview