Skip to content

Commit 31ca9f4

Browse files
committed
Commit via running ake Sources/hosted-compute
1 parent 6ab141d commit 31ca9f4

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

Sources/hosted-compute/Types.swift

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,15 @@ extension APIProtocol {
175175

176176
/// Server URLs defined in the OpenAPI document.
177177
public enum Servers {
178+
public enum Server1 {
179+
public static func url() throws -> Foundation.URL {
180+
try Foundation.URL(
181+
validatingOpenAPIServerURL: "https://api.github.com",
182+
variables: []
183+
)
184+
}
185+
}
186+
@available(*, deprecated, renamed: "Servers.Server1.url")
178187
public static func server1() throws -> Foundation.URL {
179188
try Foundation.URL(
180189
validatingOpenAPIServerURL: "https://api.github.com",
@@ -202,7 +211,7 @@ public enum Components {
202211
/// The hosted compute service the network configuration supports.
203212
///
204213
/// - Remark: Generated from `#/components/schemas/network-configuration/compute_service`.
205-
@frozen public enum compute_servicePayload: String, Codable, Hashable, Sendable {
214+
@frozen public enum compute_servicePayload: String, Codable, Hashable, Sendable, CaseIterable {
206215
case none = "none"
207216
case actions = "actions"
208217
case codespaces = "codespaces"
@@ -590,7 +599,7 @@ public enum Operations {
590599
/// The hosted compute service to use for the network configuration.
591600
///
592601
/// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/POST/requestBody/json/compute_service`.
593-
@frozen public enum compute_servicePayload: String, Codable, Hashable, Sendable {
602+
@frozen public enum compute_servicePayload: String, Codable, Hashable, Sendable, CaseIterable {
594603
case none = "none"
595604
case actions = "actions"
596605
}
@@ -946,7 +955,7 @@ public enum Operations {
946955
/// The hosted compute service to use for the network configuration.
947956
///
948957
/// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/PATCH/requestBody/json/compute_service`.
949-
@frozen public enum compute_servicePayload: String, Codable, Hashable, Sendable {
958+
@frozen public enum compute_servicePayload: String, Codable, Hashable, Sendable, CaseIterable {
950959
case none = "none"
951960
case actions = "actions"
952961
}
@@ -1136,6 +1145,14 @@ public enum Operations {
11361145
///
11371146
/// HTTP response code: `204 noContent`.
11381147
case noContent(Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.Output.NoContent)
1148+
/// Response
1149+
///
1150+
/// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/delete(hosted-compute/delete-network-configuration-from-org)/responses/204`.
1151+
///
1152+
/// HTTP response code: `204 noContent`.
1153+
public static var noContent: Self {
1154+
.noContent(.init())
1155+
}
11391156
/// The associated value of the enum case if `self` is `.noContent`.
11401157
///
11411158
/// - Throws: An error if `self` is not `.noContent`.

0 commit comments

Comments
 (0)