Skip to content

Commit 6ab141d

Browse files
committed
Commit via running ake Sources/private-registries
1 parent 90b94de commit 6ab141d

File tree

1 file changed

+33
-8
lines changed

1 file changed

+33
-8
lines changed

Sources/private-registries/Types.swift

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,15 @@ extension APIProtocol {
195195

196196
/// Server URLs defined in the OpenAPI document.
197197
public enum Servers {
198+
public enum Server1 {
199+
public static func url() throws -> Foundation.URL {
200+
try Foundation.URL(
201+
validatingOpenAPIServerURL: "https://api.github.com",
202+
variables: []
203+
)
204+
}
205+
}
206+
@available(*, deprecated, renamed: "Servers.Server1.url")
198207
public static func server1() throws -> Foundation.URL {
199208
try Foundation.URL(
200209
validatingOpenAPIServerURL: "https://api.github.com",
@@ -429,7 +438,7 @@ public enum Components {
429438
/// The registry type.
430439
///
431440
/// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/registry_type`.
432-
@frozen public enum registry_typePayload: String, Codable, Hashable, Sendable {
441+
@frozen public enum registry_typePayload: String, Codable, Hashable, Sendable, CaseIterable {
433442
case maven_repository = "maven_repository"
434443
}
435444
/// The registry type.
@@ -443,7 +452,7 @@ public enum Components {
443452
/// Which type of organization repositories have access to the private registry.
444453
///
445454
/// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/visibility`.
446-
@frozen public enum visibilityPayload: String, Codable, Hashable, Sendable {
455+
@frozen public enum visibilityPayload: String, Codable, Hashable, Sendable, CaseIterable {
447456
case all = "all"
448457
case _private = "private"
449458
case selected = "selected"
@@ -500,7 +509,7 @@ public enum Components {
500509
/// The registry type.
501510
///
502511
/// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/registry_type`.
503-
@frozen public enum registry_typePayload: String, Codable, Hashable, Sendable {
512+
@frozen public enum registry_typePayload: String, Codable, Hashable, Sendable, CaseIterable {
504513
case maven_repository = "maven_repository"
505514
}
506515
/// The registry type.
@@ -514,7 +523,7 @@ public enum Components {
514523
/// Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.
515524
///
516525
/// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/visibility`.
517-
@frozen public enum visibilityPayload: String, Codable, Hashable, Sendable {
526+
@frozen public enum visibilityPayload: String, Codable, Hashable, Sendable, CaseIterable {
518527
case all = "all"
519528
case _private = "private"
520529
case selected = "selected"
@@ -1013,7 +1022,7 @@ public enum Operations {
10131022
/// The registry type.
10141023
///
10151024
/// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/json/registry_type`.
1016-
@frozen public enum registry_typePayload: String, Codable, Hashable, Sendable {
1025+
@frozen public enum registry_typePayload: String, Codable, Hashable, Sendable, CaseIterable {
10171026
case maven_repository = "maven_repository"
10181027
}
10191028
/// The registry type.
@@ -1035,7 +1044,7 @@ public enum Operations {
10351044
/// Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.
10361045
///
10371046
/// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/json/visibility`.
1038-
@frozen public enum visibilityPayload: String, Codable, Hashable, Sendable {
1047+
@frozen public enum visibilityPayload: String, Codable, Hashable, Sendable, CaseIterable {
10391048
case all = "all"
10401049
case _private = "private"
10411050
case selected = "selected"
@@ -1656,7 +1665,7 @@ public enum Operations {
16561665
/// The registry type.
16571666
///
16581667
/// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/json/registry_type`.
1659-
@frozen public enum registry_typePayload: String, Codable, Hashable, Sendable {
1668+
@frozen public enum registry_typePayload: String, Codable, Hashable, Sendable, CaseIterable {
16601669
case maven_repository = "maven_repository"
16611670
}
16621671
/// The registry type.
@@ -1678,7 +1687,7 @@ public enum Operations {
16781687
/// Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.
16791688
///
16801689
/// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/json/visibility`.
1681-
@frozen public enum visibilityPayload: String, Codable, Hashable, Sendable {
1690+
@frozen public enum visibilityPayload: String, Codable, Hashable, Sendable, CaseIterable {
16821691
case all = "all"
16831692
case _private = "private"
16841693
case selected = "selected"
@@ -1755,6 +1764,14 @@ public enum Operations {
17551764
///
17561765
/// HTTP response code: `204 noContent`.
17571766
case noContent(Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Output.NoContent)
1767+
/// Response
1768+
///
1769+
/// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/patch(private-registries/update-org-private-registry)/responses/204`.
1770+
///
1771+
/// HTTP response code: `204 noContent`.
1772+
public static var noContent: Self {
1773+
.noContent(.init())
1774+
}
17581775
/// The associated value of the enum case if `self` is `.noContent`.
17591776
///
17601777
/// - Throws: An error if `self` is not `.noContent`.
@@ -1921,6 +1938,14 @@ public enum Operations {
19211938
///
19221939
/// HTTP response code: `204 noContent`.
19231940
case noContent(Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.Output.NoContent)
1941+
/// Response
1942+
///
1943+
/// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/delete(private-registries/delete-org-private-registry)/responses/204`.
1944+
///
1945+
/// HTTP response code: `204 noContent`.
1946+
public static var noContent: Self {
1947+
.noContent(.init())
1948+
}
19241949
/// The associated value of the enum case if `self` is `.noContent`.
19251950
///
19261951
/// - Throws: An error if `self` is not `.noContent`.

0 commit comments

Comments
 (0)