gateway api: return projectgroup visibility
This commit is contained in:
parent
d2d1a5fb65
commit
5dfe7f8ce9
|
@ -184,6 +184,7 @@ type ProjectGroupResponse struct {
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
Path string `json:"path,omitempty"`
|
Path string `json:"path,omitempty"`
|
||||||
ParentPath string `json:"parent_path,omitempty"`
|
ParentPath string `json:"parent_path,omitempty"`
|
||||||
|
Visibility types.Visibility `json:"visibility,omitempty"`
|
||||||
GlobalVisibility string `json:"global_visibility,omitempty"`
|
GlobalVisibility string `json:"global_visibility,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -193,6 +194,7 @@ func createProjectGroupResponse(r *csapi.ProjectGroup) *ProjectGroupResponse {
|
||||||
Name: r.Name,
|
Name: r.Name,
|
||||||
Path: r.Path,
|
Path: r.Path,
|
||||||
ParentPath: r.ParentPath,
|
ParentPath: r.ParentPath,
|
||||||
|
Visibility: r.Visibility,
|
||||||
GlobalVisibility: string(r.GlobalVisibility),
|
GlobalVisibility: string(r.GlobalVisibility),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue