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. NextId: 20
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#backupdr_config
def backupdr_config() -> ::Google::Cloud::DatabaseCenter::V1beta::BackupDRConfig- (::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- value (::Google::Cloud::DatabaseCenter::V1beta::BackupDRConfig) — Optional. Backup and disaster recovery details for the resource.
- (::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>- (::Array<::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>- value (::Array<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResource>) — List of children associated with a database group.
- (::Array<::Google::Cloud::DatabaseCenter::V1beta::DatabaseResource>) — List of children associated with a database group.
#container
def container() -> ::String- (::String) — Specifies where the resource is created. For GCP, it is the full name of the project.
#container=
def container=(value) -> ::String- value (::String) — Specifies where the resource is created. For GCP, it is the full name of the project.
- (::String) — Specifies where the resource is created. For GCP, it is the full name of the project.
#edition
def edition() -> ::Google::Cloud::DatabaseCenter::V1beta::Edition- (::Google::Cloud::DatabaseCenter::V1beta::Edition) — The edition of the resource.
#edition=
def edition=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::Edition- value (::Google::Cloud::DatabaseCenter::V1beta::Edition) — The edition of the resource.
- (::Google::Cloud::DatabaseCenter::V1beta::Edition) — The edition of the resource.
#full_resource_name
def full_resource_name() -> ::String-
(::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-
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
-
(::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>- (::Array<::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>- value (::Array<::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
- (::Array<::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- (::String) — The location of the resources. It supports returning only regional locations in GCP. 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- value (::String) — The location of the resources. It supports returning only regional locations in GCP. These are of the form: "us-central1", "us-east1", etc. See https://cloud.google.com/about/locations for a list of such regions.
- (::String) — The location of the resources. It supports returning only regional locations in GCP. 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- (::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- value (::Google::Cloud::DatabaseCenter::V1beta::MachineConfig) — Machine configuration like CPU, memory, etc for the resource.
- (::Google::Cloud::DatabaseCenter::V1beta::MachineConfig) — Machine configuration like CPU, memory, etc for the resource.
#maintenance_info
def maintenance_info() -> ::Google::Cloud::DatabaseCenter::V1beta::MaintenanceInfo- (::Google::Cloud::DatabaseCenter::V1beta::MaintenanceInfo) — Optional. The maintenance information of the resource.
#maintenance_info=
def maintenance_info=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::MaintenanceInfo- value (::Google::Cloud::DatabaseCenter::V1beta::MaintenanceInfo) — Optional. The maintenance information of the resource.
- (::Google::Cloud::DatabaseCenter::V1beta::MaintenanceInfo) — Optional. The maintenance information of the resource.
#metrics
def metrics() -> ::Google::Cloud::DatabaseCenter::V1beta::Metrics- (::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- value (::Google::Cloud::DatabaseCenter::V1beta::Metrics) — Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.
- (::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- (::Google::Cloud::DatabaseCenter::V1beta::Product) — The product this resource represents.
#product=
def product=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::Product- value (::Google::Cloud::DatabaseCenter::V1beta::Product) — The product this resource represents.
- (::Google::Cloud::DatabaseCenter::V1beta::Product) — The product this resource represents.
#resource_category
def resource_category() -> ::Google::Cloud::DatabaseCenter::V1beta::ResourceCategory- (::Google::Cloud::DatabaseCenter::V1beta::ResourceCategory) — The category of the resource.
#resource_category=
def resource_category=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::ResourceCategory- value (::Google::Cloud::DatabaseCenter::V1beta::ResourceCategory) — The category of the resource.
- (::Google::Cloud::DatabaseCenter::V1beta::ResourceCategory) — The category of the resource.
#resource_name
def resource_name() -> ::String-
(::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-1For full resource name -//cloudsql.googleapis.com/projects/project-number/instances/postgres-1, resource name -postgres-1Note: In some cases, there might be more than one resource with the same resource name.
#resource_name=
def resource_name=(value) -> ::String-
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-1For full resource name -//cloudsql.googleapis.com/projects/project-number/instances/postgres-1, resource name -postgres-1Note: In some cases, there might be more than one resource with the same resource name.
-
(::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-1For full resource name -//cloudsql.googleapis.com/projects/project-number/instances/postgres-1, resource name -postgres-1Note: In some cases, there might be more than one resource with the same resource name.
#resource_type
def resource_type() -> ::String- (::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- 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
- (::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>- (::Array<::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>- value (::Array<::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.
- (::Array<::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- (::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- value (::Google::Cloud::DatabaseCenter::V1beta::SubResourceType) — Subtype of the resource specified at creation time.
- (::Google::Cloud::DatabaseCenter::V1beta::SubResourceType) — Subtype of the resource specified at creation time.
#tags
def tags() -> ::Array<::Google::Cloud::DatabaseCenter::V1beta::Tag>- (::Array<::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>- value (::Array<::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
- (::Array<::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