feat(target): Add ssh target support to sdk/api/cli

This add the generated code and additional configuration to support
sending the ssh target subtype to the api via the sdk or cli.

The cli now supports an additional subcommand for the ssh target
subtype:

    boundary targets create ssh
    boundary targets update ssh
This commit is contained in:
Timothy Messier authored and Louis Ruch committed 2022-07-22 14:50:57 -07:00
1 parent 2227b26fc6
commit 439566cd10
9 files changed
+761 -158

No files matched your search

@@ -192,6 +192,11 @@ message Target {
(custom_options.v1.generate_sdk_option) = true,
(custom_options.v1.subtype) = "tcp"
];
SshTargetAttributes ssh_target_attributes = 202 [
(google.api.field_visibility).restriction = "INTERNAL",
(custom_options.v1.generate_sdk_option) = true,
(custom_options.v1.subtype) = "ssh"
];
}
// Output only. The available actions on this resource for this user.
@@ -217,6 +222,20 @@ message TcpTargetAttributes {
]; // @gotags: `class:"public"`
}
// SshTargetAttributes contains attributes relevant to Targets of type "ssh"
message SshTargetAttributes {
// The default SSH port that will be used when connecting to the endpoint unless overridden by a Host Set or Host.
// If this is not specified the DefaultPort will be 22.
google.protobuf.UInt32Value default_port = 10 [
json_name = "default_port",
(custom_options.v1.generate_sdk_option) = true,
(custom_options.v1.mask_mapping) = {
this: "attributes.default_port"
that: "DefaultPort"
}
]; // @gotags: `class:"public"`
}
// WorkerInfo contains information about workers, returned in to the client in SessionAuthorization
message WorkerInfo {
// Output only. The address of the worker.