Add multi connection parameters through targets and into session creation (#375)

* Update protos and gen

* Add new values to targets CLI command

* Lots more plumbing of new parameters through everything

* allow fields to be set to zero value.

* Disallow set but empty name/description strings in create/update verifiers

Co-authored-by: Jim Lambert <jlambert@hashicorp.com>
This commit is contained in:
Jeff MitchellandJim Lambert authored and GitHub committed 2020-09-19 10:31:49 -04:00
1 parent 07a7e9750a
commit 62baef1b7e
34 files changed
+725 -229

No files matched your search

@@ -56,8 +56,17 @@ message Target {
// Output only.
repeated HostSet host_sets = 110;
// Maximum total lifetime of a created session, in seconds
google.protobuf.UInt32Value session_max_duration = 120 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"session_max_duration" that: "SessionMaxDuration"}];
// Maximum number of connections in a session
google.protobuf.UInt32Value session_connection_limit = 130 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"session_connection_limit" that: "SessionConnectionLimit"}];
// Idle timeout for a connection in the session, in seconds
google.protobuf.UInt32Value connection_idle_timeout_duration = 140 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"connection_idle_timeout_duration" that: "ConnectionIdleTimeoutDuration"}];
// The attributes that are applied for the specific Target type.
google.protobuf.Struct attributes = 120 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.Struct attributes = 200 [(custom_options.v1.generate_sdk_option) = true];
}
message TcpTargetAttributes {