Reference documentation and code samples for the Google Cloud Database Center V1beta Client class DatabaseResource.
DatabaseResource represents every individually configured database unit representing compute and/or storage.
Generated from protobuf message google.cloud.databasecenter.v1beta.DatabaseResource
Namespace
Google \ Cloud \ DatabaseCenter \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ child_resources
↳ full_resource_name
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
↳ container
string
Specifies where the resource is created. For Google Cloud resources, it is the full name of the project.
↳ product
↳ location
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.
↳ labels
array< 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
array< 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
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
↳ sub_resource_type
int
Subtype of the resource specified at creation time.
↳ machine_config
↳ signal_groups
array< 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
↳ resource_category
int
The category of the resource.
↳ 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-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
↳ edition
int
The edition of the resource.
↳ maintenance_info
getChildResources
List of children associated with a database group.
setChildResources
List of children associated with a database group.
$this
getFullResourceName
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
setFullResourceName
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
var
string
$this
getContainer
Specifies where the resource is created. For Google Cloud resources, it is the full name of the project.
string
setContainer
Specifies where the resource is created. For Google Cloud resources, it is the full name of the project.
var
string
$this
getProduct
The product this resource represents.
hasProduct
clearProduct
setProduct
The product this resource represents.
$this
getLocation
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.
string
setLocation
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.
var
string
$this
getLabels
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
setLabels
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
$this
getTags
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
setTags
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
$this
getResourceType
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
setResourceType
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
var
string
$this
getSubResourceType
Subtype of the resource specified at creation time.
setSubResourceType
Subtype of the resource specified at creation time.
$this
getMachineConfig
Machine configuration like CPU, memory, etc for the resource.
hasMachineConfig
clearMachineConfig
setMachineConfig
Machine configuration like CPU, memory, etc for the resource.
$this
getSignalGroups
The list of signal groups and count of issues related to the resource.
Only those signals which have been requested would be included.
setSignalGroups
The list of signal groups and count of issues related to the resource.
Only those signals which have been requested would be included.
$this
getMetrics
Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.
hasMetrics
clearMetrics
setMetrics
Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.
$this
getResourceCategory
The category of the resource.
setResourceCategory
The category of the resource.
$this
getResourceName
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.
string
setResourceName
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.
var
string
$this
getBackupdrConfig
Optional. Backup and disaster recovery details for the resource.
hasBackupdrConfig
clearBackupdrConfig
setBackupdrConfig
Optional. Backup and disaster recovery details for the resource.
$this
getEdition
The edition of the resource.
setEdition
The edition of the resource.
$this
getMaintenanceInfo
Optional. The maintenance information of the resource.
hasMaintenanceInfo
clearMaintenanceInfo
setMaintenanceInfo
Optional. The maintenance information of the resource.
$this

