Debian Codegraph @

api/inference/v1beta1/inference_sdk.go

raw symbols SCIP
1 // This file was automatically generated. DO NOT EDIT.
2 // If you have any remark or suggestion do not hesitate to open an issue.
3
4 // Package inference provides methods and message types of the inference v1beta1 API.
5 package inferencescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/
6
7 import (
8 "bytesscip-go gomod github.com/golang/go/src go1.17 bytes/"
9 "encoding/jsonscip-go gomod github.com/golang/go/src go1.17 `encoding/json`/"
10 "fmtscip-go gomod github.com/golang/go/src go1.17 fmt/"
11 "netscip-go gomod github.com/golang/go/src go1.17 net/"
12 "net/httpscip-go gomod github.com/golang/go/src go1.17 `net/http`/"
13 "net/urlscip-go gomod github.com/golang/go/src go1.17 `net/url`/"
14 "stringsscip-go gomod github.com/golang/go/src go1.17 strings/"
15 "timescip-go gomod github.com/golang/go/src go1.17 time/"
16
17 "github.com/scaleway/scaleway-sdk-go/errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/"
18 "github.com/scaleway/scaleway-sdk-go/marshalerscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/marshaler`/"
19 "github.com/scaleway/scaleway-sdk-go/namegeneratorscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/namegenerator`/"
20 "github.com/scaleway/scaleway-sdk-go/parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/"
21 "github.com/scaleway/scaleway-sdk-go/scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/"
22 )
23
24 // always import dependencies
25 var (
26 _ fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Stringerscip-go gomod github.com/golang/go/src go1.17 fmt/Stringer#
27 _ jsonscip-go gomod github.com/golang/go/src go1.17 `encoding/json`/.Unmarshalerscip-go gomod github.com/golang/go/src go1.17 `encoding/json`/Unmarshaler#
28 _ urlscip-go gomod github.com/golang/go/src go1.17 `net/url`/.URLscip-go gomod github.com/golang/go/src go1.17 `net/url`/URL#
29 _ netscip-go gomod github.com/golang/go/src go1.17 net/.IPscip-go gomod github.com/golang/go/src go1.17 net/IP#
30 _ httpscip-go gomod github.com/golang/go/src go1.17 `net/http`/.Headerscip-go gomod github.com/golang/go/src go1.17 `net/http`/Header#
31 _ bytesscip-go gomod github.com/golang/go/src go1.17 bytes/.Readerscip-go gomod github.com/golang/go/src go1.17 bytes/Reader#
32 _ timescip-go gomod github.com/golang/go/src go1.17 time/.Timescip-go gomod github.com/golang/go/src go1.17 time/Time#
33 _ = stringsscip-go gomod github.com/golang/go/src go1.17 strings/.Joinscip-go gomod github.com/golang/go/src go1.17 strings/Join().
34
35 _ scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#
36 _ marshalerscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/marshaler`/.Durationscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/marshaler`/Duration#
37 _ scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Filescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/File#
38 _ = parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().
39 _ = namegeneratorscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/namegenerator`/.GetRandomNamescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/namegenerator`/GetRandomName().
40 )
41
42 type DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus# string
43
44 const (
45 DeploymentStatusUnknownStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatusUnknownStatus. = DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#("unknown_status")
46 DeploymentStatusCreatingscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatusCreating. = DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#("creating")
47 DeploymentStatusDeployingscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatusDeploying. = DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#("deploying")
48 DeploymentStatusReadyscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatusReady. = DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#("ready")
49 DeploymentStatusErrorscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatusError. = DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#("error")
50 DeploymentStatusDeletingscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatusDeleting. = DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#("deleting")
51 DeploymentStatusLockedscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatusLocked. = DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#("locked")
52 )
53
54 func (enum DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#) Stringscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#String().() string {
55 if enum == "" {
56 // return default value if empty
57 return "unknown_status"
58 }
59 return string(enum)
60 }
61
62 func (enum DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#) Valuesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#Values().() []DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus# {
63 return []DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#{
64 "unknown_status",
65 "creating",
66 "deploying",
67 "ready",
68 "error",
69 "deleting",
70 "locked",
71 }
72 }
73
74 func (enum DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#) MarshalJSONscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#MarshalJSON().() ([]byte, error) {
75 return []byte(fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.17 fmt/Sprintf().(`"%s"`, enum)), nil
76 }
77
78 func (enum *DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#) UnmarshalJSONscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#UnmarshalJSON().(data []byte) error {
79 tmp := ""
80
81 if err := jsonscip-go gomod github.com/golang/go/src go1.17 `encoding/json`/.Unmarshalscip-go gomod github.com/golang/go/src go1.17 `encoding/json`/Unmarshal().(data, &tmp); err != nil {
82 return err
83 }
84
85 *enum = DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#(DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#(tmp).Stringscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus#String().())
86 return nil
87 }
88
89 type ListDeploymentsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy# string
90
91 const (
92 ListDeploymentsRequestOrderByCreatedAtDescscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderByCreatedAtDesc. = ListDeploymentsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#("created_at_desc")
93 ListDeploymentsRequestOrderByCreatedAtAscscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderByCreatedAtAsc. = ListDeploymentsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#("created_at_asc")
94 ListDeploymentsRequestOrderByNameAscscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderByNameAsc. = ListDeploymentsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#("name_asc")
95 ListDeploymentsRequestOrderByNameDescscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderByNameDesc. = ListDeploymentsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#("name_desc")
96 )
97
98 func (enum ListDeploymentsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#) Stringscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#String().() string {
99 if enum == "" {
100 // return default value if empty
101 return "created_at_desc"
102 }
103 return string(enum)
104 }
105
106 func (enum ListDeploymentsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#) Valuesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#Values().() []ListDeploymentsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy# {
107 return []ListDeploymentsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#{
108 "created_at_desc",
109 "created_at_asc",
110 "name_asc",
111 "name_desc",
112 }
113 }
114
115 func (enum ListDeploymentsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#) MarshalJSONscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#MarshalJSON().() ([]byte, error) {
116 return []byte(fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.17 fmt/Sprintf().(`"%s"`, enum)), nil
117 }
118
119 func (enum *ListDeploymentsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#) UnmarshalJSONscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#UnmarshalJSON().(data []byte) error {
120 tmp := ""
121
122 if err := jsonscip-go gomod github.com/golang/go/src go1.17 `encoding/json`/.Unmarshalscip-go gomod github.com/golang/go/src go1.17 `encoding/json`/Unmarshal().(data, &tmp); err != nil {
123 return err
124 }
125
126 *enum = ListDeploymentsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#(ListDeploymentsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#(tmp).Stringscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy#String().())
127 return nil
128 }
129
130 type ListModelsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy# string
131
132 const (
133 ListModelsRequestOrderByDisplayRankAscscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderByDisplayRankAsc. = ListModelsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#("display_rank_asc")
134 ListModelsRequestOrderByCreatedAtAscscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderByCreatedAtAsc. = ListModelsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#("created_at_asc")
135 ListModelsRequestOrderByCreatedAtDescscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderByCreatedAtDesc. = ListModelsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#("created_at_desc")
136 ListModelsRequestOrderByNameAscscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderByNameAsc. = ListModelsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#("name_asc")
137 ListModelsRequestOrderByNameDescscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderByNameDesc. = ListModelsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#("name_desc")
138 )
139
140 func (enum ListModelsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#) Stringscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#String().() string {
141 if enum == "" {
142 // return default value if empty
143 return "display_rank_asc"
144 }
145 return string(enum)
146 }
147
148 func (enum ListModelsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#) Valuesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#Values().() []ListModelsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy# {
149 return []ListModelsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#{
150 "display_rank_asc",
151 "created_at_asc",
152 "created_at_desc",
153 "name_asc",
154 "name_desc",
155 }
156 }
157
158 func (enum ListModelsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#) MarshalJSONscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#MarshalJSON().() ([]byte, error) {
159 return []byte(fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.17 fmt/Sprintf().(`"%s"`, enum)), nil
160 }
161
162 func (enum *ListModelsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#) UnmarshalJSONscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#UnmarshalJSON().(data []byte) error {
163 tmp := ""
164
165 if err := jsonscip-go gomod github.com/golang/go/src go1.17 `encoding/json`/.Unmarshalscip-go gomod github.com/golang/go/src go1.17 `encoding/json`/Unmarshal().(data, &tmp); err != nil {
166 return err
167 }
168
169 *enum = ListModelsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#(ListModelsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#(tmp).Stringscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy#String().())
170 return nil
171 }
172
173 type NodeTypeStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock# string
174
175 const (
176 NodeTypeStockUnknownStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStockUnknownStock. = NodeTypeStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#("unknown_stock")
177 NodeTypeStockLowStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStockLowStock. = NodeTypeStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#("low_stock")
178 NodeTypeStockOutOfStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStockOutOfStock. = NodeTypeStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#("out_of_stock")
179 NodeTypeStockAvailablescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStockAvailable. = NodeTypeStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#("available")
180 )
181
182 func (enum NodeTypeStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#) Stringscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#String().() string {
183 if enum == "" {
184 // return default value if empty
185 return "unknown_stock"
186 }
187 return string(enum)
188 }
189
190 func (enum NodeTypeStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#) Valuesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#Values().() []NodeTypeStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock# {
191 return []NodeTypeStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#{
192 "unknown_stock",
193 "low_stock",
194 "out_of_stock",
195 "available",
196 }
197 }
198
199 func (enum NodeTypeStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#) MarshalJSONscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#MarshalJSON().() ([]byte, error) {
200 return []byte(fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.17 fmt/Sprintf().(`"%s"`, enum)), nil
201 }
202
203 func (enum *NodeTypeStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#) UnmarshalJSONscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#UnmarshalJSON().(data []byte) error {
204 tmp := ""
205
206 if err := jsonscip-go gomod github.com/golang/go/src go1.17 `encoding/json`/.Unmarshalscip-go gomod github.com/golang/go/src go1.17 `encoding/json`/Unmarshal().(data, &tmp); err != nil {
207 return err
208 }
209
210 *enum = NodeTypeStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#(NodeTypeStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#(tmp).Stringscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock#String().())
211 return nil
212 }
213
214 // EndpointPrivateNetworkDetails: endpoint private network details.
215 type EndpointPrivateNetworkDetailsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointPrivateNetworkDetails# struct {
216 // PrivateNetworkID: ID of the Private Network.
217 PrivateNetworkIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointPrivateNetworkDetails#PrivateNetworkID. string `json:"private_network_id"`
218 }
219
220 // EndpointPublicAccessDetails: endpoint public access details.
221 type EndpointPublicAccessDetailsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointPublicAccessDetails# struct {
222 }
223
224 // EndpointSpecPrivateNetwork: endpoint spec private network.
225 type EndpointSpecPrivateNetworkscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointSpecPrivateNetwork# struct {
226 // PrivateNetworkID: ID of the Private Network.
227 PrivateNetworkIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointSpecPrivateNetwork#PrivateNetworkID. string `json:"private_network_id"`
228 }
229
230 // EndpointSpecPublic: endpoint spec public.
231 type EndpointSpecPublicscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointSpecPublic# struct {
232 }
233
234 // Endpoint: endpoint.
235 type Endpointscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Endpoint# struct {
236 // ID: unique identifier.
237 IDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Endpoint#ID. string `json:"id"`
238
239 // URL: for private endpoints, the URL will be accessible only from the Private Network.
240 // In addition, private endpoints will expose a CA certificate that can be used to verify the server's identity.
241 // This CA certificate can be retrieved using the `GetDeploymentCertificate` API call.
242 URLscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Endpoint#URL. string `json:"url"`
243
244 // PublicAccess: defines whether the endpoint is public.
245 // Precisely one of PublicAccess, PrivateNetwork must be set.
246 PublicAccessscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Endpoint#PublicAccess. *EndpointPublicAccessDetailsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointPublicAccessDetails# `json:"public_access,omitempty"`
247
248 // PrivateNetwork: details of the Private Network.
249 // Precisely one of PublicAccess, PrivateNetwork must be set.
250 PrivateNetworkscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Endpoint#PrivateNetwork. *EndpointPrivateNetworkDetailsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointPrivateNetworkDetails# `json:"private_network,omitempty"`
251
252 // DisableAuth: defines whether the authentication is disabled.
253 DisableAuthscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Endpoint#DisableAuth. bool `json:"disable_auth"`
254 }
255
256 // ModelS3Model: model s3 model.
257 type ModelS3Modelscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ModelS3Model# struct {
258 S3URLscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ModelS3Model#S3URL. string `json:"s3_url"`
259
260 PythonDependenciesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ModelS3Model#PythonDependencies. map[string]string `json:"python_dependencies"`
261
262 NodeTypescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ModelS3Model#NodeType. *string `json:"node_type"`
263
264 TritonServerVersionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ModelS3Model#TritonServerVersion. *string `json:"triton_server_version"`
265 }
266
267 // ACLRuleRequest: acl rule request.
268 type ACLRuleRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ACLRuleRequest# struct {
269 // IP: it can be specified as a single IP address or a range of IP addresses in CIDR notation.
270 IPscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ACLRuleRequest#IP. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.IPNetscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/IPNet# `json:"ip"`
271
272 // Description: description of the ACL rule.
273 Descriptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ACLRuleRequest#Description. string `json:"description"`
274 }
275
276 // ACLRule: acl rule.
277 type ACLRulescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ACLRule# struct {
278 // ID: unique identifier.
279 IDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ACLRule#ID. string `json:"id"`
280
281 // IP: allowed IP address or CIDR range.
282 IPscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ACLRule#IP. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.IPNetscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/IPNet# `json:"ip"`
283
284 // Description: description of the ACL rule.
285 Descriptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ACLRule#Description. string `json:"description"`
286 }
287
288 // EndpointSpec: endpoint spec.
289 type EndpointSpecscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointSpec# struct {
290 // Public: set the endpoint as public.
291 // Precisely one of Public, PrivateNetwork must be set.
292 Publicscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointSpec#Public. *EndpointSpecPublicscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointSpecPublic# `json:"public,omitempty"`
293
294 // PrivateNetwork: private endpoints are only accessible from the Private Network.
295 // Precisely one of Public, PrivateNetwork must be set.
296 PrivateNetworkscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointSpec#PrivateNetwork. *EndpointSpecPrivateNetworkscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointSpecPrivateNetwork# `json:"private_network,omitempty"`
297
298 // DisableAuth: by default, deployments are protected by IAM authentication.
299 // When setting this field to true, the authentication will be disabled.
300 DisableAuthscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointSpec#DisableAuth. bool `json:"disable_auth"`
301 }
302
303 // Deployment: deployment.
304 type Deploymentscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment# struct {
305 // ID: unique identifier.
306 IDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#ID. string `json:"id"`
307
308 // Name: name of the deployment.
309 Namescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#Name. string `json:"name"`
310
311 // ProjectID: project ID.
312 ProjectIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#ProjectID. string `json:"project_id"`
313
314 // Status: status of the deployment.
315 // Default value: unknown_status
316 Statusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#Status. DeploymentStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeploymentStatus# `json:"status"`
317
318 // Tags: list of tags applied to the deployment.
319 Tagsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#Tags. []string `json:"tags"`
320
321 // NodeType: node type of the deployment.
322 NodeTypescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#NodeType. string `json:"node_type"`
323
324 // Endpoints: list of endpoints.
325 Endpointsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#Endpoints. []*Endpointscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Endpoint# `json:"endpoints"`
326
327 // Size: current size of the pool.
328 Sizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#Size. uint32 `json:"size"`
329
330 // MinSize: defines the minimum size of the pool.
331 MinSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#MinSize. uint32 `json:"min_size"`
332
333 // MaxSize: defines the maximum size of the pool.
334 MaxSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#MaxSize. uint32 `json:"max_size"`
335
336 // ErrorMessage: displays information if your deployment is in error state.
337 ErrorMessagescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#ErrorMessage. *string `json:"error_message"`
338
339 // ModelName: the inference model used for the deployment.
340 ModelNamescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#ModelName. string `json:"model_name"`
341
342 // ModelID: ID of the model used for the deployment.
343 ModelIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#ModelID. string `json:"model_id"`
344
345 // CreatedAt: creation date of the deployment.
346 CreatedAtscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#CreatedAt. *timescip-go gomod github.com/golang/go/src go1.17 time/.Timescip-go gomod github.com/golang/go/src go1.17 time/Time# `json:"created_at"`
347
348 // UpdatedAt: last modification date of the deployment.
349 UpdatedAtscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#UpdatedAt. *timescip-go gomod github.com/golang/go/src go1.17 time/.Timescip-go gomod github.com/golang/go/src go1.17 time/Time# `json:"updated_at"`
350
351 // Region: region of the deployment.
352 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"region"`
353 }
354
355 // Model: model.
356 type Modelscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model# struct {
357 // ID: unique identifier.
358 IDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#ID. string `json:"id"`
359
360 // Name: unique Name identifier.
361 Namescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#Name. string `json:"name"`
362
363 // ProjectID: project ID.
364 ProjectIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#ProjectID. string `json:"project_id"`
365
366 // Provider: name of the model provider.
367 Providerscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#Provider. string `json:"provider"`
368
369 // Tags: list of tags applied to the model.
370 Tagsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#Tags. []string `json:"tags"`
371
372 // Description: purpose of the model.
373 Descriptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#Description. string `json:"description"`
374
375 // HasEula: defines whether the model has an end user license agreement.
376 HasEulascip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#HasEula. bool `json:"has_eula"`
377
378 // CreatedAt: creation date of the model.
379 CreatedAtscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#CreatedAt. *timescip-go gomod github.com/golang/go/src go1.17 time/.Timescip-go gomod github.com/golang/go/src go1.17 time/Time# `json:"created_at"`
380
381 // UpdatedAt: last modification date of the model.
382 UpdatedAtscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#UpdatedAt. *timescip-go gomod github.com/golang/go/src go1.17 time/.Timescip-go gomod github.com/golang/go/src go1.17 time/Time# `json:"updated_at"`
383
384 // Region: region of the model.
385 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"region"`
386
387 // S3Model: object Storage URL pointing to the model source weight.
388 // Precisely one of S3Model must be set.
389 S3Modelscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#S3Model. *ModelS3Modelscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ModelS3Model# `json:"s3_model,omitempty"`
390
391 // IsPublic: defines whether the model is public or not.
392 IsPublicscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#IsPublic. bool `json:"is_public"`
393
394 // CompatibleNodeTypes: names of the node types compatible with the model.
395 CompatibleNodeTypesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#CompatibleNodeTypes. []string `json:"compatible_node_types"`
396
397 // QuantizationLevel: quantization level of the model.
398 QuantizationLevelscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#QuantizationLevel. string `json:"quantization_level"`
399 }
400
401 // NodeType: node type.
402 type NodeTypescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeType# struct {
403 // Name: name of the node type.
404 Namescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeType#Name. string `json:"name"`
405
406 // StockStatus: current stock status for the node type.
407 // Default value: unknown_stock
408 StockStatusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeType#StockStatus. NodeTypeStockscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeTypeStock# `json:"stock_status"`
409
410 // Description: current specs of the offer.
411 Descriptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeType#Description. string `json:"description"`
412
413 // Vcpus: number of virtual CPUs.
414 Vcpusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeType#Vcpus. uint32 `json:"vcpus"`
415
416 // Memory: quantity of RAM.
417 Memoryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeType#Memory. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Sizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Size# `json:"memory"`
418
419 // Vram: quantity of GPU RAM.
420 Vramscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeType#Vram. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Sizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Size# `json:"vram"`
421
422 // Disabled: the node type is currently disabled.
423 Disabledscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeType#Disabled. bool `json:"disabled"`
424
425 // Beta: the node type is currently in beta.
426 Betascip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeType#Beta. bool `json:"beta"`
427
428 // CreatedAt: creation date of the node type.
429 CreatedAtscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeType#CreatedAt. *timescip-go gomod github.com/golang/go/src go1.17 time/.Timescip-go gomod github.com/golang/go/src go1.17 time/Time# `json:"created_at"`
430
431 // UpdatedAt: last modification date of the node type.
432 UpdatedAtscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeType#UpdatedAt. *timescip-go gomod github.com/golang/go/src go1.17 time/.Timescip-go gomod github.com/golang/go/src go1.17 time/Time# `json:"updated_at"`
433
434 // Gpus: number of GPUs.
435 Gpusscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeType#Gpus. uint32 `json:"gpus"`
436
437 // Region: region of the node type.
438 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeType#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"region"`
439 }
440
441 // AddDeploymentACLRulesRequest: add deployment acl rules request.
442 type AddDeploymentACLRulesRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/AddDeploymentACLRulesRequest# struct {
443 // Region: region to target. If none is passed will use default region from the config.
444 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/AddDeploymentACLRulesRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
445
446 // DeploymentID: ID of the deployment to add ACL rules to.
447 DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/AddDeploymentACLRulesRequest#DeploymentID. string `json:"-"`
448
449 // ACLs: list of ACL rules to add.
450 ACLsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/AddDeploymentACLRulesRequest#ACLs. []*ACLRuleRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ACLRuleRequest# `json:"acls"`
451 }
452
453 // AddDeploymentACLRulesResponse: add deployment acl rules response.
454 type AddDeploymentACLRulesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/AddDeploymentACLRulesResponse# struct {
455 // Rules: list of ACL rules added.
456 Rulesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/AddDeploymentACLRulesResponse#Rules. []*ACLRulescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ACLRule# `json:"rules"`
457 }
458
459 // CreateDeploymentRequest: create deployment request.
460 type CreateDeploymentRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest# struct {
461 // Region: region to target. If none is passed will use default region from the config.
462 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
463
464 // Name: name of the deployment.
465 Namescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#Name. string `json:"name"`
466
467 // ProjectID: ID of the Project to create the deployment in.
468 ProjectIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#ProjectID. string `json:"project_id"`
469
470 // ModelName: name of the model to use.
471 ModelNamescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#ModelName. string `json:"model_name"`
472
473 // AcceptEula: if the model has an EULA, you must accept it before proceeding.
474 // The terms of the EULA can be retrieved using the `GetModelEula` API call.
475 AcceptEulascip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#AcceptEula. *bool `json:"accept_eula,omitempty"`
476
477 // NodeType: name of the node type to use.
478 NodeTypescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#NodeType. string `json:"node_type"`
479
480 // Tags: list of tags to apply to the deployment.
481 Tagsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#Tags. []string `json:"tags"`
482
483 // MinSize: defines the minimum size of the pool.
484 MinSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#MinSize. *uint32 `json:"min_size,omitempty"`
485
486 // MaxSize: defines the maximum size of the pool.
487 MaxSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#MaxSize. *uint32 `json:"max_size,omitempty"`
488
489 // Endpoints: list of endpoints to create.
490 Endpointsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#Endpoints. []*EndpointSpecscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointSpec# `json:"endpoints"`
491 }
492
493 // CreateEndpointRequest: create endpoint request.
494 type CreateEndpointRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateEndpointRequest# struct {
495 // Region: region to target. If none is passed will use default region from the config.
496 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateEndpointRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
497
498 // DeploymentID: ID of the deployment to create the endpoint for.
499 DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateEndpointRequest#DeploymentID. string `json:"deployment_id"`
500
501 // Endpoint: specification of the endpoint.
502 Endpointscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateEndpointRequest#Endpoint. *EndpointSpecscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/EndpointSpec# `json:"endpoint"`
503 }
504
505 // DeleteDeploymentACLRuleRequest: delete deployment acl rule request.
506 type DeleteDeploymentACLRuleRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentACLRuleRequest# struct {
507 // Region: region to target. If none is passed will use default region from the config.
508 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentACLRuleRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
509
510 // ACLID: ID of the ACL rule to delete.
511 ACLIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentACLRuleRequest#ACLID. string `json:"-"`
512 }
513
514 // DeleteDeploymentRequest: delete deployment request.
515 type DeleteDeploymentRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentRequest# struct {
516 // Region: region to target. If none is passed will use default region from the config.
517 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
518
519 // DeploymentID: ID of the deployment to delete.
520 DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentRequest#DeploymentID. string `json:"-"`
521 }
522
523 // DeleteEndpointRequest: delete endpoint request.
524 type DeleteEndpointRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteEndpointRequest# struct {
525 // Region: region to target. If none is passed will use default region from the config.
526 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteEndpointRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
527
528 // EndpointID: ID of the endpoint to delete.
529 EndpointIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteEndpointRequest#EndpointID. string `json:"-"`
530 }
531
532 // Eula: eula.
533 type Eulascip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Eula# struct {
534 // Content: content of the end user license agreement.
535 Contentscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Eula#Content. string `json:"content"`
536 }
537
538 // GetDeploymentCertificateRequest: get deployment certificate request.
539 type GetDeploymentCertificateRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentCertificateRequest# struct {
540 // Region: region to target. If none is passed will use default region from the config.
541 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentCertificateRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
542
543 DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentCertificateRequest#DeploymentID. string `json:"-"`
544 }
545
546 // GetDeploymentRequest: get deployment request.
547 type GetDeploymentRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentRequest# struct {
548 // Region: region to target. If none is passed will use default region from the config.
549 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
550
551 // DeploymentID: ID of the deployment to get.
552 DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentRequest#DeploymentID. string `json:"-"`
553 }
554
555 // GetModelEulaRequest: get model eula request.
556 type GetModelEulaRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelEulaRequest# struct {
557 // Region: region to target. If none is passed will use default region from the config.
558 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelEulaRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
559
560 ModelIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelEulaRequest#ModelID. string `json:"-"`
561 }
562
563 // GetModelRequest: get model request.
564 type GetModelRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelRequest# struct {
565 // Region: region to target. If none is passed will use default region from the config.
566 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
567
568 // ModelID: ID of the model to get.
569 ModelIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelRequest#ModelID. string `json:"-"`
570 }
571
572 // ListDeploymentACLRulesRequest: list deployment acl rules request.
573 type ListDeploymentACLRulesRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest# struct {
574 // Region: region to target. If none is passed will use default region from the config.
575 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
576
577 // DeploymentID: ID of the deployment to list ACL rules for.
578 DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#DeploymentID. string `json:"-"`
579
580 // Page: page number to return.
581 Pagescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#Page. *int32 `json:"-"`
582
583 // PageSize: maximum number of ACL rules to return per page.
584 PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#PageSize. *uint32 `json:"-"`
585 }
586
587 // ListDeploymentACLRulesResponse: list deployment acl rules response.
588 type ListDeploymentACLRulesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse# struct {
589 // Rules: list of ACL rules on the current page.
590 Rulesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#Rules. []*ACLRulescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ACLRule# `json:"rules"`
591
592 // TotalCount: total number of ACL rules.
593 TotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#TotalCount. uint64 `json:"total_count"`
594 }
595
596 // UnsafeGetTotalCount should not be used
597 // Internal usage only
598 func (r *ListDeploymentACLRulesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#) UnsafeGetTotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#UnsafeGetTotalCount().() uint64 {
599 return r.TotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#TotalCount.
600 }
601
602 // UnsafeAppend should not be used
603 // Internal usage only
604 func (r *ListDeploymentACLRulesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#) UnsafeAppendscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#UnsafeAppend().(res interface{}) (uint64, error) {
605 results, ok := res.(*ListDeploymentACLRulesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#)
606 if !ok {
607 return 0, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("%T type cannot be appended to type %T", res, r)
608 }
609
610 r.Rulesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#Rules. = append(r.Rulesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#Rules., results.Rulesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#Rules....)
611 r.TotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#TotalCount. += uint64(len(results.Rulesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#Rules.))
612 return uint64(len(results.Rulesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#Rules.)), nil
613 }
614
615 // ListDeploymentsRequest: list deployments request.
616 type ListDeploymentsRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest# struct {
617 // Region: region to target. If none is passed will use default region from the config.
618 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
619
620 // Page: page number to return.
621 Pagescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#Page. *int32 `json:"-"`
622
623 // PageSize: maximum number of deployments to return per page.
624 PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#PageSize. *uint32 `json:"-"`
625
626 // OrderBy: order in which to return results.
627 // Default value: created_at_desc
628 OrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#OrderBy. ListDeploymentsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequestOrderBy# `json:"-"`
629
630 // ProjectID: filter by Project ID.
631 ProjectIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#ProjectID. *string `json:"-"`
632
633 // OrganizationID: filter by Organization ID.
634 OrganizationIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#OrganizationID. *string `json:"-"`
635
636 // Name: filter by deployment name.
637 Namescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#Name. *string `json:"-"`
638
639 // Tags: filter by tags.
640 Tagsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#Tags. []string `json:"-"`
641 }
642
643 // ListDeploymentsResponse: list deployments response.
644 type ListDeploymentsResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse# struct {
645 // Deployments: list of deployments on the current page.
646 Deploymentsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#Deployments. []*Deploymentscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment# `json:"deployments"`
647
648 // TotalCount: total number of deployments.
649 TotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#TotalCount. uint64 `json:"total_count"`
650 }
651
652 // UnsafeGetTotalCount should not be used
653 // Internal usage only
654 func (r *ListDeploymentsResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#) UnsafeGetTotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#UnsafeGetTotalCount().() uint64 {
655 return r.TotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#TotalCount.
656 }
657
658 // UnsafeAppend should not be used
659 // Internal usage only
660 func (r *ListDeploymentsResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#) UnsafeAppendscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#UnsafeAppend().(res interface{}) (uint64, error) {
661 results, ok := res.(*ListDeploymentsResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#)
662 if !ok {
663 return 0, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("%T type cannot be appended to type %T", res, r)
664 }
665
666 r.Deploymentsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#Deployments. = append(r.Deploymentsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#Deployments., results.Deploymentsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#Deployments....)
667 r.TotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#TotalCount. += uint64(len(results.Deploymentsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#Deployments.))
668 return uint64(len(results.Deploymentsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#Deployments.)), nil
669 }
670
671 // ListModelsRequest: list models request.
672 type ListModelsRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest# struct {
673 // Region: region to target. If none is passed will use default region from the config.
674 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
675
676 // OrderBy: order in which to return results.
677 // Default value: display_rank_asc
678 OrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#OrderBy. ListModelsRequestOrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequestOrderBy# `json:"-"`
679
680 // Page: page number to return.
681 Pagescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#Page. *int32 `json:"-"`
682
683 // PageSize: maximum number of models to return per page.
684 PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#PageSize. *uint32 `json:"-"`
685
686 // ProjectID: filter by Project ID.
687 ProjectIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#ProjectID. *string `json:"-"`
688
689 // Name: filter by model name.
690 Namescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#Name. *string `json:"-"`
691
692 // Tags: filter by tags.
693 Tagsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#Tags. []string `json:"-"`
694 }
695
696 // ListModelsResponse: list models response.
697 type ListModelsResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse# struct {
698 // Models: list of models on the current page.
699 Modelsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#Models. []*Modelscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model# `json:"models"`
700
701 // TotalCount: total number of models.
702 TotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#TotalCount. uint64 `json:"total_count"`
703 }
704
705 // UnsafeGetTotalCount should not be used
706 // Internal usage only
707 func (r *ListModelsResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#) UnsafeGetTotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#UnsafeGetTotalCount().() uint64 {
708 return r.TotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#TotalCount.
709 }
710
711 // UnsafeAppend should not be used
712 // Internal usage only
713 func (r *ListModelsResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#) UnsafeAppendscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#UnsafeAppend().(res interface{}) (uint64, error) {
714 results, ok := res.(*ListModelsResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#)
715 if !ok {
716 return 0, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("%T type cannot be appended to type %T", res, r)
717 }
718
719 r.Modelsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#Models. = append(r.Modelsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#Models., results.Modelsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#Models....)
720 r.TotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#TotalCount. += uint64(len(results.Modelsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#Models.))
721 return uint64(len(results.Modelsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#Models.)), nil
722 }
723
724 // ListNodeTypesRequest: list node types request.
725 type ListNodeTypesRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest# struct {
726 // Region: region to target. If none is passed will use default region from the config.
727 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
728
729 // Page: page number to return.
730 Pagescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest#Page. *int32 `json:"-"`
731
732 // PageSize: maximum number of node types to return per page.
733 PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest#PageSize. *uint32 `json:"-"`
734
735 // IncludeDisabledTypes: include disabled node types in the response.
736 IncludeDisabledTypesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest#IncludeDisabledTypes. bool `json:"-"`
737 }
738
739 // ListNodeTypesResponse: list node types response.
740 type ListNodeTypesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse# struct {
741 // NodeTypes: list of node types.
742 NodeTypesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#NodeTypes. []*NodeTypescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NodeType# `json:"node_types"`
743
744 // TotalCount: total number of node types.
745 TotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#TotalCount. uint64 `json:"total_count"`
746 }
747
748 // UnsafeGetTotalCount should not be used
749 // Internal usage only
750 func (r *ListNodeTypesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#) UnsafeGetTotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#UnsafeGetTotalCount().() uint64 {
751 return r.TotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#TotalCount.
752 }
753
754 // UnsafeAppend should not be used
755 // Internal usage only
756 func (r *ListNodeTypesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#) UnsafeAppendscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#UnsafeAppend().(res interface{}) (uint64, error) {
757 results, ok := res.(*ListNodeTypesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#)
758 if !ok {
759 return 0, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("%T type cannot be appended to type %T", res, r)
760 }
761
762 r.NodeTypesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#NodeTypes. = append(r.NodeTypesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#NodeTypes., results.NodeTypesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#NodeTypes....)
763 r.TotalCountscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#TotalCount. += uint64(len(results.NodeTypesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#NodeTypes.))
764 return uint64(len(results.NodeTypesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#NodeTypes.)), nil
765 }
766
767 // SetDeploymentACLRulesRequest: set deployment acl rules request.
768 type SetDeploymentACLRulesRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/SetDeploymentACLRulesRequest# struct {
769 // Region: region to target. If none is passed will use default region from the config.
770 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/SetDeploymentACLRulesRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
771
772 // DeploymentID: ID of the deployment to set ACL rules for.
773 DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/SetDeploymentACLRulesRequest#DeploymentID. string `json:"-"`
774
775 // ACLs: all existing ACL rules will be replaced by the new ones.
776 ACLsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/SetDeploymentACLRulesRequest#ACLs. []*ACLRuleRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ACLRuleRequest# `json:"acls"`
777 }
778
779 // SetDeploymentACLRulesResponse: set deployment acl rules response.
780 type SetDeploymentACLRulesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/SetDeploymentACLRulesResponse# struct {
781 // Rules: list of ACL rules that were set.
782 Rulesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/SetDeploymentACLRulesResponse#Rules. []*ACLRulescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ACLRule# `json:"rules"`
783 }
784
785 // UpdateDeploymentRequest: update deployment request.
786 type UpdateDeploymentRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateDeploymentRequest# struct {
787 // Region: region to target. If none is passed will use default region from the config.
788 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateDeploymentRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
789
790 // DeploymentID: ID of the deployment to update.
791 DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateDeploymentRequest#DeploymentID. string `json:"-"`
792
793 // Name: name of the deployment.
794 Namescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateDeploymentRequest#Name. *string `json:"name,omitempty"`
795
796 // Tags: list of tags to apply to the deployment.
797 Tagsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateDeploymentRequest#Tags. *[]string `json:"tags,omitempty"`
798
799 // MinSize: defines the new minimum size of the pool.
800 MinSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateDeploymentRequest#MinSize. *uint32 `json:"min_size,omitempty"`
801
802 // MaxSize: defines the new maximum size of the pool.
803 MaxSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateDeploymentRequest#MaxSize. *uint32 `json:"max_size,omitempty"`
804 }
805
806 // UpdateEndpointRequest: update endpoint request.
807 type UpdateEndpointRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateEndpointRequest# struct {
808 // Region: region to target. If none is passed will use default region from the config.
809 Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateEndpointRequest#Region. scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# `json:"-"`
810
811 // EndpointID: ID of the endpoint to update.
812 EndpointIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateEndpointRequest#EndpointID. string `json:"-"`
813
814 // DisableAuth: by default, deployments are protected by IAM authentication.
815 // When setting this field to true, the authentication will be disabled.
816 DisableAuthscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateEndpointRequest#DisableAuth. *bool `json:"disable_auth,omitempty"`
817 }
818
819 // This API allows you to manage your Inference services.
820 type APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API# struct {
821 clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client. *scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#
822 }
823
824 // NewAPI returns a API object from a Scaleway client.
825 func NewAPIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/NewAPI().(client *scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#) *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API# {
826 return &APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#{
827 clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client.: client,
828 }
829 }
830 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) Regionsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#Regions().() []scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region# {
831 return []scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Region#{scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RegionFrParscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RegionFrPar.}
832 }
833
834 // ListDeployments: List all your inference deployments.
835 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) ListDeploymentsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#ListDeployments().(req *ListDeploymentsRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) (*ListDeploymentsResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#, error) {
836 var err error
837
838 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#Region. == "" {
839 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
840 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#Region. = defaultRegion
841 }
842
843 defaultPageSize, exist := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultPageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultPageSize().()
844 if (req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#PageSize. == nil || *req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#PageSize. == 0) && exist {
845 req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#PageSize. = &defaultPageSize
846 }
847
848 query := urlscip-go gomod github.com/golang/go/src go1.17 `net/url`/.Valuesscip-go gomod github.com/golang/go/src go1.17 `net/url`/Values#{}
849 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "page", req.Pagescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#Page.)
850 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "page_size", req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#PageSize.)
851 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "order_by", req.OrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#OrderBy.)
852 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "project_id", req.ProjectIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#ProjectID.)
853 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "organization_id", req.OrganizationIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#OrganizationID.)
854 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "name", req.Namescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#Name.)
855 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "tags", req.Tagsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#Tags.)
856
857 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#Region.) == "" {
858 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
859 }
860
861 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
862 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "GET",
863 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsRequest#Region.) + "/deployments",
864 Queryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Query.: query,
865 }
866
867 var resp ListDeploymentsResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentsResponse#
868
869 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, &resp, opts...)
870 if err != nil {
871 return nil, err
872 }
873 return &resp, nil
874 }
875
876 // GetDeployment: Get the deployment for the given ID.
877 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) GetDeploymentscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#GetDeployment().(req *GetDeploymentRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) (*Deploymentscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#, error) {
878 var err error
879
880 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentRequest#Region. == "" {
881 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
882 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentRequest#Region. = defaultRegion
883 }
884
885 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentRequest#Region.) == "" {
886 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
887 }
888
889 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentRequest#DeploymentID.) == "" {
890 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field DeploymentID cannot be empty in request")
891 }
892
893 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
894 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "GET",
895 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentRequest#Region.) + "/deployments/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentRequest#DeploymentID.) + "",
896 }
897
898 var resp Deploymentscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#
899
900 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, &resp, opts...)
901 if err != nil {
902 return nil, err
903 }
904 return &resp, nil
905 }
906
907 // CreateDeployment: Create a new inference deployment related to a specific model.
908 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) CreateDeploymentscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#CreateDeployment().(req *CreateDeploymentRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) (*Deploymentscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#, error) {
909 var err error
910
911 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#Region. == "" {
912 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
913 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#Region. = defaultRegion
914 }
915
916 if req.ProjectIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#ProjectID. == "" {
917 defaultProjectID, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultProjectIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultProjectID().()
918 req.ProjectIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#ProjectID. = defaultProjectID
919 }
920
921 if req.Namescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#Name. == "" {
922 req.Namescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#Name. = namegeneratorscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/namegenerator`/.GetRandomNamescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/namegenerator`/GetRandomName().("inference")
923 }
924
925 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#Region.) == "" {
926 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
927 }
928
929 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
930 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "POST",
931 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateDeploymentRequest#Region.) + "/deployments",
932 }
933
934 err = scwReq.SetBodyscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#SetBody().(req)
935 if err != nil {
936 return nil, err
937 }
938
939 var resp Deploymentscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#
940
941 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, &resp, opts...)
942 if err != nil {
943 return nil, err
944 }
945 return &resp, nil
946 }
947
948 // UpdateDeployment: Update an existing inference deployment.
949 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) UpdateDeploymentscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#UpdateDeployment().(req *UpdateDeploymentRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateDeploymentRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) (*Deploymentscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#, error) {
950 var err error
951
952 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateDeploymentRequest#Region. == "" {
953 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
954 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateDeploymentRequest#Region. = defaultRegion
955 }
956
957 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateDeploymentRequest#Region.) == "" {
958 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
959 }
960
961 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateDeploymentRequest#DeploymentID.) == "" {
962 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field DeploymentID cannot be empty in request")
963 }
964
965 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
966 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "PATCH",
967 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateDeploymentRequest#Region.) + "/deployments/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateDeploymentRequest#DeploymentID.) + "",
968 }
969
970 err = scwReq.SetBodyscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#SetBody().(req)
971 if err != nil {
972 return nil, err
973 }
974
975 var resp Deploymentscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#
976
977 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, &resp, opts...)
978 if err != nil {
979 return nil, err
980 }
981 return &resp, nil
982 }
983
984 // DeleteDeployment: Delete an existing inference deployment.
985 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) DeleteDeploymentscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#DeleteDeployment().(req *DeleteDeploymentRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) (*Deploymentscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#, error) {
986 var err error
987
988 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentRequest#Region. == "" {
989 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
990 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentRequest#Region. = defaultRegion
991 }
992
993 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentRequest#Region.) == "" {
994 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
995 }
996
997 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentRequest#DeploymentID.) == "" {
998 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field DeploymentID cannot be empty in request")
999 }
1000
1001 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
1002 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "DELETE",
1003 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentRequest#Region.) + "/deployments/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentRequest#DeploymentID.) + "",
1004 }
1005
1006 var resp Deploymentscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Deployment#
1007
1008 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, &resp, opts...)
1009 if err != nil {
1010 return nil, err
1011 }
1012 return &resp, nil
1013 }
1014
1015 // GetDeploymentCertificate: Get the CA certificate used for the deployment of private endpoints.
1016 // The CA certificate will be returned as a PEM file.
1017 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) GetDeploymentCertificatescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#GetDeploymentCertificate().(req *GetDeploymentCertificateRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentCertificateRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) (*scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Filescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/File#, error) {
1018 var err error
1019
1020 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentCertificateRequest#Region. == "" {
1021 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
1022 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentCertificateRequest#Region. = defaultRegion
1023 }
1024
1025 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentCertificateRequest#Region.) == "" {
1026 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
1027 }
1028
1029 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentCertificateRequest#DeploymentID.) == "" {
1030 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field DeploymentID cannot be empty in request")
1031 }
1032
1033 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
1034 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "GET",
1035 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentCertificateRequest#Region.) + "/deployments/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetDeploymentCertificateRequest#DeploymentID.) + "/certificate",
1036 }
1037
1038 var resp scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.Filescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/File#
1039
1040 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, &resp, opts...)
1041 if err != nil {
1042 return nil, err
1043 }
1044 return &resp, nil
1045 }
1046
1047 // CreateEndpoint: Create a new Endpoint related to a specific deployment.
1048 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) CreateEndpointscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#CreateEndpoint().(req *CreateEndpointRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateEndpointRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) (*Endpointscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Endpoint#, error) {
1049 var err error
1050
1051 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateEndpointRequest#Region. == "" {
1052 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
1053 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateEndpointRequest#Region. = defaultRegion
1054 }
1055
1056 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateEndpointRequest#Region.) == "" {
1057 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
1058 }
1059
1060 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
1061 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "POST",
1062 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/CreateEndpointRequest#Region.) + "/endpoints",
1063 }
1064
1065 err = scwReq.SetBodyscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#SetBody().(req)
1066 if err != nil {
1067 return nil, err
1068 }
1069
1070 var resp Endpointscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Endpoint#
1071
1072 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, &resp, opts...)
1073 if err != nil {
1074 return nil, err
1075 }
1076 return &resp, nil
1077 }
1078
1079 // UpdateEndpoint: Update an existing Endpoint.
1080 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) UpdateEndpointscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#UpdateEndpoint().(req *UpdateEndpointRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateEndpointRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) (*Endpointscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Endpoint#, error) {
1081 var err error
1082
1083 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateEndpointRequest#Region. == "" {
1084 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
1085 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateEndpointRequest#Region. = defaultRegion
1086 }
1087
1088 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateEndpointRequest#Region.) == "" {
1089 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
1090 }
1091
1092 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.EndpointIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateEndpointRequest#EndpointID.) == "" {
1093 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field EndpointID cannot be empty in request")
1094 }
1095
1096 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
1097 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "PATCH",
1098 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateEndpointRequest#Region.) + "/endpoints/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.EndpointIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/UpdateEndpointRequest#EndpointID.) + "",
1099 }
1100
1101 err = scwReq.SetBodyscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#SetBody().(req)
1102 if err != nil {
1103 return nil, err
1104 }
1105
1106 var resp Endpointscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Endpoint#
1107
1108 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, &resp, opts...)
1109 if err != nil {
1110 return nil, err
1111 }
1112 return &resp, nil
1113 }
1114
1115 // DeleteEndpoint: Delete an existing Endpoint.
1116 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) DeleteEndpointscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#DeleteEndpoint().(req *DeleteEndpointRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteEndpointRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) error {
1117 var err error
1118
1119 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteEndpointRequest#Region. == "" {
1120 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
1121 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteEndpointRequest#Region. = defaultRegion
1122 }
1123
1124 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteEndpointRequest#Region.) == "" {
1125 return errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
1126 }
1127
1128 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.EndpointIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteEndpointRequest#EndpointID.) == "" {
1129 return errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field EndpointID cannot be empty in request")
1130 }
1131
1132 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
1133 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "DELETE",
1134 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteEndpointRequest#Region.) + "/endpoints/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.EndpointIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteEndpointRequest#EndpointID.) + "",
1135 }
1136
1137 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, nil, opts...)
1138 if err != nil {
1139 return err
1140 }
1141 return nil
1142 }
1143
1144 // ListDeploymentACLRules: List ACLs for a specific deployment.
1145 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) ListDeploymentACLRulesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#ListDeploymentACLRules().(req *ListDeploymentACLRulesRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) (*ListDeploymentACLRulesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#, error) {
1146 var err error
1147
1148 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#Region. == "" {
1149 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
1150 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#Region. = defaultRegion
1151 }
1152
1153 defaultPageSize, exist := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultPageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultPageSize().()
1154 if (req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#PageSize. == nil || *req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#PageSize. == 0) && exist {
1155 req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#PageSize. = &defaultPageSize
1156 }
1157
1158 query := urlscip-go gomod github.com/golang/go/src go1.17 `net/url`/.Valuesscip-go gomod github.com/golang/go/src go1.17 `net/url`/Values#{}
1159 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "page", req.Pagescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#Page.)
1160 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "page_size", req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#PageSize.)
1161
1162 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#Region.) == "" {
1163 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
1164 }
1165
1166 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#DeploymentID.) == "" {
1167 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field DeploymentID cannot be empty in request")
1168 }
1169
1170 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
1171 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "GET",
1172 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#Region.) + "/deployments/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesRequest#DeploymentID.) + "/acls",
1173 Queryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Query.: query,
1174 }
1175
1176 var resp ListDeploymentACLRulesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListDeploymentACLRulesResponse#
1177
1178 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, &resp, opts...)
1179 if err != nil {
1180 return nil, err
1181 }
1182 return &resp, nil
1183 }
1184
1185 // AddDeploymentACLRules: Add new ACL rules for a specific deployment.
1186 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) AddDeploymentACLRulesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#AddDeploymentACLRules().(req *AddDeploymentACLRulesRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/AddDeploymentACLRulesRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) (*AddDeploymentACLRulesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/AddDeploymentACLRulesResponse#, error) {
1187 var err error
1188
1189 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/AddDeploymentACLRulesRequest#Region. == "" {
1190 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
1191 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/AddDeploymentACLRulesRequest#Region. = defaultRegion
1192 }
1193
1194 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/AddDeploymentACLRulesRequest#Region.) == "" {
1195 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
1196 }
1197
1198 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/AddDeploymentACLRulesRequest#DeploymentID.) == "" {
1199 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field DeploymentID cannot be empty in request")
1200 }
1201
1202 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
1203 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "POST",
1204 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/AddDeploymentACLRulesRequest#Region.) + "/deployments/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/AddDeploymentACLRulesRequest#DeploymentID.) + "/acls",
1205 }
1206
1207 err = scwReq.SetBodyscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#SetBody().(req)
1208 if err != nil {
1209 return nil, err
1210 }
1211
1212 var resp AddDeploymentACLRulesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/AddDeploymentACLRulesResponse#
1213
1214 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, &resp, opts...)
1215 if err != nil {
1216 return nil, err
1217 }
1218 return &resp, nil
1219 }
1220
1221 // SetDeploymentACLRules: Set new ACL rules for a specific deployment.
1222 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) SetDeploymentACLRulesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#SetDeploymentACLRules().(req *SetDeploymentACLRulesRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/SetDeploymentACLRulesRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) (*SetDeploymentACLRulesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/SetDeploymentACLRulesResponse#, error) {
1223 var err error
1224
1225 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/SetDeploymentACLRulesRequest#Region. == "" {
1226 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
1227 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/SetDeploymentACLRulesRequest#Region. = defaultRegion
1228 }
1229
1230 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/SetDeploymentACLRulesRequest#Region.) == "" {
1231 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
1232 }
1233
1234 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/SetDeploymentACLRulesRequest#DeploymentID.) == "" {
1235 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field DeploymentID cannot be empty in request")
1236 }
1237
1238 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
1239 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "PUT",
1240 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/SetDeploymentACLRulesRequest#Region.) + "/deployments/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.DeploymentIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/SetDeploymentACLRulesRequest#DeploymentID.) + "/acls",
1241 }
1242
1243 err = scwReq.SetBodyscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#SetBody().(req)
1244 if err != nil {
1245 return nil, err
1246 }
1247
1248 var resp SetDeploymentACLRulesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/SetDeploymentACLRulesResponse#
1249
1250 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, &resp, opts...)
1251 if err != nil {
1252 return nil, err
1253 }
1254 return &resp, nil
1255 }
1256
1257 // DeleteDeploymentACLRule: Delete an exising ACL.
1258 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) DeleteDeploymentACLRulescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#DeleteDeploymentACLRule().(req *DeleteDeploymentACLRuleRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentACLRuleRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) error {
1259 var err error
1260
1261 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentACLRuleRequest#Region. == "" {
1262 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
1263 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentACLRuleRequest#Region. = defaultRegion
1264 }
1265
1266 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentACLRuleRequest#Region.) == "" {
1267 return errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
1268 }
1269
1270 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.ACLIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentACLRuleRequest#ACLID.) == "" {
1271 return errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field ACLID cannot be empty in request")
1272 }
1273
1274 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
1275 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "DELETE",
1276 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentACLRuleRequest#Region.) + "/acls/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.ACLIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/DeleteDeploymentACLRuleRequest#ACLID.) + "",
1277 }
1278
1279 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, nil, opts...)
1280 if err != nil {
1281 return err
1282 }
1283 return nil
1284 }
1285
1286 // ListModels: List all available models.
1287 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) ListModelsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#ListModels().(req *ListModelsRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) (*ListModelsResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#, error) {
1288 var err error
1289
1290 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#Region. == "" {
1291 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
1292 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#Region. = defaultRegion
1293 }
1294
1295 defaultPageSize, exist := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultPageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultPageSize().()
1296 if (req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#PageSize. == nil || *req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#PageSize. == 0) && exist {
1297 req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#PageSize. = &defaultPageSize
1298 }
1299
1300 query := urlscip-go gomod github.com/golang/go/src go1.17 `net/url`/.Valuesscip-go gomod github.com/golang/go/src go1.17 `net/url`/Values#{}
1301 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "order_by", req.OrderByscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#OrderBy.)
1302 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "page", req.Pagescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#Page.)
1303 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "page_size", req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#PageSize.)
1304 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "project_id", req.ProjectIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#ProjectID.)
1305 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "name", req.Namescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#Name.)
1306 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "tags", req.Tagsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#Tags.)
1307
1308 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#Region.) == "" {
1309 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
1310 }
1311
1312 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
1313 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "GET",
1314 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsRequest#Region.) + "/models",
1315 Queryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Query.: query,
1316 }
1317
1318 var resp ListModelsResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListModelsResponse#
1319
1320 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, &resp, opts...)
1321 if err != nil {
1322 return nil, err
1323 }
1324 return &resp, nil
1325 }
1326
1327 // GetModel: Get the model for the given ID.
1328 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) GetModelscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#GetModel().(req *GetModelRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) (*Modelscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#, error) {
1329 var err error
1330
1331 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelRequest#Region. == "" {
1332 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
1333 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelRequest#Region. = defaultRegion
1334 }
1335
1336 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelRequest#Region.) == "" {
1337 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
1338 }
1339
1340 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.ModelIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelRequest#ModelID.) == "" {
1341 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field ModelID cannot be empty in request")
1342 }
1343
1344 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
1345 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "GET",
1346 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelRequest#Region.) + "/models/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.ModelIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelRequest#ModelID.) + "",
1347 }
1348
1349 var resp Modelscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Model#
1350
1351 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, &resp, opts...)
1352 if err != nil {
1353 return nil, err
1354 }
1355 return &resp, nil
1356 }
1357
1358 // GetModelEula:
1359 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) GetModelEulascip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#GetModelEula().(req *GetModelEulaRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelEulaRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) (*Eulascip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Eula#, error) {
1360 var err error
1361
1362 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelEulaRequest#Region. == "" {
1363 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
1364 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelEulaRequest#Region. = defaultRegion
1365 }
1366
1367 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelEulaRequest#Region.) == "" {
1368 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
1369 }
1370
1371 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.ModelIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelEulaRequest#ModelID.) == "" {
1372 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field ModelID cannot be empty in request")
1373 }
1374
1375 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
1376 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "GET",
1377 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelEulaRequest#Region.) + "/models/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.ModelIDscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/GetModelEulaRequest#ModelID.) + "/eula",
1378 }
1379
1380 var resp Eulascip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/Eula#
1381
1382 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, &resp, opts...)
1383 if err != nil {
1384 return nil, err
1385 }
1386 return &resp, nil
1387 }
1388
1389 // ListNodeTypes: List all available node types. By default, the node types returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
1390 func (s *APIscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#) ListNodeTypesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#ListNodeTypes().(req *ListNodeTypesRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest#, opts ...scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.RequestOptionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/RequestOption#) (*ListNodeTypesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#, error) {
1391 var err error
1392
1393 if req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest#Region. == "" {
1394 defaultRegion, _ := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultRegionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultRegion().()
1395 req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest#Region. = defaultRegion
1396 }
1397
1398 defaultPageSize, exist := s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..GetDefaultPageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#GetDefaultPageSize().()
1399 if (req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest#PageSize. == nil || *req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest#PageSize. == 0) && exist {
1400 req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest#PageSize. = &defaultPageSize
1401 }
1402
1403 query := urlscip-go gomod github.com/golang/go/src go1.17 `net/url`/.Valuesscip-go gomod github.com/golang/go/src go1.17 `net/url`/Values#{}
1404 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "page", req.Pagescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest#Page.)
1405 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "page_size", req.PageSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest#PageSize.)
1406 parameterscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/.AddToQueryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/parameter`/AddToQuery().(query, "include_disabled_types", req.IncludeDisabledTypesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest#IncludeDisabledTypes.)
1407
1408 if fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest#Region.) == "" {
1409 return nil, errorsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/.Newscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/errors`/New().("field Region cannot be empty in request")
1410 }
1411
1412 scwReq := &scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/.ScalewayRequestscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#{
1413 Methodscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Method.: "GET",
1414 Pathscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Path.: "/inference/v1beta1/regions/" + fmtscip-go gomod github.com/golang/go/src go1.17 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.17 fmt/Sprint().(req.Regionscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesRequest#Region.) + "/node-types",
1415 Queryscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ScalewayRequest#Query.: query,
1416 }
1417
1418 var resp ListNodeTypesResponsescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/ListNodeTypesResponse#
1419
1420 err = s.clientscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1`/API#client..Doscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Client#Do().(scwReq, &resp, opts...)
1421 if err != nil {
1422 return nil, err
1423 }
1424 return &resp, nil
1425 }