-
Notifications
You must be signed in to change notification settings - Fork 0
/
projectinferencepipeline.go
971 lines (857 loc) · 46.8 KB
/
projectinferencepipeline.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
package openlayer
import (
"context"
"errors"
"fmt"
"net/http"
"net/url"
"time"
"github.com/openlayer-ai/openlayer-go/internal/apijson"
"github.com/openlayer-ai/openlayer-go/internal/apiquery"
"github.com/openlayer-ai/openlayer-go/internal/param"
"github.com/openlayer-ai/openlayer-go/internal/requestconfig"
"github.com/openlayer-ai/openlayer-go/option"
)
// ProjectInferencePipelineService contains methods and other services that help
// with interacting with the openlayer API.
//
// Note, unlike clients, this service does not read variables from the environment
// automatically. You should not instantiate this service directly, and instead use
// the [NewProjectInferencePipelineService] method instead.
type ProjectInferencePipelineService struct {
Options []option.RequestOption
}
// NewProjectInferencePipelineService generates a new service that applies the
// given options to each request. These options are applied after the parent
// client's options (if there is one), and before any request-specific options.
func NewProjectInferencePipelineService(opts ...option.RequestOption) (r *ProjectInferencePipelineService) {
r = &ProjectInferencePipelineService{}
r.Options = opts
return
}
// Create an inference pipeline in a project.
func (r *ProjectInferencePipelineService) New(ctx context.Context, projectID string, body ProjectInferencePipelineNewParams, opts ...option.RequestOption) (res *ProjectInferencePipelineNewResponse, err error) {
opts = append(r.Options[:], opts...)
if projectID == "" {
err = errors.New("missing required projectId parameter")
return
}
path := fmt.Sprintf("projects/%s/inference-pipelines", projectID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
}
// List the inference pipelines in a project.
func (r *ProjectInferencePipelineService) List(ctx context.Context, projectID string, query ProjectInferencePipelineListParams, opts ...option.RequestOption) (res *ProjectInferencePipelineListResponse, err error) {
opts = append(r.Options[:], opts...)
if projectID == "" {
err = errors.New("missing required projectId parameter")
return
}
path := fmt.Sprintf("projects/%s/inference-pipelines", projectID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &res, opts...)
return
}
type ProjectInferencePipelineNewResponse struct {
// The inference pipeline id.
ID string `json:"id,required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated,required" format:"date-time"`
// The last test evaluation date.
DateLastEvaluated time.Time `json:"dateLastEvaluated,required,nullable" format:"date-time"`
// The last data sample received date.
DateLastSampleReceived time.Time `json:"dateLastSampleReceived,required,nullable" format:"date-time"`
// The next test evaluation date.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation,required,nullable" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated,required" format:"date-time"`
// The inference pipeline description.
Description string `json:"description,required,nullable"`
// The number of tests failing.
FailingGoalCount int64 `json:"failingGoalCount,required"`
Links ProjectInferencePipelineNewResponseLinks `json:"links,required"`
// The inference pipeline name.
Name string `json:"name,required"`
// The number of tests passing.
PassingGoalCount int64 `json:"passingGoalCount,required"`
// The project id.
ProjectID string `json:"projectId,required" format:"uuid"`
// The status of test evaluation for the inference pipeline.
Status ProjectInferencePipelineNewResponseStatus `json:"status,required"`
// The status message of test evaluation for the inference pipeline.
StatusMessage string `json:"statusMessage,required,nullable"`
// The total number of tests.
TotalGoalCount int64 `json:"totalGoalCount,required"`
Project ProjectInferencePipelineNewResponseProject `json:"project,nullable"`
Workspace ProjectInferencePipelineNewResponseWorkspace `json:"workspace,nullable"`
// The workspace id.
WorkspaceID string `json:"workspaceId" format:"uuid"`
JSON projectInferencePipelineNewResponseJSON `json:"-"`
}
// projectInferencePipelineNewResponseJSON contains the JSON metadata for the
// struct [ProjectInferencePipelineNewResponse]
type projectInferencePipelineNewResponseJSON struct {
ID apijson.Field
DateCreated apijson.Field
DateLastEvaluated apijson.Field
DateLastSampleReceived apijson.Field
DateOfNextEvaluation apijson.Field
DateUpdated apijson.Field
Description apijson.Field
FailingGoalCount apijson.Field
Links apijson.Field
Name apijson.Field
PassingGoalCount apijson.Field
ProjectID apijson.Field
Status apijson.Field
StatusMessage apijson.Field
TotalGoalCount apijson.Field
Project apijson.Field
Workspace apijson.Field
WorkspaceID apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ProjectInferencePipelineNewResponse) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r projectInferencePipelineNewResponseJSON) RawJSON() string {
return r.raw
}
type ProjectInferencePipelineNewResponseLinks struct {
App string `json:"app,required"`
JSON projectInferencePipelineNewResponseLinksJSON `json:"-"`
}
// projectInferencePipelineNewResponseLinksJSON contains the JSON metadata for the
// struct [ProjectInferencePipelineNewResponseLinks]
type projectInferencePipelineNewResponseLinksJSON struct {
App apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ProjectInferencePipelineNewResponseLinks) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r projectInferencePipelineNewResponseLinksJSON) RawJSON() string {
return r.raw
}
// The status of test evaluation for the inference pipeline.
type ProjectInferencePipelineNewResponseStatus string
const (
ProjectInferencePipelineNewResponseStatusQueued ProjectInferencePipelineNewResponseStatus = "queued"
ProjectInferencePipelineNewResponseStatusRunning ProjectInferencePipelineNewResponseStatus = "running"
ProjectInferencePipelineNewResponseStatusPaused ProjectInferencePipelineNewResponseStatus = "paused"
ProjectInferencePipelineNewResponseStatusFailed ProjectInferencePipelineNewResponseStatus = "failed"
ProjectInferencePipelineNewResponseStatusCompleted ProjectInferencePipelineNewResponseStatus = "completed"
ProjectInferencePipelineNewResponseStatusUnknown ProjectInferencePipelineNewResponseStatus = "unknown"
)
func (r ProjectInferencePipelineNewResponseStatus) IsKnown() bool {
switch r {
case ProjectInferencePipelineNewResponseStatusQueued, ProjectInferencePipelineNewResponseStatusRunning, ProjectInferencePipelineNewResponseStatusPaused, ProjectInferencePipelineNewResponseStatusFailed, ProjectInferencePipelineNewResponseStatusCompleted, ProjectInferencePipelineNewResponseStatusUnknown:
return true
}
return false
}
type ProjectInferencePipelineNewResponseProject struct {
// The project id.
ID string `json:"id,required" format:"uuid"`
// The project creator id.
CreatorID string `json:"creatorId,required,nullable" format:"uuid"`
// The project creation date.
DateCreated time.Time `json:"dateCreated,required" format:"date-time"`
// The project last updated date.
DateUpdated time.Time `json:"dateUpdated,required" format:"date-time"`
// The number of tests in the development mode of the project.
DevelopmentGoalCount int64 `json:"developmentGoalCount,required"`
// The total number of tests in the project.
GoalCount int64 `json:"goalCount,required"`
// The number of inference pipelines in the project.
InferencePipelineCount int64 `json:"inferencePipelineCount,required"`
// Links to the project.
Links ProjectInferencePipelineNewResponseProjectLinks `json:"links,required"`
// The number of tests in the monitoring mode of the project.
MonitoringGoalCount int64 `json:"monitoringGoalCount,required"`
// The project name.
Name string `json:"name,required"`
// The source of the project.
Source ProjectInferencePipelineNewResponseProjectSource `json:"source,required,nullable"`
// The task type of the project.
TaskType ProjectInferencePipelineNewResponseProjectTaskType `json:"taskType,required"`
// The number of versions (commits) in the project.
VersionCount int64 `json:"versionCount,required"`
// The workspace id.
WorkspaceID string `json:"workspaceId,required,nullable" format:"uuid"`
// The project description.
Description string `json:"description,nullable"`
GitRepo ProjectInferencePipelineNewResponseProjectGitRepo `json:"gitRepo,nullable"`
JSON projectInferencePipelineNewResponseProjectJSON `json:"-"`
}
// projectInferencePipelineNewResponseProjectJSON contains the JSON metadata for
// the struct [ProjectInferencePipelineNewResponseProject]
type projectInferencePipelineNewResponseProjectJSON struct {
ID apijson.Field
CreatorID apijson.Field
DateCreated apijson.Field
DateUpdated apijson.Field
DevelopmentGoalCount apijson.Field
GoalCount apijson.Field
InferencePipelineCount apijson.Field
Links apijson.Field
MonitoringGoalCount apijson.Field
Name apijson.Field
Source apijson.Field
TaskType apijson.Field
VersionCount apijson.Field
WorkspaceID apijson.Field
Description apijson.Field
GitRepo apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ProjectInferencePipelineNewResponseProject) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r projectInferencePipelineNewResponseProjectJSON) RawJSON() string {
return r.raw
}
// Links to the project.
type ProjectInferencePipelineNewResponseProjectLinks struct {
App string `json:"app,required"`
JSON projectInferencePipelineNewResponseProjectLinksJSON `json:"-"`
}
// projectInferencePipelineNewResponseProjectLinksJSON contains the JSON metadata
// for the struct [ProjectInferencePipelineNewResponseProjectLinks]
type projectInferencePipelineNewResponseProjectLinksJSON struct {
App apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ProjectInferencePipelineNewResponseProjectLinks) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r projectInferencePipelineNewResponseProjectLinksJSON) RawJSON() string {
return r.raw
}
// The source of the project.
type ProjectInferencePipelineNewResponseProjectSource string
const (
ProjectInferencePipelineNewResponseProjectSourceWeb ProjectInferencePipelineNewResponseProjectSource = "web"
ProjectInferencePipelineNewResponseProjectSourceAPI ProjectInferencePipelineNewResponseProjectSource = "api"
ProjectInferencePipelineNewResponseProjectSourceNull ProjectInferencePipelineNewResponseProjectSource = "null"
)
func (r ProjectInferencePipelineNewResponseProjectSource) IsKnown() bool {
switch r {
case ProjectInferencePipelineNewResponseProjectSourceWeb, ProjectInferencePipelineNewResponseProjectSourceAPI, ProjectInferencePipelineNewResponseProjectSourceNull:
return true
}
return false
}
// The task type of the project.
type ProjectInferencePipelineNewResponseProjectTaskType string
const (
ProjectInferencePipelineNewResponseProjectTaskTypeLlmBase ProjectInferencePipelineNewResponseProjectTaskType = "llm-base"
ProjectInferencePipelineNewResponseProjectTaskTypeTabularClassification ProjectInferencePipelineNewResponseProjectTaskType = "tabular-classification"
ProjectInferencePipelineNewResponseProjectTaskTypeTabularRegression ProjectInferencePipelineNewResponseProjectTaskType = "tabular-regression"
ProjectInferencePipelineNewResponseProjectTaskTypeTextClassification ProjectInferencePipelineNewResponseProjectTaskType = "text-classification"
)
func (r ProjectInferencePipelineNewResponseProjectTaskType) IsKnown() bool {
switch r {
case ProjectInferencePipelineNewResponseProjectTaskTypeLlmBase, ProjectInferencePipelineNewResponseProjectTaskTypeTabularClassification, ProjectInferencePipelineNewResponseProjectTaskTypeTabularRegression, ProjectInferencePipelineNewResponseProjectTaskTypeTextClassification:
return true
}
return false
}
type ProjectInferencePipelineNewResponseProjectGitRepo struct {
ID string `json:"id,required" format:"uuid"`
DateConnected time.Time `json:"dateConnected,required" format:"date-time"`
DateUpdated time.Time `json:"dateUpdated,required" format:"date-time"`
GitAccountID string `json:"gitAccountId,required" format:"uuid"`
GitID int64 `json:"gitId,required"`
Name string `json:"name,required"`
Private bool `json:"private,required"`
ProjectID string `json:"projectId,required" format:"uuid"`
Slug string `json:"slug,required"`
URL string `json:"url,required" format:"url"`
Branch string `json:"branch"`
RootDir string `json:"rootDir"`
JSON projectInferencePipelineNewResponseProjectGitRepoJSON `json:"-"`
}
// projectInferencePipelineNewResponseProjectGitRepoJSON contains the JSON metadata
// for the struct [ProjectInferencePipelineNewResponseProjectGitRepo]
type projectInferencePipelineNewResponseProjectGitRepoJSON struct {
ID apijson.Field
DateConnected apijson.Field
DateUpdated apijson.Field
GitAccountID apijson.Field
GitID apijson.Field
Name apijson.Field
Private apijson.Field
ProjectID apijson.Field
Slug apijson.Field
URL apijson.Field
Branch apijson.Field
RootDir apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ProjectInferencePipelineNewResponseProjectGitRepo) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r projectInferencePipelineNewResponseProjectGitRepoJSON) RawJSON() string {
return r.raw
}
type ProjectInferencePipelineNewResponseWorkspace struct {
ID string `json:"id,required" format:"uuid"`
CreatorID string `json:"creatorId,required,nullable" format:"uuid"`
DateCreated time.Time `json:"dateCreated,required" format:"date-time"`
DateUpdated time.Time `json:"dateUpdated,required" format:"date-time"`
InviteCount int64 `json:"inviteCount,required"`
MemberCount int64 `json:"memberCount,required"`
Name string `json:"name,required"`
PeriodEndDate time.Time `json:"periodEndDate,required,nullable" format:"date-time"`
PeriodStartDate time.Time `json:"periodStartDate,required,nullable" format:"date-time"`
ProjectCount int64 `json:"projectCount,required"`
Slug string `json:"slug,required"`
Status ProjectInferencePipelineNewResponseWorkspaceStatus `json:"status,required"`
MonthlyUsage []ProjectInferencePipelineNewResponseWorkspaceMonthlyUsage `json:"monthlyUsage"`
SAMLOnlyAccess bool `json:"samlOnlyAccess"`
WildcardDomains []string `json:"wildcardDomains"`
JSON projectInferencePipelineNewResponseWorkspaceJSON `json:"-"`
}
// projectInferencePipelineNewResponseWorkspaceJSON contains the JSON metadata for
// the struct [ProjectInferencePipelineNewResponseWorkspace]
type projectInferencePipelineNewResponseWorkspaceJSON struct {
ID apijson.Field
CreatorID apijson.Field
DateCreated apijson.Field
DateUpdated apijson.Field
InviteCount apijson.Field
MemberCount apijson.Field
Name apijson.Field
PeriodEndDate apijson.Field
PeriodStartDate apijson.Field
ProjectCount apijson.Field
Slug apijson.Field
Status apijson.Field
MonthlyUsage apijson.Field
SAMLOnlyAccess apijson.Field
WildcardDomains apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ProjectInferencePipelineNewResponseWorkspace) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r projectInferencePipelineNewResponseWorkspaceJSON) RawJSON() string {
return r.raw
}
type ProjectInferencePipelineNewResponseWorkspaceStatus string
const (
ProjectInferencePipelineNewResponseWorkspaceStatusActive ProjectInferencePipelineNewResponseWorkspaceStatus = "active"
ProjectInferencePipelineNewResponseWorkspaceStatusPastDue ProjectInferencePipelineNewResponseWorkspaceStatus = "past_due"
ProjectInferencePipelineNewResponseWorkspaceStatusUnpaid ProjectInferencePipelineNewResponseWorkspaceStatus = "unpaid"
ProjectInferencePipelineNewResponseWorkspaceStatusCanceled ProjectInferencePipelineNewResponseWorkspaceStatus = "canceled"
ProjectInferencePipelineNewResponseWorkspaceStatusIncomplete ProjectInferencePipelineNewResponseWorkspaceStatus = "incomplete"
ProjectInferencePipelineNewResponseWorkspaceStatusIncompleteExpired ProjectInferencePipelineNewResponseWorkspaceStatus = "incomplete_expired"
ProjectInferencePipelineNewResponseWorkspaceStatusTrialing ProjectInferencePipelineNewResponseWorkspaceStatus = "trialing"
ProjectInferencePipelineNewResponseWorkspaceStatusPaused ProjectInferencePipelineNewResponseWorkspaceStatus = "paused"
)
func (r ProjectInferencePipelineNewResponseWorkspaceStatus) IsKnown() bool {
switch r {
case ProjectInferencePipelineNewResponseWorkspaceStatusActive, ProjectInferencePipelineNewResponseWorkspaceStatusPastDue, ProjectInferencePipelineNewResponseWorkspaceStatusUnpaid, ProjectInferencePipelineNewResponseWorkspaceStatusCanceled, ProjectInferencePipelineNewResponseWorkspaceStatusIncomplete, ProjectInferencePipelineNewResponseWorkspaceStatusIncompleteExpired, ProjectInferencePipelineNewResponseWorkspaceStatusTrialing, ProjectInferencePipelineNewResponseWorkspaceStatusPaused:
return true
}
return false
}
type ProjectInferencePipelineNewResponseWorkspaceMonthlyUsage struct {
ExecutionTimeMs int64 `json:"executionTimeMs,nullable"`
MonthYear time.Time `json:"monthYear" format:"date"`
PredictionCount int64 `json:"predictionCount"`
JSON projectInferencePipelineNewResponseWorkspaceMonthlyUsageJSON `json:"-"`
}
// projectInferencePipelineNewResponseWorkspaceMonthlyUsageJSON contains the JSON
// metadata for the struct
// [ProjectInferencePipelineNewResponseWorkspaceMonthlyUsage]
type projectInferencePipelineNewResponseWorkspaceMonthlyUsageJSON struct {
ExecutionTimeMs apijson.Field
MonthYear apijson.Field
PredictionCount apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ProjectInferencePipelineNewResponseWorkspaceMonthlyUsage) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r projectInferencePipelineNewResponseWorkspaceMonthlyUsageJSON) RawJSON() string {
return r.raw
}
type ProjectInferencePipelineListResponse struct {
Items []ProjectInferencePipelineListResponseItem `json:"items,required"`
JSON projectInferencePipelineListResponseJSON `json:"-"`
}
// projectInferencePipelineListResponseJSON contains the JSON metadata for the
// struct [ProjectInferencePipelineListResponse]
type projectInferencePipelineListResponseJSON struct {
Items apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ProjectInferencePipelineListResponse) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r projectInferencePipelineListResponseJSON) RawJSON() string {
return r.raw
}
type ProjectInferencePipelineListResponseItem struct {
// The inference pipeline id.
ID string `json:"id,required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated,required" format:"date-time"`
// The last test evaluation date.
DateLastEvaluated time.Time `json:"dateLastEvaluated,required,nullable" format:"date-time"`
// The last data sample received date.
DateLastSampleReceived time.Time `json:"dateLastSampleReceived,required,nullable" format:"date-time"`
// The next test evaluation date.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation,required,nullable" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated,required" format:"date-time"`
// The inference pipeline description.
Description string `json:"description,required,nullable"`
// The number of tests failing.
FailingGoalCount int64 `json:"failingGoalCount,required"`
Links ProjectInferencePipelineListResponseItemsLinks `json:"links,required"`
// The inference pipeline name.
Name string `json:"name,required"`
// The number of tests passing.
PassingGoalCount int64 `json:"passingGoalCount,required"`
// The project id.
ProjectID string `json:"projectId,required" format:"uuid"`
// The status of test evaluation for the inference pipeline.
Status ProjectInferencePipelineListResponseItemsStatus `json:"status,required"`
// The status message of test evaluation for the inference pipeline.
StatusMessage string `json:"statusMessage,required,nullable"`
// The total number of tests.
TotalGoalCount int64 `json:"totalGoalCount,required"`
Project ProjectInferencePipelineListResponseItemsProject `json:"project,nullable"`
Workspace ProjectInferencePipelineListResponseItemsWorkspace `json:"workspace,nullable"`
// The workspace id.
WorkspaceID string `json:"workspaceId" format:"uuid"`
JSON projectInferencePipelineListResponseItemJSON `json:"-"`
}
// projectInferencePipelineListResponseItemJSON contains the JSON metadata for the
// struct [ProjectInferencePipelineListResponseItem]
type projectInferencePipelineListResponseItemJSON struct {
ID apijson.Field
DateCreated apijson.Field
DateLastEvaluated apijson.Field
DateLastSampleReceived apijson.Field
DateOfNextEvaluation apijson.Field
DateUpdated apijson.Field
Description apijson.Field
FailingGoalCount apijson.Field
Links apijson.Field
Name apijson.Field
PassingGoalCount apijson.Field
ProjectID apijson.Field
Status apijson.Field
StatusMessage apijson.Field
TotalGoalCount apijson.Field
Project apijson.Field
Workspace apijson.Field
WorkspaceID apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ProjectInferencePipelineListResponseItem) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r projectInferencePipelineListResponseItemJSON) RawJSON() string {
return r.raw
}
type ProjectInferencePipelineListResponseItemsLinks struct {
App string `json:"app,required"`
JSON projectInferencePipelineListResponseItemsLinksJSON `json:"-"`
}
// projectInferencePipelineListResponseItemsLinksJSON contains the JSON metadata
// for the struct [ProjectInferencePipelineListResponseItemsLinks]
type projectInferencePipelineListResponseItemsLinksJSON struct {
App apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ProjectInferencePipelineListResponseItemsLinks) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r projectInferencePipelineListResponseItemsLinksJSON) RawJSON() string {
return r.raw
}
// The status of test evaluation for the inference pipeline.
type ProjectInferencePipelineListResponseItemsStatus string
const (
ProjectInferencePipelineListResponseItemsStatusQueued ProjectInferencePipelineListResponseItemsStatus = "queued"
ProjectInferencePipelineListResponseItemsStatusRunning ProjectInferencePipelineListResponseItemsStatus = "running"
ProjectInferencePipelineListResponseItemsStatusPaused ProjectInferencePipelineListResponseItemsStatus = "paused"
ProjectInferencePipelineListResponseItemsStatusFailed ProjectInferencePipelineListResponseItemsStatus = "failed"
ProjectInferencePipelineListResponseItemsStatusCompleted ProjectInferencePipelineListResponseItemsStatus = "completed"
ProjectInferencePipelineListResponseItemsStatusUnknown ProjectInferencePipelineListResponseItemsStatus = "unknown"
)
func (r ProjectInferencePipelineListResponseItemsStatus) IsKnown() bool {
switch r {
case ProjectInferencePipelineListResponseItemsStatusQueued, ProjectInferencePipelineListResponseItemsStatusRunning, ProjectInferencePipelineListResponseItemsStatusPaused, ProjectInferencePipelineListResponseItemsStatusFailed, ProjectInferencePipelineListResponseItemsStatusCompleted, ProjectInferencePipelineListResponseItemsStatusUnknown:
return true
}
return false
}
type ProjectInferencePipelineListResponseItemsProject struct {
// The project id.
ID string `json:"id,required" format:"uuid"`
// The project creator id.
CreatorID string `json:"creatorId,required,nullable" format:"uuid"`
// The project creation date.
DateCreated time.Time `json:"dateCreated,required" format:"date-time"`
// The project last updated date.
DateUpdated time.Time `json:"dateUpdated,required" format:"date-time"`
// The number of tests in the development mode of the project.
DevelopmentGoalCount int64 `json:"developmentGoalCount,required"`
// The total number of tests in the project.
GoalCount int64 `json:"goalCount,required"`
// The number of inference pipelines in the project.
InferencePipelineCount int64 `json:"inferencePipelineCount,required"`
// Links to the project.
Links ProjectInferencePipelineListResponseItemsProjectLinks `json:"links,required"`
// The number of tests in the monitoring mode of the project.
MonitoringGoalCount int64 `json:"monitoringGoalCount,required"`
// The project name.
Name string `json:"name,required"`
// The source of the project.
Source ProjectInferencePipelineListResponseItemsProjectSource `json:"source,required,nullable"`
// The task type of the project.
TaskType ProjectInferencePipelineListResponseItemsProjectTaskType `json:"taskType,required"`
// The number of versions (commits) in the project.
VersionCount int64 `json:"versionCount,required"`
// The workspace id.
WorkspaceID string `json:"workspaceId,required,nullable" format:"uuid"`
// The project description.
Description string `json:"description,nullable"`
GitRepo ProjectInferencePipelineListResponseItemsProjectGitRepo `json:"gitRepo,nullable"`
JSON projectInferencePipelineListResponseItemsProjectJSON `json:"-"`
}
// projectInferencePipelineListResponseItemsProjectJSON contains the JSON metadata
// for the struct [ProjectInferencePipelineListResponseItemsProject]
type projectInferencePipelineListResponseItemsProjectJSON struct {
ID apijson.Field
CreatorID apijson.Field
DateCreated apijson.Field
DateUpdated apijson.Field
DevelopmentGoalCount apijson.Field
GoalCount apijson.Field
InferencePipelineCount apijson.Field
Links apijson.Field
MonitoringGoalCount apijson.Field
Name apijson.Field
Source apijson.Field
TaskType apijson.Field
VersionCount apijson.Field
WorkspaceID apijson.Field
Description apijson.Field
GitRepo apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ProjectInferencePipelineListResponseItemsProject) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r projectInferencePipelineListResponseItemsProjectJSON) RawJSON() string {
return r.raw
}
// Links to the project.
type ProjectInferencePipelineListResponseItemsProjectLinks struct {
App string `json:"app,required"`
JSON projectInferencePipelineListResponseItemsProjectLinksJSON `json:"-"`
}
// projectInferencePipelineListResponseItemsProjectLinksJSON contains the JSON
// metadata for the struct [ProjectInferencePipelineListResponseItemsProjectLinks]
type projectInferencePipelineListResponseItemsProjectLinksJSON struct {
App apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ProjectInferencePipelineListResponseItemsProjectLinks) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r projectInferencePipelineListResponseItemsProjectLinksJSON) RawJSON() string {
return r.raw
}
// The source of the project.
type ProjectInferencePipelineListResponseItemsProjectSource string
const (
ProjectInferencePipelineListResponseItemsProjectSourceWeb ProjectInferencePipelineListResponseItemsProjectSource = "web"
ProjectInferencePipelineListResponseItemsProjectSourceAPI ProjectInferencePipelineListResponseItemsProjectSource = "api"
ProjectInferencePipelineListResponseItemsProjectSourceNull ProjectInferencePipelineListResponseItemsProjectSource = "null"
)
func (r ProjectInferencePipelineListResponseItemsProjectSource) IsKnown() bool {
switch r {
case ProjectInferencePipelineListResponseItemsProjectSourceWeb, ProjectInferencePipelineListResponseItemsProjectSourceAPI, ProjectInferencePipelineListResponseItemsProjectSourceNull:
return true
}
return false
}
// The task type of the project.
type ProjectInferencePipelineListResponseItemsProjectTaskType string
const (
ProjectInferencePipelineListResponseItemsProjectTaskTypeLlmBase ProjectInferencePipelineListResponseItemsProjectTaskType = "llm-base"
ProjectInferencePipelineListResponseItemsProjectTaskTypeTabularClassification ProjectInferencePipelineListResponseItemsProjectTaskType = "tabular-classification"
ProjectInferencePipelineListResponseItemsProjectTaskTypeTabularRegression ProjectInferencePipelineListResponseItemsProjectTaskType = "tabular-regression"
ProjectInferencePipelineListResponseItemsProjectTaskTypeTextClassification ProjectInferencePipelineListResponseItemsProjectTaskType = "text-classification"
)
func (r ProjectInferencePipelineListResponseItemsProjectTaskType) IsKnown() bool {
switch r {
case ProjectInferencePipelineListResponseItemsProjectTaskTypeLlmBase, ProjectInferencePipelineListResponseItemsProjectTaskTypeTabularClassification, ProjectInferencePipelineListResponseItemsProjectTaskTypeTabularRegression, ProjectInferencePipelineListResponseItemsProjectTaskTypeTextClassification:
return true
}
return false
}
type ProjectInferencePipelineListResponseItemsProjectGitRepo struct {
ID string `json:"id,required" format:"uuid"`
DateConnected time.Time `json:"dateConnected,required" format:"date-time"`
DateUpdated time.Time `json:"dateUpdated,required" format:"date-time"`
GitAccountID string `json:"gitAccountId,required" format:"uuid"`
GitID int64 `json:"gitId,required"`
Name string `json:"name,required"`
Private bool `json:"private,required"`
ProjectID string `json:"projectId,required" format:"uuid"`
Slug string `json:"slug,required"`
URL string `json:"url,required" format:"url"`
Branch string `json:"branch"`
RootDir string `json:"rootDir"`
JSON projectInferencePipelineListResponseItemsProjectGitRepoJSON `json:"-"`
}
// projectInferencePipelineListResponseItemsProjectGitRepoJSON contains the JSON
// metadata for the struct
// [ProjectInferencePipelineListResponseItemsProjectGitRepo]
type projectInferencePipelineListResponseItemsProjectGitRepoJSON struct {
ID apijson.Field
DateConnected apijson.Field
DateUpdated apijson.Field
GitAccountID apijson.Field
GitID apijson.Field
Name apijson.Field
Private apijson.Field
ProjectID apijson.Field
Slug apijson.Field
URL apijson.Field
Branch apijson.Field
RootDir apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ProjectInferencePipelineListResponseItemsProjectGitRepo) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r projectInferencePipelineListResponseItemsProjectGitRepoJSON) RawJSON() string {
return r.raw
}
type ProjectInferencePipelineListResponseItemsWorkspace struct {
ID string `json:"id,required" format:"uuid"`
CreatorID string `json:"creatorId,required,nullable" format:"uuid"`
DateCreated time.Time `json:"dateCreated,required" format:"date-time"`
DateUpdated time.Time `json:"dateUpdated,required" format:"date-time"`
InviteCount int64 `json:"inviteCount,required"`
MemberCount int64 `json:"memberCount,required"`
Name string `json:"name,required"`
PeriodEndDate time.Time `json:"periodEndDate,required,nullable" format:"date-time"`
PeriodStartDate time.Time `json:"periodStartDate,required,nullable" format:"date-time"`
ProjectCount int64 `json:"projectCount,required"`
Slug string `json:"slug,required"`
Status ProjectInferencePipelineListResponseItemsWorkspaceStatus `json:"status,required"`
MonthlyUsage []ProjectInferencePipelineListResponseItemsWorkspaceMonthlyUsage `json:"monthlyUsage"`
SAMLOnlyAccess bool `json:"samlOnlyAccess"`
WildcardDomains []string `json:"wildcardDomains"`
JSON projectInferencePipelineListResponseItemsWorkspaceJSON `json:"-"`
}
// projectInferencePipelineListResponseItemsWorkspaceJSON contains the JSON
// metadata for the struct [ProjectInferencePipelineListResponseItemsWorkspace]
type projectInferencePipelineListResponseItemsWorkspaceJSON struct {
ID apijson.Field
CreatorID apijson.Field
DateCreated apijson.Field
DateUpdated apijson.Field
InviteCount apijson.Field
MemberCount apijson.Field
Name apijson.Field
PeriodEndDate apijson.Field
PeriodStartDate apijson.Field
ProjectCount apijson.Field
Slug apijson.Field
Status apijson.Field
MonthlyUsage apijson.Field
SAMLOnlyAccess apijson.Field
WildcardDomains apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ProjectInferencePipelineListResponseItemsWorkspace) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r projectInferencePipelineListResponseItemsWorkspaceJSON) RawJSON() string {
return r.raw
}
type ProjectInferencePipelineListResponseItemsWorkspaceStatus string
const (
ProjectInferencePipelineListResponseItemsWorkspaceStatusActive ProjectInferencePipelineListResponseItemsWorkspaceStatus = "active"
ProjectInferencePipelineListResponseItemsWorkspaceStatusPastDue ProjectInferencePipelineListResponseItemsWorkspaceStatus = "past_due"
ProjectInferencePipelineListResponseItemsWorkspaceStatusUnpaid ProjectInferencePipelineListResponseItemsWorkspaceStatus = "unpaid"
ProjectInferencePipelineListResponseItemsWorkspaceStatusCanceled ProjectInferencePipelineListResponseItemsWorkspaceStatus = "canceled"
ProjectInferencePipelineListResponseItemsWorkspaceStatusIncomplete ProjectInferencePipelineListResponseItemsWorkspaceStatus = "incomplete"
ProjectInferencePipelineListResponseItemsWorkspaceStatusIncompleteExpired ProjectInferencePipelineListResponseItemsWorkspaceStatus = "incomplete_expired"
ProjectInferencePipelineListResponseItemsWorkspaceStatusTrialing ProjectInferencePipelineListResponseItemsWorkspaceStatus = "trialing"
ProjectInferencePipelineListResponseItemsWorkspaceStatusPaused ProjectInferencePipelineListResponseItemsWorkspaceStatus = "paused"
)
func (r ProjectInferencePipelineListResponseItemsWorkspaceStatus) IsKnown() bool {
switch r {
case ProjectInferencePipelineListResponseItemsWorkspaceStatusActive, ProjectInferencePipelineListResponseItemsWorkspaceStatusPastDue, ProjectInferencePipelineListResponseItemsWorkspaceStatusUnpaid, ProjectInferencePipelineListResponseItemsWorkspaceStatusCanceled, ProjectInferencePipelineListResponseItemsWorkspaceStatusIncomplete, ProjectInferencePipelineListResponseItemsWorkspaceStatusIncompleteExpired, ProjectInferencePipelineListResponseItemsWorkspaceStatusTrialing, ProjectInferencePipelineListResponseItemsWorkspaceStatusPaused:
return true
}
return false
}
type ProjectInferencePipelineListResponseItemsWorkspaceMonthlyUsage struct {
ExecutionTimeMs int64 `json:"executionTimeMs,nullable"`
MonthYear time.Time `json:"monthYear" format:"date"`
PredictionCount int64 `json:"predictionCount"`
JSON projectInferencePipelineListResponseItemsWorkspaceMonthlyUsageJSON `json:"-"`
}
// projectInferencePipelineListResponseItemsWorkspaceMonthlyUsageJSON contains the
// JSON metadata for the struct
// [ProjectInferencePipelineListResponseItemsWorkspaceMonthlyUsage]
type projectInferencePipelineListResponseItemsWorkspaceMonthlyUsageJSON struct {
ExecutionTimeMs apijson.Field
MonthYear apijson.Field
PredictionCount apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ProjectInferencePipelineListResponseItemsWorkspaceMonthlyUsage) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r projectInferencePipelineListResponseItemsWorkspaceMonthlyUsageJSON) RawJSON() string {
return r.raw
}
type ProjectInferencePipelineNewParams struct {
// The inference pipeline description.
Description param.Field[string] `json:"description,required"`
// The inference pipeline name.
Name param.Field[string] `json:"name,required"`
Project param.Field[ProjectInferencePipelineNewParamsProject] `json:"project"`
Workspace param.Field[ProjectInferencePipelineNewParamsWorkspace] `json:"workspace"`
}
func (r ProjectInferencePipelineNewParams) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
type ProjectInferencePipelineNewParamsProject struct {
// The project name.
Name param.Field[string] `json:"name,required"`
// The task type of the project.
TaskType param.Field[ProjectInferencePipelineNewParamsProjectTaskType] `json:"taskType,required"`
// The project description.
Description param.Field[string] `json:"description"`
}
func (r ProjectInferencePipelineNewParamsProject) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
// Links to the project.
type ProjectInferencePipelineNewParamsProjectLinks struct {
App param.Field[string] `json:"app,required"`
}
func (r ProjectInferencePipelineNewParamsProjectLinks) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
// The source of the project.
type ProjectInferencePipelineNewParamsProjectSource string
const (
ProjectInferencePipelineNewParamsProjectSourceWeb ProjectInferencePipelineNewParamsProjectSource = "web"
ProjectInferencePipelineNewParamsProjectSourceAPI ProjectInferencePipelineNewParamsProjectSource = "api"
ProjectInferencePipelineNewParamsProjectSourceNull ProjectInferencePipelineNewParamsProjectSource = "null"
)
func (r ProjectInferencePipelineNewParamsProjectSource) IsKnown() bool {
switch r {
case ProjectInferencePipelineNewParamsProjectSourceWeb, ProjectInferencePipelineNewParamsProjectSourceAPI, ProjectInferencePipelineNewParamsProjectSourceNull:
return true
}
return false
}
// The task type of the project.
type ProjectInferencePipelineNewParamsProjectTaskType string
const (
ProjectInferencePipelineNewParamsProjectTaskTypeLlmBase ProjectInferencePipelineNewParamsProjectTaskType = "llm-base"
ProjectInferencePipelineNewParamsProjectTaskTypeTabularClassification ProjectInferencePipelineNewParamsProjectTaskType = "tabular-classification"
ProjectInferencePipelineNewParamsProjectTaskTypeTabularRegression ProjectInferencePipelineNewParamsProjectTaskType = "tabular-regression"
ProjectInferencePipelineNewParamsProjectTaskTypeTextClassification ProjectInferencePipelineNewParamsProjectTaskType = "text-classification"
)
func (r ProjectInferencePipelineNewParamsProjectTaskType) IsKnown() bool {
switch r {
case ProjectInferencePipelineNewParamsProjectTaskTypeLlmBase, ProjectInferencePipelineNewParamsProjectTaskTypeTabularClassification, ProjectInferencePipelineNewParamsProjectTaskTypeTabularRegression, ProjectInferencePipelineNewParamsProjectTaskTypeTextClassification:
return true
}
return false
}
type ProjectInferencePipelineNewParamsProjectGitRepo struct {
GitAccountID param.Field[string] `json:"gitAccountId,required" format:"uuid"`
GitID param.Field[int64] `json:"gitId,required"`
Branch param.Field[string] `json:"branch"`
RootDir param.Field[string] `json:"rootDir"`
}
func (r ProjectInferencePipelineNewParamsProjectGitRepo) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
type ProjectInferencePipelineNewParamsWorkspace struct {
Name param.Field[string] `json:"name,required"`
Slug param.Field[string] `json:"slug,required"`
InviteCode param.Field[string] `json:"inviteCode"`
SAMLOnlyAccess param.Field[bool] `json:"samlOnlyAccess"`
WildcardDomains param.Field[[]string] `json:"wildcardDomains"`
}
func (r ProjectInferencePipelineNewParamsWorkspace) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
type ProjectInferencePipelineNewParamsWorkspaceStatus string
const (
ProjectInferencePipelineNewParamsWorkspaceStatusActive ProjectInferencePipelineNewParamsWorkspaceStatus = "active"
ProjectInferencePipelineNewParamsWorkspaceStatusPastDue ProjectInferencePipelineNewParamsWorkspaceStatus = "past_due"
ProjectInferencePipelineNewParamsWorkspaceStatusUnpaid ProjectInferencePipelineNewParamsWorkspaceStatus = "unpaid"
ProjectInferencePipelineNewParamsWorkspaceStatusCanceled ProjectInferencePipelineNewParamsWorkspaceStatus = "canceled"
ProjectInferencePipelineNewParamsWorkspaceStatusIncomplete ProjectInferencePipelineNewParamsWorkspaceStatus = "incomplete"
ProjectInferencePipelineNewParamsWorkspaceStatusIncompleteExpired ProjectInferencePipelineNewParamsWorkspaceStatus = "incomplete_expired"
ProjectInferencePipelineNewParamsWorkspaceStatusTrialing ProjectInferencePipelineNewParamsWorkspaceStatus = "trialing"
ProjectInferencePipelineNewParamsWorkspaceStatusPaused ProjectInferencePipelineNewParamsWorkspaceStatus = "paused"
)
func (r ProjectInferencePipelineNewParamsWorkspaceStatus) IsKnown() bool {
switch r {
case ProjectInferencePipelineNewParamsWorkspaceStatusActive, ProjectInferencePipelineNewParamsWorkspaceStatusPastDue, ProjectInferencePipelineNewParamsWorkspaceStatusUnpaid, ProjectInferencePipelineNewParamsWorkspaceStatusCanceled, ProjectInferencePipelineNewParamsWorkspaceStatusIncomplete, ProjectInferencePipelineNewParamsWorkspaceStatusIncompleteExpired, ProjectInferencePipelineNewParamsWorkspaceStatusTrialing, ProjectInferencePipelineNewParamsWorkspaceStatusPaused:
return true
}
return false
}
type ProjectInferencePipelineNewParamsWorkspaceMonthlyUsage struct {
ExecutionTimeMs param.Field[int64] `json:"executionTimeMs"`
MonthYear param.Field[time.Time] `json:"monthYear" format:"date"`
PredictionCount param.Field[int64] `json:"predictionCount"`
}
func (r ProjectInferencePipelineNewParamsWorkspaceMonthlyUsage) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
type ProjectInferencePipelineListParams struct {
// Filter list of items by name.
Name param.Field[string] `query:"name"`
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
}
// URLQuery serializes [ProjectInferencePipelineListParams]'s query parameters as
// `url.Values`.
func (r ProjectInferencePipelineListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}