@@ -21,38 +21,41 @@ type GroupEntityV1alpha1 struct {
2121 Kind string `json:"kind"`
2222
2323 // Spec is the specification data describing the group itself.
24- Spec struct {
25- // Type of group. There is currently no enforced set of values for this field, so it is left up to the adopting
26- // organization to choose a nomenclature that matches their org hierarchy.
27- Type string `json:"type"`
28-
29- // Profile information about the group, mainly for display purposes. All fields of this structure are also optional.
30- // The email would be a group email of some form, that the group may wish to be used for contacting them.
31- // The picture is expected to be a URL pointing to an image that's representative of the group, and that a browser could
32- // fetch and render on a group page or similar.
33- Profile struct {
34- // DisplayName to present to users.
35- DisplayName string `json:"displayName,omitempty"`
36-
37- // Email where this entity can be reached.
38- Email string `json:"email,omitempty"`
39-
40- // Picture is a URL of an image that represents this entity.
41- Picture string `json:"picture,omitempty"`
42- } `json:"profile,omitempty"`
43-
44- // Parent is the immediate parent group in the hierarchy, if any. Not all groups must have a parent; the catalog supports
45- // multi-root hierarchies. Groups may however not have more than one parent. This field is an entity reference.
46- Parent string `json:"parent,omitempty"`
47-
48- // Children contains immediate child groups of this group in the hierarchy (whose parent field points to this group).
49- // The list must be present, but may be empty if there are no child groups. The items are not guaranteed to be ordered in
50- // any particular way. The entries of this array are entity references.
51- Children []string `json:"children"`
52-
53- // Members contains users that are members of this group. The entries of this array are entity references.
54- Members []string `json:"members,omitempty"`
55- } `json:"spec"`
24+ Spec * GroupEntityV1alpha1Spec `json:"spec"`
25+ }
26+
27+ // GroupEntityV1alpha1Spec describes the specification data describing the group itself.
28+ type GroupEntityV1alpha1Spec struct {
29+ // Type of group. There is currently no enforced set of values for this field, so it is left up to the adopting
30+ // organization to choose a nomenclature that matches their org hierarchy.
31+ Type string `json:"type"`
32+
33+ // Profile information about the group, mainly for display purposes. All fields of this structure are also optional.
34+ // The email would be a group email of some form, that the group may wish to be used for contacting them.
35+ // The picture is expected to be a URL pointing to an image that's representative of the group, and that a browser could
36+ // fetch and render on a group page or similar.
37+ Profile struct {
38+ // DisplayName to present to users.
39+ DisplayName string `json:"displayName,omitempty"`
40+
41+ // Email where this entity can be reached.
42+ Email string `json:"email,omitempty"`
43+
44+ // Picture is a URL of an image that represents this entity.
45+ Picture string `json:"picture,omitempty"`
46+ } `json:"profile,omitempty"`
47+
48+ // Parent is the immediate parent group in the hierarchy, if any. Not all groups must have a parent; the catalog supports
49+ // multi-root hierarchies. Groups may however not have more than one parent. This field is an entity reference.
50+ Parent string `json:"parent,omitempty"`
51+
52+ // Children contains immediate child groups of this group in the hierarchy (whose parent field points to this group).
53+ // The list must be present, but may be empty if there are no child groups. The items are not guaranteed to be ordered in
54+ // any particular way. The entries of this array are entity references.
55+ Children []string `json:"children"`
56+
57+ // Members contains users that are members of this group. The entries of this array are entity references.
58+ Members []string `json:"members,omitempty"`
5659}
5760
5861// groupService handles communication with the group related methods of the Backstage Catalog API.
0 commit comments