Skip to content

Commit

Permalink
feat: [alloydb] Added enum value for PG15 (#4680)
Browse files Browse the repository at this point in the history
* feat: Added enum value for PG15
feat: Deprecate network field in favor of network_config.network
feat: Added ClientConnectionConfig
feat: Added DatabaseVersion

PiperOrigin-RevId: 566668162

Source-Link: googleapis/googleapis@90d552e

Source-Link: googleapis/googleapis-gen@c72f454
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFsbG95ZGIvLk93bEJvdC55YW1sIiwiaCI6ImM3MmY0NTQ4NDJiMWFmNDU5YjRlMmQ3MGU4NTEwMDgwNDYxNzJiMmYifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Sep 19, 2023
1 parent a1ca4a7 commit 0057f4e
Show file tree
Hide file tree
Showing 4 changed files with 508 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ enum DatabaseVersion {

// The database version is Postgres 14.
POSTGRES_14 = 2;

// The database version is Postgres 15.
POSTGRES_15 = 3;
}

// The username/password for a database user. Used for specifying initial
Expand Down Expand Up @@ -388,17 +391,16 @@ message Cluster {
// The network must belong to the same project as the cluster. It is
// specified in the form:
// "projects/{project_number}/global/networks/{network_id}". This is
// required to create a cluster. It can be updated, but it cannot be
// removed.
// required to create a cluster.
string network = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "compute.googleapis.com/Network"
}
];

// Optional. The name of the allocated IP range for the private IP AlloyDB
// cluster. For example: "google-managed-services-default". If set, the
// Optional. Name of the allocated IP range for the private IP AlloyDB
// cluster, for example: "google-managed-services-default". If set, the
// instance IPs for this cluster will be created in the allocated range. The
// range name must comply with RFC 1035. Specifically, the name must be 1-63
// characters long and match the regular expression
Expand Down Expand Up @@ -540,9 +542,10 @@ message Cluster {
// Required. The resource link for the VPC network in which cluster resources
// are created and from which they are accessible via Private IP. The network
// must belong to the same project as the cluster. It is specified in the
// form: "projects/{project_number}/global/networks/{network_id}". This is
// required to create a cluster. It can be updated, but it cannot be removed.
// form: "projects/{project}/global/networks/{network_id}". This is required
// to create a cluster. Deprecated, use network_config.network instead.
string network = 10 [
deprecated = true,
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = { type: "compute.googleapis.com/Network" }
];
Expand Down Expand Up @@ -688,6 +691,16 @@ message Instance {
Mode mode = 1;
}

// Client connection configuration
message ClientConnectionConfig {
// Optional. Configuration to enforce connectors only (ex: AuthProxy)
// connections to the database.
bool require_connectors = 1 [(google.api.field_behavior) = OPTIONAL];

// Optional. SSL config option for this instance.
SslConfig ssl_config = 2 [(google.api.field_behavior) = OPTIONAL];
}

// Instance State
enum State {
// The state of the instance is unknown.
Expand Down Expand Up @@ -875,6 +888,10 @@ message Instance {
// specify explicitly specify the value in each update request.
UpdatePolicy update_policy = 22;

// Optional. Client connection specific configurations
ClientConnectionConfig client_connection_config = 23
[(google.api.field_behavior) = OPTIONAL];

// Reserved for future use.
bool satisfies_pzs = 24;
}
Expand All @@ -892,8 +909,9 @@ message ConnectionInfo {
// This field currently has no semantic meaning.
string name = 1;

// Output only. The IP address for the Instance.
// This is the connection endpoint for an end-user application.
// Output only. The private network IP address for the Instance. This is the
// default IP for the instance and is always created (even if enable_public_ip
// is set). This is the connection endpoint for an end-user application.
string ip_address = 2 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The pem-encoded chain that may be used to verify the X.509
Expand Down Expand Up @@ -1067,6 +1085,12 @@ message Backup {

// Reserved for future use.
bool satisfies_pzs = 21;

// Output only. The database engine major version of the cluster this backup
// was created from. Any restored cluster created from this backup will have
// the same database version.
DatabaseVersion database_version = 22
[(google.api.field_behavior) = OUTPUT_ONLY];
}

// SupportedDatabaseFlag gives general information about a database flag,
Expand Down
118 changes: 117 additions & 1 deletion packages/google-cloud-alloydb/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0057f4e

Please sign in to comment.