Skip to content

Commit 59a934d

Browse files
committed
Commit via running ake Sources/git
1 parent ae91619 commit 59a934d

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

Sources/git/Types.swift

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,15 @@ extension APIProtocol {
611611

612612
/// Server URLs defined in the OpenAPI document.
613613
public enum Servers {
614+
public enum Server1 {
615+
public static func url() throws -> Foundation.URL {
616+
try Foundation.URL(
617+
validatingOpenAPIServerURL: "https://api.github.com",
618+
variables: []
619+
)
620+
}
621+
}
622+
@available(*, deprecated, renamed: "Servers.Server1.url")
614623
public static func server1() throws -> Foundation.URL {
615624
try Foundation.URL(
616625
validatingOpenAPIServerURL: "https://api.github.com",
@@ -3850,6 +3859,14 @@ public enum Operations {
38503859
///
38513860
/// HTTP response code: `204 noContent`.
38523861
case noContent(Operations.git_sol_delete_hyphen_ref.Output.NoContent)
3862+
/// Response
3863+
///
3864+
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/delete(git/delete-ref)/responses/204`.
3865+
///
3866+
/// HTTP response code: `204 noContent`.
3867+
public static var noContent: Self {
3868+
.noContent(.init())
3869+
}
38533870
/// The associated value of the enum case if `self` is `.noContent`.
38543871
///
38553872
/// - Throws: An error if `self` is not `.noContent`.
@@ -3877,6 +3894,14 @@ public enum Operations {
38773894
///
38783895
/// HTTP response code: `422 unprocessableContent`.
38793896
case unprocessableContent(Operations.git_sol_delete_hyphen_ref.Output.UnprocessableContent)
3897+
/// Validation failed, an attempt was made to delete the default branch, or the endpoint has been spammed.
3898+
///
3899+
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/delete(git/delete-ref)/responses/422`.
3900+
///
3901+
/// HTTP response code: `422 unprocessableContent`.
3902+
public static var unprocessableContent: Self {
3903+
.unprocessableContent(.init())
3904+
}
38803905
/// The associated value of the enum case if `self` is `.unprocessableContent`.
38813906
///
38823907
/// - Throws: An error if `self` is not `.unprocessableContent`.
@@ -4042,7 +4067,7 @@ public enum Operations {
40424067
/// The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.
40434068
///
40444069
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/requestBody/json/type`.
4045-
@frozen public enum _typePayload: String, Codable, Hashable, Sendable {
4070+
@frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {
40464071
case commit = "commit"
40474072
case tree = "tree"
40484073
case blob = "blob"
@@ -4571,7 +4596,7 @@ public enum Operations {
45714596
/// The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.
45724597
///
45734598
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/treePayload/mode`.
4574-
@frozen public enum modePayload: String, Codable, Hashable, Sendable {
4599+
@frozen public enum modePayload: String, Codable, Hashable, Sendable, CaseIterable {
45754600
case _100644 = "100644"
45764601
case _100755 = "100755"
45774602
case _040000 = "040000"
@@ -4585,7 +4610,7 @@ public enum Operations {
45854610
/// Either `blob`, `tree`, or `commit`.
45864611
///
45874612
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/treePayload/type`.
4588-
@frozen public enum _typePayload: String, Codable, Hashable, Sendable {
4613+
@frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {
45894614
case blob = "blob"
45904615
case tree = "tree"
45914616
case commit = "commit"

0 commit comments

Comments
 (0)