# Database Center V1BETA API - Class Google::Cloud::DatabaseCenter::V1beta::DatabaseResource (v0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Database Center V1BETA API class Google::Cloud::DatabaseCenter::V1beta::DatabaseResource.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #affiliations

    def affiliations() -> ::Array<::Google::Cloud::DatabaseCenter::V1beta::Affiliation>

**Returns**

- (::Array\<[::Google::Cloud::DatabaseCenter::V1beta::Affiliation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-Affiliation)\>) --- Optional. Affiliation details of the resource.

### #affiliations=

    def affiliations=(value) -> ::Array<::Google::Cloud::DatabaseCenter::V1beta::Affiliation>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DatabaseCenter::V1beta::Affiliation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-Affiliation)\>) --- Optional. Affiliation details of the resource.
**Returns**

- (::Array\<[::Google::Cloud::DatabaseCenter::V1beta::Affiliation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-Affiliation)\>) --- Optional. Affiliation details of the resource.

### #backupdr_config

    def backupdr_config() -> ::Google::Cloud::DatabaseCenter::V1beta::BackupDRConfig

**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::BackupDRConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-BackupDRConfig)) --- Optional. Backup and disaster recovery details for the resource.

### #backupdr_config=

    def backupdr_config=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::BackupDRConfig

**Parameter**

- **value** ([::Google::Cloud::DatabaseCenter::V1beta::BackupDRConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-BackupDRConfig)) --- Optional. Backup and disaster recovery details for the resource.
**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::BackupDRConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-BackupDRConfig)) --- Optional. Backup and disaster recovery details for the resource.

### #child_resources

    def child_resources() -> ::Array<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResource>

**Returns**

- (::Array\<[::Google::Cloud::DatabaseCenter::V1beta::DatabaseResource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-DatabaseResource)\>) --- List of children associated with a database group.

### #child_resources=

    def child_resources=(value) -> ::Array<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResource>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DatabaseCenter::V1beta::DatabaseResource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-DatabaseResource)\>) --- List of children associated with a database group.
**Returns**

- (::Array\<[::Google::Cloud::DatabaseCenter::V1beta::DatabaseResource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-DatabaseResource)\>) --- List of children associated with a database group.

### #container

    def container() -> ::String

**Returns**

- (::String) --- Specifies where the resource is created. For Google Cloud resources, it is the full name of the project.

### #container=

    def container=(value) -> ::String

**Parameter**

- **value** (::String) --- Specifies where the resource is created. For Google Cloud resources, it is the full name of the project.
**Returns**

- (::String) --- Specifies where the resource is created. For Google Cloud resources, it is the full name of the project.

### #edition

    def edition() -> ::Google::Cloud::DatabaseCenter::V1beta::Edition

**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::Edition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-Edition)) --- The edition of the resource.

### #edition=

    def edition=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::Edition

**Parameter**

- **value** ([::Google::Cloud::DatabaseCenter::V1beta::Edition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-Edition)) --- The edition of the resource.
**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::Edition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-Edition)) --- The edition of the resource.

### #full_resource_name

    def full_resource_name() -> ::String

**Returns**

- (::String) --- 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`

### #full_resource_name=

    def full_resource_name=(value) -> ::String

**Parameter**

- **value** (::String) --- 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`
**Returns**

- (::String) --- 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

    def labels() -> ::Array<::Google::Cloud::DatabaseCenter::V1beta::Label>

**Returns**

- (::Array\<[::Google::Cloud::DatabaseCenter::V1beta::Label](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-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

### #labels=

    def labels=(value) -> ::Array<::Google::Cloud::DatabaseCenter::V1beta::Label>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DatabaseCenter::V1beta::Label](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-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
**Returns**

- (::Array\<[::Google::Cloud::DatabaseCenter::V1beta::Label](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-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

### #location

    def location() -> ::String

**Returns**

- (::String) --- 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.

### #location=

    def location=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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.

### #machine_config

    def machine_config() -> ::Google::Cloud::DatabaseCenter::V1beta::MachineConfig

**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::MachineConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-MachineConfig)) --- Machine configuration like CPU, memory, etc for the resource.

### #machine_config=

    def machine_config=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::MachineConfig

**Parameter**

- **value** ([::Google::Cloud::DatabaseCenter::V1beta::MachineConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-MachineConfig)) --- Machine configuration like CPU, memory, etc for the resource.
**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::MachineConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-MachineConfig)) --- Machine configuration like CPU, memory, etc for the resource.

### #maintenance_info

    def maintenance_info() -> ::Google::Cloud::DatabaseCenter::V1beta::MaintenanceInfo

**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::MaintenanceInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-MaintenanceInfo)) --- Optional. The maintenance information of the resource.

### #maintenance_info=

    def maintenance_info=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::MaintenanceInfo

**Parameter**

- **value** ([::Google::Cloud::DatabaseCenter::V1beta::MaintenanceInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-MaintenanceInfo)) --- Optional. The maintenance information of the resource.
**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::MaintenanceInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-MaintenanceInfo)) --- Optional. The maintenance information of the resource.

### #metrics

    def metrics() -> ::Google::Cloud::DatabaseCenter::V1beta::Metrics

**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::Metrics](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-Metrics)) --- Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.

### #metrics=

    def metrics=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::Metrics

**Parameter**

- **value** ([::Google::Cloud::DatabaseCenter::V1beta::Metrics](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-Metrics)) --- Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.
**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::Metrics](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-Metrics)) --- Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.

### #product

    def product() -> ::Google::Cloud::DatabaseCenter::V1beta::Product

**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::Product](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-Product)) --- The product this resource represents.

### #product=

    def product=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::Product

**Parameter**

- **value** ([::Google::Cloud::DatabaseCenter::V1beta::Product](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-Product)) --- The product this resource represents.
**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::Product](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-Product)) --- The product this resource represents.

### #resource_category

    def resource_category() -> ::Google::Cloud::DatabaseCenter::V1beta::ResourceCategory

**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::ResourceCategory](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-ResourceCategory)) --- The category of the resource.

### #resource_category=

    def resource_category=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::ResourceCategory

**Parameter**

- **value** ([::Google::Cloud::DatabaseCenter::V1beta::ResourceCategory](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-ResourceCategory)) --- The category of the resource.
**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::ResourceCategory](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-ResourceCategory)) --- The category of the resource.

### #resource_name

    def resource_name() -> ::String

**Returns**

- (::String) --- 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.

### #resource_name=

    def resource_name=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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.

### #resource_type

    def resource_type() -> ::String

**Returns**

- (::String) --- 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

### #resource_type=

    def resource_type=(value) -> ::String

**Parameter**

- **value** (::String) --- 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
**Returns**

- (::String) --- 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

### #signal_groups

    def signal_groups() -> ::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalGroup>

**Returns**

- (::Array\<[::Google::Cloud::DatabaseCenter::V1beta::SignalGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-SignalGroup)\>) --- The list of signal groups and count of issues related to the resource. Only those signals which have been requested would be included.

### #signal_groups=

    def signal_groups=(value) -> ::Array<::Google::Cloud::DatabaseCenter::V1beta::SignalGroup>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DatabaseCenter::V1beta::SignalGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-SignalGroup)\>) --- The list of signal groups and count of issues related to the resource. Only those signals which have been requested would be included.
**Returns**

- (::Array\<[::Google::Cloud::DatabaseCenter::V1beta::SignalGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-SignalGroup)\>) --- The list of signal groups and count of issues related to the resource. Only those signals which have been requested would be included.

### #sub_resource_type

    def sub_resource_type() -> ::Google::Cloud::DatabaseCenter::V1beta::SubResourceType

**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::SubResourceType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-SubResourceType)) --- Subtype of the resource specified at creation time.

### #sub_resource_type=

    def sub_resource_type=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::SubResourceType

**Parameter**

- **value** ([::Google::Cloud::DatabaseCenter::V1beta::SubResourceType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-SubResourceType)) --- Subtype of the resource specified at creation time.
**Returns**

- ([::Google::Cloud::DatabaseCenter::V1beta::SubResourceType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-SubResourceType)) --- Subtype of the resource specified at creation time.

### #tags

    def tags() -> ::Array<::Google::Cloud::DatabaseCenter::V1beta::Tag>

**Returns**

- (::Array\<[::Google::Cloud::DatabaseCenter::V1beta::Tag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-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

### #tags=

    def tags=(value) -> ::Array<::Google::Cloud::DatabaseCenter::V1beta::Tag>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DatabaseCenter::V1beta::Tag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-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
**Returns**

- (::Array\<[::Google::Cloud::DatabaseCenter::V1beta::Tag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-database_center-v1beta/latest/Google-Cloud-DatabaseCenter-V1beta-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