@@ -45,11 +45,11 @@ package struct Client: APIProtocol {
45
45
///
46
46
///
47
47
/// - Remark: HTTP `POST /ofrep/v1/evaluate/flags/{key}`.
48
- /// - Remark: Generated from `#/paths//ofrep/v1/evaluate/flags/{key}/post`.
49
- package func postOfrepV1EvaluateFlagsKey ( _ input: Operations . PostOfrepV1EvaluateFlagsKey . Input ) async throws -> Operations . PostOfrepV1EvaluateFlagsKey . Output {
48
+ /// - Remark: Generated from `#/paths//ofrep/v1/evaluate/flags/{key}/post(evaluateFlag) `.
49
+ package func evaluateFlag ( _ input: Operations . EvaluateFlag . Input ) async throws -> Operations . EvaluateFlag . Output {
50
50
try await client. send (
51
51
input: input,
52
- forOperation: Operations . PostOfrepV1EvaluateFlagsKey . id,
52
+ forOperation: Operations . EvaluateFlag . id,
53
53
serializer: { input in
54
54
let path = try converter. renderedPath (
55
55
template: " /ofrep/v1/evaluate/flags/{} " ,
@@ -83,7 +83,7 @@ package struct Client: APIProtocol {
83
83
switch response. status. code {
84
84
case 200 :
85
85
let contentType = converter. extractContentTypeIfPresent ( in: response. headerFields)
86
- let body : Operations . PostOfrepV1EvaluateFlagsKey . Output . Ok . Body
86
+ let body : Operations . EvaluateFlag . Output . Ok . Body
87
87
let chosenContentType = try converter. bestContentType (
88
88
received: contentType,
89
89
options: [
@@ -105,7 +105,7 @@ package struct Client: APIProtocol {
105
105
return . ok( . init( body: body) )
106
106
case 400 :
107
107
let contentType = converter. extractContentTypeIfPresent ( in: response. headerFields)
108
- let body : Operations . PostOfrepV1EvaluateFlagsKey . Output . BadRequest . Body
108
+ let body : Operations . EvaluateFlag . Output . BadRequest . Body
109
109
let chosenContentType = try converter. bestContentType (
110
110
received: contentType,
111
111
options: [
@@ -127,7 +127,7 @@ package struct Client: APIProtocol {
127
127
return . badRequest( . init( body: body) )
128
128
case 404 :
129
129
let contentType = converter. extractContentTypeIfPresent ( in: response. headerFields)
130
- let body : Operations . PostOfrepV1EvaluateFlagsKey . Output . NotFound . Body
130
+ let body : Operations . EvaluateFlag . Output . NotFound . Body
131
131
let chosenContentType = try converter. bestContentType (
132
132
received: contentType,
133
133
options: [
@@ -152,15 +152,15 @@ package struct Client: APIProtocol {
152
152
case 403 :
153
153
return . forbidden( . init( ) )
154
154
case 429 :
155
- let headers : Operations . PostOfrepV1EvaluateFlagsKey . Output . TooManyRequests . Headers = . init( retryAfter: try converter. getOptionalHeaderFieldAsURI (
155
+ let headers : Operations . EvaluateFlag . Output . TooManyRequests . Headers = . init( retryAfter: try converter. getOptionalHeaderFieldAsURI (
156
156
in: response. headerFields,
157
157
name: " Retry-After " ,
158
158
as: Foundation . Date. self
159
159
) )
160
160
return . tooManyRequests( . init( headers: headers) )
161
161
case 500 :
162
162
let contentType = converter. extractContentTypeIfPresent ( in: response. headerFields)
163
- let body : Operations . PostOfrepV1EvaluateFlagsKey . Output . InternalServerError . Body
163
+ let body : Operations . EvaluateFlag . Output . InternalServerError . Body
164
164
let chosenContentType = try converter. bestContentType (
165
165
received: contentType,
166
166
options: [
@@ -199,11 +199,11 @@ package struct Client: APIProtocol {
199
199
///
200
200
///
201
201
/// - Remark: HTTP `POST /ofrep/v1/evaluate/flags`.
202
- /// - Remark: Generated from `#/paths//ofrep/v1/evaluate/flags/post`.
203
- package func postOfrepV1EvaluateFlags ( _ input: Operations . PostOfrepV1EvaluateFlags . Input ) async throws -> Operations . PostOfrepV1EvaluateFlags . Output {
202
+ /// - Remark: Generated from `#/paths//ofrep/v1/evaluate/flags/post(evaluateFlagsBulk) `.
203
+ package func evaluateFlagsBulk ( _ input: Operations . EvaluateFlagsBulk . Input ) async throws -> Operations . EvaluateFlagsBulk . Output {
204
204
try await client. send (
205
205
input: input,
206
- forOperation: Operations . PostOfrepV1EvaluateFlags . id,
206
+ forOperation: Operations . EvaluateFlagsBulk . id,
207
207
serializer: { input in
208
208
let path = try converter. renderedPath (
209
209
template: " /ofrep/v1/evaluate/flags " ,
@@ -239,13 +239,13 @@ package struct Client: APIProtocol {
239
239
deserializer: { response, responseBody in
240
240
switch response. status. code {
241
241
case 200 :
242
- let headers : Operations . PostOfrepV1EvaluateFlags . Output . Ok . Headers = . init( eTag: try converter. getOptionalHeaderFieldAsURI (
242
+ let headers : Operations . EvaluateFlagsBulk . Output . Ok . Headers = . init( eTag: try converter. getOptionalHeaderFieldAsURI (
243
243
in: response. headerFields,
244
244
name: " ETag " ,
245
245
as: Swift . String. self
246
246
) )
247
247
let contentType = converter. extractContentTypeIfPresent ( in: response. headerFields)
248
- let body : Operations . PostOfrepV1EvaluateFlags . Output . Ok . Body
248
+ let body : Operations . EvaluateFlagsBulk . Output . Ok . Body
249
249
let chosenContentType = try converter. bestContentType (
250
250
received: contentType,
251
251
options: [
@@ -272,7 +272,7 @@ package struct Client: APIProtocol {
272
272
return . notModified( . init( ) )
273
273
case 400 :
274
274
let contentType = converter. extractContentTypeIfPresent ( in: response. headerFields)
275
- let body : Operations . PostOfrepV1EvaluateFlags . Output . BadRequest . Body
275
+ let body : Operations . EvaluateFlagsBulk . Output . BadRequest . Body
276
276
let chosenContentType = try converter. bestContentType (
277
277
received: contentType,
278
278
options: [
@@ -297,15 +297,15 @@ package struct Client: APIProtocol {
297
297
case 403 :
298
298
return . forbidden( . init( ) )
299
299
case 429 :
300
- let headers : Operations . PostOfrepV1EvaluateFlags . Output . TooManyRequests . Headers = . init( retryAfter: try converter. getOptionalHeaderFieldAsURI (
300
+ let headers : Operations . EvaluateFlagsBulk . Output . TooManyRequests . Headers = . init( retryAfter: try converter. getOptionalHeaderFieldAsURI (
301
301
in: response. headerFields,
302
302
name: " Retry-After " ,
303
303
as: Foundation . Date. self
304
304
) )
305
305
return . tooManyRequests( . init( headers: headers) )
306
306
case 500 :
307
307
let contentType = converter. extractContentTypeIfPresent ( in: response. headerFields)
308
- let body : Operations . PostOfrepV1EvaluateFlags . Output . InternalServerError . Body
308
+ let body : Operations . EvaluateFlagsBulk . Output . InternalServerError . Body
309
309
let chosenContentType = try converter. bestContentType (
310
310
received: contentType,
311
311
options: [
@@ -344,11 +344,11 @@ package struct Client: APIProtocol {
344
344
///
345
345
///
346
346
/// - Remark: HTTP `GET /ofrep/v1/configuration`.
347
- /// - Remark: Generated from `#/paths//ofrep/v1/configuration/get`.
348
- package func getOfrepV1Configuration ( _ input: Operations . GetOfrepV1Configuration . Input ) async throws -> Operations . GetOfrepV1Configuration . Output {
347
+ /// - Remark: Generated from `#/paths//ofrep/v1/configuration/get(getConfiguration) `.
348
+ package func getConfiguration ( _ input: Operations . GetConfiguration . Input ) async throws -> Operations . GetConfiguration . Output {
349
349
try await client. send (
350
350
input: input,
351
- forOperation: Operations . GetOfrepV1Configuration . id,
351
+ forOperation: Operations . GetConfiguration . id,
352
352
serializer: { input in
353
353
let path = try converter. renderedPath (
354
354
template: " /ofrep/v1/configuration " ,
@@ -373,13 +373,13 @@ package struct Client: APIProtocol {
373
373
deserializer: { response, responseBody in
374
374
switch response. status. code {
375
375
case 200 :
376
- let headers : Operations . GetOfrepV1Configuration . Output . Ok . Headers = . init( eTag: try converter. getOptionalHeaderFieldAsURI (
376
+ let headers : Operations . GetConfiguration . Output . Ok . Headers = . init( eTag: try converter. getOptionalHeaderFieldAsURI (
377
377
in: response. headerFields,
378
378
name: " ETag " ,
379
379
as: Swift . String. self
380
380
) )
381
381
let contentType = converter. extractContentTypeIfPresent ( in: response. headerFields)
382
- let body : Operations . GetOfrepV1Configuration . Output . Ok . Body
382
+ let body : Operations . GetConfiguration . Output . Ok . Body
383
383
let chosenContentType = try converter. bestContentType (
384
384
received: contentType,
385
385
options: [
@@ -410,7 +410,7 @@ package struct Client: APIProtocol {
410
410
return . forbidden( . init( ) )
411
411
case 500 :
412
412
let contentType = converter. extractContentTypeIfPresent ( in: response. headerFields)
413
- let body : Operations . GetOfrepV1Configuration . Output . InternalServerError . Body
413
+ let body : Operations . GetConfiguration . Output . InternalServerError . Body
414
414
let chosenContentType = try converter. bestContentType (
415
415
received: contentType,
416
416
options: [
0 commit comments