@@ -127,21 +127,17 @@ def destroy(self) -> None:
127127
128128
129129class Jobs (ActiveFinderMethods [Job ], ActiveSequence [Job ]):
130- def __init__ (self , ctx : Context , path : str , pathinfo : str = "jobs" , uid : str = "key" ):
130+ def __init__ (self , ctx : Context , path : str ):
131131 """A collection of jobs.
132132
133133 Parameters
134134 ----------
135135 ctx : Context
136136 The context object containing the session and URL for API interactions
137137 path : str
138- The HTTP path component for the collection endpoint
139- pathinfo : str
140- The HTTP part of the path directed at a specific resource, by default "jobs"
141- uid : str, optional
142- The field name used to uniquely identify records, by default "guid"
138+ The HTTP path component for the jobs endpoint (e.g., 'v1/content/544509fc-e4f0-41de-acb4-1fe3a2c1d797')
143139 """
144- super ().__init__ (ctx , path , pathinfo , uid )
140+ super ().__init__ (ctx , path , "jobs" , "key" )
145141
146142 def _create_instance (self , path : str , pathinfo : str , / , ** kwargs : Any ) -> Job :
147143 """Creates a Job instance.
@@ -291,7 +287,7 @@ def find_by(self, **conditions) -> Optional[Job]:
291287class JobsMixin (Active , Resource ):
292288 """Mixin class to add a jobs attribute to a resource."""
293289
294- def __init__ (self , ctx , path , pathinfo = "" , / , ** kwargs ):
290+ def __init__ (self , ctx , path , / , ** kwargs ):
295291 """Mixin class which adds a `jobs` attribute to the Active Resource.
296292
297293 Parameters
@@ -305,5 +301,5 @@ def __init__(self, ctx, path, pathinfo="", /, **kwargs):
305301 **attributes : dict
306302 Resource attributes passed
307303 """
308- super ().__init__ (ctx , path , pathinfo , ** kwargs )
304+ super ().__init__ (ctx , path , "" , ** kwargs )
309305 self .jobs = Jobs (ctx , self ._path )
0 commit comments