@@ -89,8 +89,27 @@ abstract class APIGroupAPI(base: String) {
8989 protected def baseUrlIn (namespace : String ) =
9090 s " $base/namespaces/ ${namespace}/ $resourceName"
9191
92- case class ListInNamespace (namespace : String )
93- extends ListingRequest [RES , COL ](baseUrlIn(namespace))
92+ case class ListInNamespace (
93+ namespace : String ,
94+ allowWatchBookmarks : Option [Boolean ] = None ,
95+ continue : Option [String ] = None ,
96+ fieldSelector : List [String ] = Nil ,
97+ labelSelector : List [String ] = Nil ,
98+ limit : Option [Int ] = None ,
99+ resourceVersion : Option [String ] = None ,
100+ resourceVersionMatch : Option [String ] = None ,
101+ timeout : Option [FiniteDuration ] = None
102+ ) extends ListingRequest [RES , COL ](
103+ baseUrlIn(namespace),
104+ allowWatchBookmarks = allowWatchBookmarks,
105+ continue = continue,
106+ fieldSelector = fieldSelector,
107+ labelSelector = labelSelector,
108+ limit = limit,
109+ resourceVersion = resourceVersion,
110+ resourceVersionMatch = resourceVersionMatch,
111+ timeout = timeout
112+ )
94113 case class Create (
95114 namespace : String ,
96115 configmap : RES ,
@@ -200,7 +219,26 @@ abstract class APIGroupAPI(base: String) {
200219
201220 trait NamespacedAPIBuilders extends NamespacedAPI {
202221 def get (name : String ): Get = Get (namespace, name)
203- val list : ListInNamespace = ListInNamespace (namespace)
222+ def list (
223+ allowWatchBookmarks : Option [Boolean ] = None ,
224+ continue : Option [String ] = None ,
225+ fieldSelector : List [String ] = Nil ,
226+ labelSelector : List [String ] = Nil ,
227+ limit : Option [Int ] = None ,
228+ resourceVersion : Option [String ] = None ,
229+ resourceVersionMatch : Option [String ] = None ,
230+ timeout : Option [FiniteDuration ] = None
231+ ): ListInNamespace = ListInNamespace (
232+ namespace,
233+ allowWatchBookmarks = allowWatchBookmarks,
234+ continue = continue,
235+ fieldSelector = fieldSelector,
236+ labelSelector = labelSelector,
237+ limit = limit,
238+ resourceVersion = resourceVersion,
239+ resourceVersionMatch = resourceVersionMatch,
240+ timeout = timeout
241+ )
204242 def delete (
205243 name : String ,
206244 options : Option [DeleteOptions ] = None ,
0 commit comments