Update target credential library service, API, SDK, CLI (#1343)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-06-25 14:06:31 -04:00
1 parent 83c65d0d4b
commit 86c9a90554
27 files changed
+1474 -1127

No files matched your search

@@ -284,41 +284,33 @@ message RemoveTargetHostSetsResponse {
api.resources.targets.v1.Target item = 1;
}
message CredentialLibrary {
// The id of the credential library.
string id = 1;
// The purpose of the credential library for this target. Currently this can
// only be "application" or left empty (which defaults the value to
// "application").
string purpose = 2;
}
// The ids from both credential_library_ids and credential_libraries are used.
// When using credential_library_ids the default value "application" is used
// for the purpose.
message AddTargetCredentialLibrariesRequest {
string id = 1;
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2;
repeated string credential_library_ids = 3 [json_name="credential_library_ids"];
repeated CredentialLibrary credential_libraries = 4 [json_name="credential_libraries"];
repeated string application_credential_library_ids = 3 [json_name="application_credential_library_ids"];
// TODO: Uncomment when we support more purposes beyond application
// repeated string egress_credential_library_ids = 4 [json_name="egress_credential_library_ids"];
// repeated string ingress_credential_library_ids = 5 [json_name="ingress_credential_library_ids"];
}
message AddTargetCredentialLibrariesResponse {
api.resources.targets.v1.Target item = 1;
}
// The ids from both credential_library_ids and credential_libraries are used.
// When using credential_library_ids the default value "application" is used
// for the purpose.
// Sets the values for application_credential_library_ids. If any
// credential_library_id field that is not set in the request will result in
// those fields being cleared.
message SetTargetCredentialLibrariesRequest {
string id = 1;
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2;
repeated string credential_library_ids = 3 [json_name="credential_library_ids"];
repeated CredentialLibrary credential_libraries = 4 [json_name="credential_libraries"];
repeated string application_credential_library_ids = 3 [json_name="application_credential_library_ids"];
// TODO: Uncomment when we support more purposes beyond application
// repeated string egress_credential_library_ids = 4 [json_name="egress_credential_library_ids"];
// repeated string ingress_credential_library_ids = 5 [json_name="ingress_credential_library_ids"];
}
message SetTargetCredentialLibrariesResponse {
@@ -330,7 +322,10 @@ message RemoveTargetCredentialLibrariesRequest {
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2;
repeated string credential_library_ids = 3 [json_name="credential_library_ids"];
repeated string application_credential_library_ids = 3 [json_name="application_credential_library_ids"];
// TODO: Uncomment when we support more purposes beyond application
// repeated string egress_credential_library_ids = 4 [json_name="egress_credential_library_ids"];
// repeated string ingress_credential_library_ids = 5 [json_name="ingress_credential_library_ids"];
}
message RemoveTargetCredentialLibrariesResponse {