Database Center V1BETA API - Class Google::Cloud::DatabaseCenter::V1beta::DatabaseResource (v0.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. 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
Returns

#backupdr_config=

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

#child_resources

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

#child_resources=

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

#container

def container() -> ::String
Returns
  • (::String) — Specifies where the resource is created. For GCP, it is the full name of the project.

#container=

def container=(value) -> ::String
Parameter
  • value (::String) — Specifies where the resource is created. For GCP, it is the full name of the project.
Returns
  • (::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
Returns

#edition=

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

#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>) — 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>) — 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>) — 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 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
Parameter
  • 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.
Returns
  • (::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
Returns

#machine_config=

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

#maintenance_info

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

#maintenance_info=

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

#metrics

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

#metrics=

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

#product

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

#product=

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

#resource_category

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

#resource_category=

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

#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

#signal_groups=

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

#sub_resource_type

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

#sub_resource_type=

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

#tags

def tags() -> ::Array<::Google::Cloud::DatabaseCenter::V1beta::Tag>
Returns
  • (::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>
Parameter
  • 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
Returns
  • (::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