Skip to content

Commit 0eb8e61

Browse files
committed
Commit via running ake Sources/hosted-compute
1 parent 56693fe commit 0eb8e61

File tree

2 files changed

+290
-273
lines changed

2 files changed

+290
-273
lines changed

Sources/hosted-compute/Client.swift

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ public struct Client: APIProtocol {
4646
///
4747
/// - Remark: HTTP `GET /orgs/{org}/settings/network-configurations`.
4848
/// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/get(hosted-compute/list-network-configurations-for-org)`.
49-
public func hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output {
49+
public func hostedComputeListNetworkConfigurationsForOrg(_ input: Operations.HostedComputeListNetworkConfigurationsForOrg.Input) async throws -> Operations.HostedComputeListNetworkConfigurationsForOrg.Output {
5050
try await client.send(
5151
input: input,
52-
forOperation: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.id,
52+
forOperation: Operations.HostedComputeListNetworkConfigurationsForOrg.id,
5353
serializer: { input in
5454
let path = try converter.renderedPath(
5555
template: "/orgs/{}/settings/network-configurations",
@@ -67,7 +67,7 @@ public struct Client: APIProtocol {
6767
style: .form,
6868
explode: true,
6969
name: "per_page",
70-
value: input.query.per_page
70+
value: input.query.perPage
7171
)
7272
try converter.setQueryItemAsURI(
7373
in: &request,
@@ -85,13 +85,13 @@ public struct Client: APIProtocol {
8585
deserializer: { response, responseBody in
8686
switch response.status.code {
8787
case 200:
88-
let headers: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI(
88+
let headers: Operations.HostedComputeListNetworkConfigurationsForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI(
8989
in: response.headerFields,
9090
name: "Link",
91-
as: Components.Headers.link.self
91+
as: Components.Headers.Link.self
9292
))
9393
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
94-
let body: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok.Body
94+
let body: Operations.HostedComputeListNetworkConfigurationsForOrg.Output.Ok.Body
9595
let chosenContentType = try converter.bestContentType(
9696
received: contentType,
9797
options: [
@@ -101,7 +101,7 @@ public struct Client: APIProtocol {
101101
switch chosenContentType {
102102
case "application/json":
103103
body = try await converter.getResponseBodyAsJSON(
104-
Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self,
104+
Operations.HostedComputeListNetworkConfigurationsForOrg.Output.Ok.Body.JsonPayload.self,
105105
from: responseBody,
106106
transforming: { value in
107107
.json(value)
@@ -134,10 +134,10 @@ public struct Client: APIProtocol {
134134
///
135135
/// - Remark: HTTP `POST /orgs/{org}/settings/network-configurations`.
136136
/// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/post(hosted-compute/create-network-configuration-for-org)`.
137-
public func hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output {
137+
public func hostedComputeCreateNetworkConfigurationForOrg(_ input: Operations.HostedComputeCreateNetworkConfigurationForOrg.Input) async throws -> Operations.HostedComputeCreateNetworkConfigurationForOrg.Output {
138138
try await client.send(
139139
input: input,
140-
forOperation: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.id,
140+
forOperation: Operations.HostedComputeCreateNetworkConfigurationForOrg.id,
141141
serializer: { input in
142142
let path = try converter.renderedPath(
143143
template: "/orgs/{}/settings/network-configurations",
@@ -169,7 +169,7 @@ public struct Client: APIProtocol {
169169
switch response.status.code {
170170
case 201:
171171
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
172-
let body: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Created.Body
172+
let body: Operations.HostedComputeCreateNetworkConfigurationForOrg.Output.Created.Body
173173
let chosenContentType = try converter.bestContentType(
174174
received: contentType,
175175
options: [
@@ -179,7 +179,7 @@ public struct Client: APIProtocol {
179179
switch chosenContentType {
180180
case "application/json":
181181
body = try await converter.getResponseBodyAsJSON(
182-
Components.Schemas.network_hyphen_configuration.self,
182+
Components.Schemas.NetworkConfiguration.self,
183183
from: responseBody,
184184
transforming: { value in
185185
.json(value)
@@ -209,16 +209,16 @@ public struct Client: APIProtocol {
209209
///
210210
/// - Remark: HTTP `GET /orgs/{org}/settings/network-configurations/{network_configuration_id}`.
211211
/// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/get(hosted-compute/get-network-configuration-for-org)`.
212-
public func hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output {
212+
public func hostedComputeGetNetworkConfigurationForOrg(_ input: Operations.HostedComputeGetNetworkConfigurationForOrg.Input) async throws -> Operations.HostedComputeGetNetworkConfigurationForOrg.Output {
213213
try await client.send(
214214
input: input,
215-
forOperation: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.id,
215+
forOperation: Operations.HostedComputeGetNetworkConfigurationForOrg.id,
216216
serializer: { input in
217217
let path = try converter.renderedPath(
218218
template: "/orgs/{}/settings/network-configurations/{}",
219219
parameters: [
220220
input.path.org,
221-
input.path.network_configuration_id
221+
input.path.networkConfigurationId
222222
]
223223
)
224224
var request: HTTPTypes.HTTPRequest = .init(
@@ -235,13 +235,13 @@ public struct Client: APIProtocol {
235235
deserializer: { response, responseBody in
236236
switch response.status.code {
237237
case 200:
238-
let headers: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI(
238+
let headers: Operations.HostedComputeGetNetworkConfigurationForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI(
239239
in: response.headerFields,
240240
name: "Link",
241-
as: Components.Headers.link.self
241+
as: Components.Headers.Link.self
242242
))
243243
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
244-
let body: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok.Body
244+
let body: Operations.HostedComputeGetNetworkConfigurationForOrg.Output.Ok.Body
245245
let chosenContentType = try converter.bestContentType(
246246
received: contentType,
247247
options: [
@@ -251,7 +251,7 @@ public struct Client: APIProtocol {
251251
switch chosenContentType {
252252
case "application/json":
253253
body = try await converter.getResponseBodyAsJSON(
254-
Components.Schemas.network_hyphen_configuration.self,
254+
Components.Schemas.NetworkConfiguration.self,
255255
from: responseBody,
256256
transforming: { value in
257257
.json(value)
@@ -284,16 +284,16 @@ public struct Client: APIProtocol {
284284
///
285285
/// - Remark: HTTP `PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}`.
286286
/// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/patch(hosted-compute/update-network-configuration-for-org)`.
287-
public func hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output {
287+
public func hostedComputeUpdateNetworkConfigurationForOrg(_ input: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input) async throws -> Operations.HostedComputeUpdateNetworkConfigurationForOrg.Output {
288288
try await client.send(
289289
input: input,
290-
forOperation: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.id,
290+
forOperation: Operations.HostedComputeUpdateNetworkConfigurationForOrg.id,
291291
serializer: { input in
292292
let path = try converter.renderedPath(
293293
template: "/orgs/{}/settings/network-configurations/{}",
294294
parameters: [
295295
input.path.org,
296-
input.path.network_configuration_id
296+
input.path.networkConfigurationId
297297
]
298298
)
299299
var request: HTTPTypes.HTTPRequest = .init(
@@ -320,7 +320,7 @@ public struct Client: APIProtocol {
320320
switch response.status.code {
321321
case 200:
322322
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
323-
let body: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok.Body
323+
let body: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Output.Ok.Body
324324
let chosenContentType = try converter.bestContentType(
325325
received: contentType,
326326
options: [
@@ -330,7 +330,7 @@ public struct Client: APIProtocol {
330330
switch chosenContentType {
331331
case "application/json":
332332
body = try await converter.getResponseBodyAsJSON(
333-
Components.Schemas.network_hyphen_configuration.self,
333+
Components.Schemas.NetworkConfiguration.self,
334334
from: responseBody,
335335
transforming: { value in
336336
.json(value)
@@ -360,16 +360,16 @@ public struct Client: APIProtocol {
360360
///
361361
/// - Remark: HTTP `DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}`.
362362
/// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/delete(hosted-compute/delete-network-configuration-from-org)`.
363-
public func hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.Output {
363+
public func hostedComputeDeleteNetworkConfigurationFromOrg(_ input: Operations.HostedComputeDeleteNetworkConfigurationFromOrg.Input) async throws -> Operations.HostedComputeDeleteNetworkConfigurationFromOrg.Output {
364364
try await client.send(
365365
input: input,
366-
forOperation: Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.id,
366+
forOperation: Operations.HostedComputeDeleteNetworkConfigurationFromOrg.id,
367367
serializer: { input in
368368
let path = try converter.renderedPath(
369369
template: "/orgs/{}/settings/network-configurations/{}",
370370
parameters: [
371371
input.path.org,
372-
input.path.network_configuration_id
372+
input.path.networkConfigurationId
373373
]
374374
)
375375
var request: HTTPTypes.HTTPRequest = .init(
@@ -403,16 +403,16 @@ public struct Client: APIProtocol {
403403
///
404404
/// - Remark: HTTP `GET /orgs/{org}/settings/network-settings/{network_settings_id}`.
405405
/// - Remark: Generated from `#/paths//orgs/{org}/settings/network-settings/{network_settings_id}/get(hosted-compute/get-network-settings-for-org)`.
406-
public func hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Output {
406+
public func hostedComputeGetNetworkSettingsForOrg(_ input: Operations.HostedComputeGetNetworkSettingsForOrg.Input) async throws -> Operations.HostedComputeGetNetworkSettingsForOrg.Output {
407407
try await client.send(
408408
input: input,
409-
forOperation: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.id,
409+
forOperation: Operations.HostedComputeGetNetworkSettingsForOrg.id,
410410
serializer: { input in
411411
let path = try converter.renderedPath(
412412
template: "/orgs/{}/settings/network-settings/{}",
413413
parameters: [
414414
input.path.org,
415-
input.path.network_settings_id
415+
input.path.networkSettingsId
416416
]
417417
)
418418
var request: HTTPTypes.HTTPRequest = .init(
@@ -429,13 +429,13 @@ public struct Client: APIProtocol {
429429
deserializer: { response, responseBody in
430430
switch response.status.code {
431431
case 200:
432-
let headers: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI(
432+
let headers: Operations.HostedComputeGetNetworkSettingsForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI(
433433
in: response.headerFields,
434434
name: "Link",
435-
as: Components.Headers.link.self
435+
as: Components.Headers.Link.self
436436
))
437437
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
438-
let body: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Output.Ok.Body
438+
let body: Operations.HostedComputeGetNetworkSettingsForOrg.Output.Ok.Body
439439
let chosenContentType = try converter.bestContentType(
440440
received: contentType,
441441
options: [
@@ -445,7 +445,7 @@ public struct Client: APIProtocol {
445445
switch chosenContentType {
446446
case "application/json":
447447
body = try await converter.getResponseBodyAsJSON(
448-
Components.Schemas.network_hyphen_settings.self,
448+
Components.Schemas.NetworkSettings.self,
449449
from: responseBody,
450450
transforming: { value in
451451
.json(value)

0 commit comments

Comments
 (0)