Skip to content

Commit

Permalink
feat: added DatabaseInstance.primary_dns_name
Browse files Browse the repository at this point in the history
docs: minor comments update

PiperOrigin-RevId: 573879777
  • Loading branch information
Google APIs authored and Copybara-Service committed Oct 16, 2023
1 parent 79468ee commit a9ebb31
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions google/cloud/sql/v1/cloud_sql_instances.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,10 @@ message DatabaseInstance {

// Output only. The dns name of the instance.
optional string dns_name = 49 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The dns name of the primary instance in a replication group.
optional string primary_dns_name = 51
[(google.api.field_behavior) = OUTPUT_ONLY];
}

// Reschedule options for maintenance windows.
Expand Down
7 changes: 4 additions & 3 deletions google/cloud/sql/v1/cloud_sql_resources.proto
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,9 @@ message PscConfig {
// Whether PSC connectivity is enabled for this instance.
optional bool psc_enabled = 1;

// List of consumer projects that are allow-listed for PSC connections to this
// instance. This instance can be connected to with PSC from any network in
// these projects.
// The list of consumer projects that are allow-listed for PSC connections to
// this instance. This instance can be connected to with PSC from any network
// in these projects.
//
// Each consumer project in this list may be represented by a project number
// (numeric) or by a project id (alphanumeric).
Expand All @@ -563,6 +563,7 @@ message LocationPreference {

// The preferred Compute Engine zone for the secondary/failover
// (for example: us-central1-a, us-central1-b, etc.).
// To disable this field, set it to 'no_secondary_zone'.
string secondary_zone = 4;

// This is always `sql#locationPreference`.
Expand Down

0 comments on commit a9ebb31

Please sign in to comment.