File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,22 @@ func ToMdmV1ProjectFindRequest(r *v1.ProjectFindRequest) *mdmv1.ProjectFindReque
195195 return mdmv1r
196196}
197197
198+ func ToMdmV1TenantFindRequest (r * v1.TenantFindRequest ) * mdmv1.TenantFindRequest {
199+ if r == nil {
200+ return nil
201+ }
202+
203+ mdmv1r := new (mdmv1.TenantFindRequest )
204+ if r .Id != nil {
205+ mdmv1r .Id = & wrapperspb.StringValue {Value : * r .Id }
206+ }
207+ if r .Name != nil {
208+ mdmv1r .Name = & wrapperspb.StringValue {Value : * r .Name }
209+ }
210+
211+ return mdmv1r
212+ }
213+
198214func ToV1Meta (m * mdmv1.Meta ) * v1.Meta {
199215 if m == nil {
200216 return nil
Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ type (
2828 Tenant * Tenant `json:"tenant,omitempty"`
2929 }
3030
31+ TenantFindRequest struct {
32+ Id * string `json:"id,omitempty"`
33+ Name * string `json:"name,omitempty"`
34+ }
35+
3136 TenantResponse struct {
3237 Tenant
3338 }
You can’t perform that action at this time.
0 commit comments