Add ssh private key type and add type to static store (#2262)

Co-authored-by: Louis Ruch <louisruch@gmail.com>
This commit is contained in:
Jeff MitchellandLouis Ruch authored and GitHub committed 2022-07-18 19:16:11 -04:00
1 parent 4b3882c122
commit 011e2e7425
25 files changed
+2633 -320

No files matched your search

@@ -64,6 +64,11 @@ message Credential {
(custom_options.v1.generate_sdk_option) = true,
(custom_options.v1.subtype) = "username_password"
];
SshPrivateKeyAttributes ssh_private_key_attributes = 102 [
(google.api.field_visibility).restriction = "INTERNAL",
(custom_options.v1.generate_sdk_option) = true,
(custom_options.v1.subtype) = "ssh_private_key"
];
}
// Output only. The available actions on this resource for this user.
@@ -100,3 +105,34 @@ message UsernamePasswordAttributes {
}
]; // @gotags: `class:"public"`
}
// The attributes of a SshPrivateKey Credential.
message SshPrivateKeyAttributes {
// The username associated with the credential.
google.protobuf.StringValue username = 10 [
(custom_options.v1.generate_sdk_option) = true,
(custom_options.v1.mask_mapping) = {
this: "attributes.username"
that: "Username"
}
]; // @gotags: `class:"public"`
// Input only. The SSH private key associated with the credential.
google.protobuf.StringValue private_key = 20 [
json_name = "private_key",
(custom_options.v1.generate_sdk_option) = true,
(custom_options.v1.mask_mapping) = {
this: "attributes.private_key"
that: "PrivateKey"
}
]; // @gotags: `class:"secret"`
// Output only. The hmac value of the SSH private key.
string private_key_hmac = 30 [
json_name = "private_key_hmac",
(custom_options.v1.mask_mapping) = {
this: "attributes.private_key_hmac"
that: "PrivateKeyHmac"
}
]; // @gotags: `class:"public"`
}