@@ -201,6 +201,27 @@ func (r *BrowserPersistenceParam) UnmarshalJSON(data []byte) error {
201201 return apijson .UnmarshalRoot (data , r )
202202}
203203
204+ // Browser pool this session was acquired from, if any.
205+ type BrowserPoolRef struct {
206+ // Browser pool ID
207+ ID string `json:"id" api:"required"`
208+ // Browser pool name, if set
209+ Name string `json:"name"`
210+ // JSON contains metadata for fields, check presence with [respjson.Field.Valid].
211+ JSON struct {
212+ ID respjson.Field
213+ Name respjson.Field
214+ ExtraFields map [string ]respjson.Field
215+ raw string
216+ } `json:"-"`
217+ }
218+
219+ // Returns the unmodified JSON received from the API
220+ func (r BrowserPoolRef ) RawJSON () string { return r .JSON .raw }
221+ func (r * BrowserPoolRef ) UnmarshalJSON (data []byte ) error {
222+ return apijson .UnmarshalRoot (data , r )
223+ }
224+
204225// Browser profile metadata.
205226type Profile struct {
206227 // Unique identifier for the profile
@@ -257,6 +278,8 @@ type BrowserNewResponse struct {
257278 //
258279 // Deprecated: deprecated
259280 Persistence BrowserPersistence `json:"persistence"`
281+ // Browser pool this session was acquired from, if any.
282+ Pool BrowserPoolRef `json:"pool"`
260283 // Browser profile metadata.
261284 Profile Profile `json:"profile"`
262285 // ID of the proxy associated with this browser session, if any.
@@ -283,6 +306,7 @@ type BrowserNewResponse struct {
283306 GPU respjson.Field
284307 KioskMode respjson.Field
285308 Persistence respjson.Field
309+ Pool respjson.Field
286310 Profile respjson.Field
287311 ProxyID respjson.Field
288312 Viewport respjson.Field
@@ -323,6 +347,8 @@ type BrowserGetResponse struct {
323347 //
324348 // Deprecated: deprecated
325349 Persistence BrowserPersistence `json:"persistence"`
350+ // Browser pool this session was acquired from, if any.
351+ Pool BrowserPoolRef `json:"pool"`
326352 // Browser profile metadata.
327353 Profile Profile `json:"profile"`
328354 // ID of the proxy associated with this browser session, if any.
@@ -349,6 +375,7 @@ type BrowserGetResponse struct {
349375 GPU respjson.Field
350376 KioskMode respjson.Field
351377 Persistence respjson.Field
378+ Pool respjson.Field
352379 Profile respjson.Field
353380 ProxyID respjson.Field
354381 Viewport respjson.Field
@@ -389,6 +416,8 @@ type BrowserUpdateResponse struct {
389416 //
390417 // Deprecated: deprecated
391418 Persistence BrowserPersistence `json:"persistence"`
419+ // Browser pool this session was acquired from, if any.
420+ Pool BrowserPoolRef `json:"pool"`
392421 // Browser profile metadata.
393422 Profile Profile `json:"profile"`
394423 // ID of the proxy associated with this browser session, if any.
@@ -415,6 +444,7 @@ type BrowserUpdateResponse struct {
415444 GPU respjson.Field
416445 KioskMode respjson.Field
417446 Persistence respjson.Field
447+ Pool respjson.Field
418448 Profile respjson.Field
419449 ProxyID respjson.Field
420450 Viewport respjson.Field
@@ -455,6 +485,8 @@ type BrowserListResponse struct {
455485 //
456486 // Deprecated: deprecated
457487 Persistence BrowserPersistence `json:"persistence"`
488+ // Browser pool this session was acquired from, if any.
489+ Pool BrowserPoolRef `json:"pool"`
458490 // Browser profile metadata.
459491 Profile Profile `json:"profile"`
460492 // ID of the proxy associated with this browser session, if any.
@@ -481,6 +513,7 @@ type BrowserListResponse struct {
481513 GPU respjson.Field
482514 KioskMode respjson.Field
483515 Persistence respjson.Field
516+ Pool respjson.Field
484517 Profile respjson.Field
485518 ProxyID respjson.Field
486519 Viewport respjson.Field
0 commit comments