# Class DatabaseResource (0.9.0)

0.9.0 (latest) 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    DatabaseResource(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `child_resources` | `MutableSequence[google.cloud.databasecenter_v1beta.types.DatabaseResource]` List of children associated with a database group. |
| `full_resource_name` | `str` 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` |
| `container` | `str` Specifies where the resource is created. For Google Cloud resources, it is the full name of the project. |
| `product` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-databasecenter/latest/google.cloud.databasecenter_v1beta.types.Product` The product this resource represents. |
| `location` | `str` 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. |
| `labels` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-databasecenter/latest/google.cloud.databasecenter_v1beta.types.Label]` 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 |
| `tags` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-databasecenter/latest/google.cloud.databasecenter_v1beta.types.Tag]` 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 |
| `resource_type` | `str` 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 |
| `sub_resource_type` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-databasecenter/latest/google.cloud.databasecenter_v1beta.types.SubResourceType` Subtype of the resource specified at creation time. |
| `machine_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-databasecenter/latest/google.cloud.databasecenter_v1beta.types.MachineConfig` Machine configuration like CPU, memory, etc for the resource. |
| `signal_groups` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-databasecenter/latest/google.cloud.databasecenter_v1beta.types.SignalGroup]` The list of signal groups and count of issues related to the resource. Only those signals which have been requested would be included. |
| `metrics` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-databasecenter/latest/google.cloud.databasecenter_v1beta.types.Metrics` Observable metrics for the resource e.g. CPU utilization, memory utilization, etc. |
| `resource_category` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-databasecenter/latest/google.cloud.databasecenter_v1beta.types.ResourceCategory` The category of the resource. |
| `resource_name` | `str` 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. |
| `backupdr_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-databasecenter/latest/google.cloud.databasecenter_v1beta.types.BackupDRConfig` Optional. Backup and disaster recovery details for the resource. |
| `edition` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-databasecenter/latest/google.cloud.databasecenter_v1beta.types.Edition` The edition of the resource. |
| `maintenance_info` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-databasecenter/latest/google.cloud.databasecenter_v1beta.types.MaintenanceInfo` Optional. The maintenance information of the resource. |
| `affiliations` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-databasecenter/latest/google.cloud.databasecenter_v1beta.types.Affiliation]` Optional. Affiliation details of the resource. |