feat: org remove on admin api and org query with state (#4917)

* feat: org remove on admin api and org query with state

* docs: change description for admin api remove org

Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
Stefan Benz
2022-12-22 10:46:06 +00:00
committed by GitHub
co-authored by Livio Spring
parent a99da4f8e4
commit 7d9fc2c6e7
7 changed files with 130 additions and 0 deletions
+10
View File
@@ -80,6 +80,7 @@ message OrgQuery {
OrgNameQuery name_query = 1;
OrgDomainQuery domain_query = 2;
OrgStateQuery state_query = 3;
}
}
@@ -113,6 +114,15 @@ message OrgDomainQuery {
];
}
message OrgStateQuery {
OrgState state = 1 [
(validate.rules).enum.defined_only = true,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "current state of the organisation";
}
];
}
enum OrgFieldName {
ORG_FIELD_NAME_UNSPECIFIED = 0;
ORG_FIELD_NAME_NAME = 1;