Skip to content

Commit

Permalink
fix: allow passing gax instance to client constructor (#98)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 470911839

Source-Link: googleapis/googleapis@3527566

Source-Link: googleapis/googleapis-gen@f16a1d2
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjE2YTFkMjI0ZjAwYTYzMGVhNDNkNmE5YTFhMzFmNTY2ZjQ1Y2RlYSJ9

feat: accept google-gax instance as a parameter
Please see the documentation of the client constructor for details.

PiperOrigin-RevId: 470332808

Source-Link: googleapis/googleapis@d4a2367

Source-Link: googleapis/googleapis-gen@e97a1ac
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTk3YTFhYzIwNGVhZDRmZTczNDFmOTFlNzJkYjdjNmFjNjAxNjM0MSJ9

feat: Adds support for configuring scaling settings
Clients can now specify machine type and min/max instances when creating a connector.

PiperOrigin-RevId: 469463049

Source-Link: googleapis/googleapis@17b39f1

Source-Link: googleapis/googleapis-gen@88b74ac
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODhiNzRhYzY5ZTc2NzkxYTAyMGNiNTQzNzQ3YzA5MDY1NWVlNzE0NCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 1, 2022
1 parent 47901ff commit cf51b7e
Show file tree
Hide file tree
Showing 6 changed files with 970 additions and 80 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -89,20 +89,6 @@ message Connector {
pattern: "projects/{project}/locations/{location}/connectors/{connector}"
};

// The subnet in which to house the connector
message Subnet {
// Subnet name (relative, not fully qualified).
// E.g. if the full subnet selfLink is
// https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName}
// the correct input for this field would be {subnetName}
string name = 1;

// Project in which the subnet exists.
// If not set, this project is assumed to be the project for which
// the connector create request was issued.
string project_id = 2;
}

// State of a connector.
enum State {
// Invalid state.
Expand All @@ -124,6 +110,20 @@ message Connector {
UPDATING = 5;
}

// The subnet in which to house the connector
message Subnet {
// Subnet name (relative, not fully qualified).
// E.g. if the full subnet selfLink is
// https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName}
// the correct input for this field would be {subnetName}
string name = 1;

// Project in which the subnet exists.
// If not set, this project is assumed to be the project for which
// the connector create request was issued.
string project_id = 2;
}

// The resource name in the format `projects/*/locations/*/connectors/*`.
string name = 1;

Expand All @@ -140,14 +140,23 @@ message Connector {
// Minimum throughput of the connector in Mbps. Default and min is 200.
int32 min_throughput = 5;

// Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
// Maximum throughput of the connector in Mbps. Default is 300, max is 1000.
int32 max_throughput = 6;

// Output only. List of projects using the connector.
repeated string connected_projects = 7 [(google.api.field_behavior) = OUTPUT_ONLY];

// The subnet in which to house the VPC Access Connector.
Subnet subnet = 8;

// Machine type of VM Instance underlying connector. Default is e2-micro
string machine_type = 10;

// Minimum value of instances in autoscaling group underlying the connector.
int32 min_instances = 11;

// Maximum value of instances in autoscaling group underlying the connector.
int32 max_instances = 12;
}

// Request for creating a Serverless VPC Access connector.
Expand Down
38 changes: 28 additions & 10 deletions packages/google-cloud-vpc-access/protos/protos.d.ts

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

113 changes: 91 additions & 22 deletions packages/google-cloud-vpc-access/protos/protos.js

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

32 changes: 22 additions & 10 deletions packages/google-cloud-vpc-access/protos/protos.json

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

Loading

0 comments on commit cf51b7e

Please sign in to comment.