feat(handlers): CRUDL support for static Username-Password-Domain credentials

This commit is contained in:
Andrew Gaffney authored and irenarindos committed 2025-09-02 15:12:20 -04:00
1 parent e4dfa76c8e
commit f265ec4e5b
7 files changed
+724 -52

No files matched your search

@@ -77,6 +77,11 @@ message Credential {
(custom_options.v1.generate_sdk_option) = true,
(custom_options.v1.subtype) = "json"
];
UsernamePasswordDomainAttributes username_password_domain_attributes = 104 [
(google.api.field_visibility).restriction = "INTERNAL",
(custom_options.v1.generate_sdk_option) = true,
(custom_options.v1.subtype) = "username_password_domain"
];
}
// Output only. The available actions on this resource for this user.
@@ -114,6 +119,44 @@ message UsernamePasswordAttributes {
]; // @gotags: `class:"public"`
}
message UsernamePasswordDomainAttributes {
// 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 password associated with the credential.
google.protobuf.StringValue password = 20 [
json_name = "password",
(custom_options.v1.generate_sdk_option) = true,
(custom_options.v1.mask_mapping) = {
this: "attributes.password"
that: "Password"
}
]; // @gotags: `class:"secret"`
// Output only. The hmac value of the password.
string password_hmac = 30 [
json_name = "password_hmac",
(custom_options.v1.mask_mapping) = {
this: "attributes.password_hmac"
that: "PasswordHmac"
}
]; // @gotags: `class:"public"`
google.protobuf.StringValue domain = 40 [
(custom_options.v1.generate_sdk_option) = true,
(custom_options.v1.mask_mapping) = {
this: "attributes.domain"
that: "Domain"
}
]; // @gotags: `class:"public"`
}
// The attributes of a SshPrivateKey Credential.
message SshPrivateKeyAttributes {
// The username associated with the credential.