Database Center v1beta API - Class DatabaseResource (1.0.0-beta03)

public sealed class DatabaseResource : IMessage<DatabaseResource>, IEquatable<DatabaseResource>, IDeepCloneable<DatabaseResource>, IBufferMessage, IMessage

Reference documentation and code samples for the Database Center v1beta API class DatabaseResource.

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

Inheritance

object > DatabaseResource

Namespace

Google.Cloud.DatabaseCenter.V1Beta

Assembly

Google.Cloud.DatabaseCenter.V1Beta.dll

Constructors

DatabaseResource()

public DatabaseResource()

DatabaseResource(DatabaseResource)

public DatabaseResource(DatabaseResource other)
Parameter
Name Description
other DatabaseResource

Properties

BackupdrConfig

public BackupDRConfig BackupdrConfig { get; set; }

Optional. Backup and disaster recovery details for the resource.

Property Value
Type Description
BackupDRConfig

ChildResources

public RepeatedField<DatabaseResource> ChildResources { get; }

List of children associated with a database group.

Property Value
Type Description
RepeatedFieldDatabaseResource

Container

public string Container { get; set; }

Specifies where the resource is created. For GCP, it is the full name of the project.

Property Value
Type Description
string

Edition

public Edition Edition { get; set; }

The edition of the resource.

Property Value
Type Description
Edition

FullResourceName

public string FullResourceName { get; set; }

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

Property Value
Type Description
string

Labels

public RepeatedField<Label> Labels { get; }

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

Property Value
Type Description
RepeatedFieldLabel

Location

public string Location { get; set; }

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.

Property Value
Type Description
string

MachineConfig

public MachineConfig MachineConfig { get; set; }

Machine configuration like CPU, memory, etc for the resource.

Property Value
Type Description
MachineConfig

MaintenanceInfo

public MaintenanceInfo MaintenanceInfo { get; set; }

Optional. The maintenance information of the resource.

Property Value
Type Description
MaintenanceInfo

Metrics

public Metrics Metrics { get; set; }

Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.

Property Value
Type Description
Metrics

Product

public Product Product { get; set; }

The product this resource represents.

Property Value
Type Description
Product

ResourceCategory

public ResourceCategory ResourceCategory { get; set; }

The category of the resource.

Property Value
Type Description
ResourceCategory

ResourceName

public string ResourceName { get; set; }

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.

Property Value
Type Description
string

ResourceType

public string ResourceType { get; set; }

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

Property Value
Type Description
string

SignalGroups

public RepeatedField<SignalGroup> SignalGroups { get; }

The list of signal groups and count of issues related to the resource. Only those signals which have been requested would be included.

Property Value
Type Description
RepeatedFieldSignalGroup

SubResourceType

public SubResourceType SubResourceType { get; set; }

Subtype of the resource specified at creation time.

Property Value
Type Description
SubResourceType

Tags

public RepeatedField<Tag> Tags { get; }

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

Property Value
Type Description
RepeatedFieldTag