You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -49,11 +50,13 @@ func (s *Server) createComputeAllocation(w http.ResponseWriter, r *http.Request)
49
50
}
50
51
51
52
// @Summary Get a compute allocation by ID
53
+
// @Description Callers without the allocations read privilege must hold a membership on the allocation or a governance role on its project; others return 404.
52
54
// @Tags Compute Allocations
53
55
// @Security BearerAuth
54
56
// @Produce json
55
57
// @Param id path string true "Compute allocation ID"
@@ -157,6 +160,7 @@ func (s *Server) getLatestDiffForAllocation(w http.ResponseWriter, r *http.Reque
157
160
}
158
161
159
162
// @Summary List compute allocations (filtered + paginated)
163
+
// @Description Callers without the allocations read privilege get only allocations where they hold a membership or a governance role on the parent project; filters and pagination apply to privileged callers only.
160
164
// @Tags Compute Allocations
161
165
// @Security BearerAuth
162
166
// @Produce json
@@ -166,8 +170,25 @@ func (s *Server) getLatestDiffForAllocation(w http.ResponseWriter, r *http.Reque
Copy file name to clipboardExpand all lines: internal/server/allocation_membership.go
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -133,11 +133,13 @@ func (s *Server) deleteComputeAllocationMembership(w http.ResponseWriter, r *htt
133
133
}
134
134
135
135
// @Summary List members of a compute allocation
136
+
// @Description Callers without the allocations read privilege must hold a membership on the allocation or a governance role on its project; others return 404.
136
137
// @Tags Compute Allocation Memberships
137
138
// @Security BearerAuth
138
139
// @Produce json
139
140
// @Param id path string true "Compute allocation ID"
Copy file name to clipboardExpand all lines: internal/server/allocation_resource.go
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -181,11 +181,13 @@ func (s *Server) detachResourceFromAllocation(w http.ResponseWriter, r *http.Req
181
181
}
182
182
183
183
// @Summary List resources attached to a compute allocation
184
+
// @Description Callers without the allocations read privilege must hold a membership on the allocation or a governance role on its project; others return 404.
184
185
// @Tags Compute Allocation Resources
185
186
// @Security BearerAuth
186
187
// @Produce json
187
188
// @Param id path string true "Compute allocation ID"
Copy file name to clipboardExpand all lines: internal/server/allocation_usage.go
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -80,11 +80,13 @@ func (s *Server) deleteComputeAllocationUsage(w http.ResponseWriter, r *http.Req
80
80
}
81
81
82
82
// @Summary List usages for a compute allocation
83
+
// @Description Callers without the allocations read privilege must hold a membership on the allocation or a governance role on its project; others return 404.
83
84
// @Tags Compute Allocation Usages
84
85
// @Security BearerAuth
85
86
// @Produce json
86
87
// @Param id path string true "Compute allocation ID"
@@ -114,11 +116,13 @@ func (s *Server) listUsagesByUser(w http.ResponseWriter, r *http.Request) {
114
116
}
115
117
116
118
// @Summary Get total SU usage for a compute allocation
119
+
// @Description Callers without the allocations read privilege must hold a membership on the allocation or a governance role on its project; others return 404.
117
120
// @Tags Compute Allocation Usages
118
121
// @Security BearerAuth
119
122
// @Produce json
120
123
// @Param id path string true "Compute allocation ID"
0 commit comments