feat(cli): Implement address flag for boundary targets create/update
This commit adds CLI support for addresses to be attached directly to a Target, for all current types of Target (ssh and tcp). It also clarifies the relevant documentation regarding the autogen of API option functionality.
This commit is contained in:
1 parent
61c90c5623
commit
c82d2efb14
12 files changed
+221
-125
No files matched your search
@@ -211,6 +211,9 @@ message Target {
|
||||
// Output only. The available actions on this resource for this user.
|
||||
repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public"`
|
||||
|
||||
// Optionally, a valid network address to connect to for this target. Can not be used alongside host sources.
|
||||
string address = 540 [(custom_options.v1.generate_sdk_option) = true]; // @gotags: `class:"public"`
|
||||
|
||||
// Deprecated fields
|
||||
reserved "application_credential_library_ids", "application_credential_libraries";
|
||||
reserved 150, 180;
|
||||
|
||||
@@ -14,7 +14,8 @@ extend google.protobuf.FieldOptions {
|
||||
MaskMapping mask_mapping = 85464;
|
||||
|
||||
// generate_sdk_option is a directive used when generating the SDK to
|
||||
// indicate that an option should be created for the field
|
||||
// indicate that an option should be created for the field. This also controls
|
||||
// API options (DefaultX, WithX functions).
|
||||
bool generate_sdk_option = 85412;
|
||||
|
||||
// subtype is used for oneOf attribute subtypes, to identify that we only need to parse attributes
|
||||
|
||||
Reference in new issue
Block a user