@@ -181,6 +181,15 @@ extension APIProtocol {
181181
182182/// Server URLs defined in the OpenAPI document.
183183public enum Servers {
184+ public enum Server1 {
185+ public static func url( ) throws -> Foundation . URL {
186+ try Foundation . URL (
187+ validatingOpenAPIServerURL: " https://api.github.com " ,
188+ variables: [ ]
189+ )
190+ }
191+ }
192+ @available ( * , deprecated, renamed: " Servers.Server1.url " )
184193 public static func server1( ) throws -> Foundation . URL {
185194 try Foundation . URL (
186195 validatingOpenAPIServerURL: " https://api.github.com " ,
@@ -378,7 +387,7 @@ public enum Components {
378387 /// Indicates whether a campaign is open or closed
379388 ///
380389 /// - Remark: Generated from `#/components/schemas/campaign-state`.
381- @frozen public enum campaign_hyphen_state : String , Codable , Hashable , Sendable {
390+ @frozen public enum campaign_hyphen_state : String , Codable , Hashable , Sendable , CaseIterable {
382391 case open = " open "
383392 case closed = " closed "
384393 }
@@ -713,15 +722,15 @@ public enum Components {
713722 }
714723 public init ( from decoder: any Decoder ) throws {
715724 let container = try decoder. container ( keyedBy: CodingKeys . self)
716- open_count = try container. decode (
725+ self . open_count = try container. decode (
717726 Swift . Int. self,
718727 forKey: . open_count
719728 )
720- closed_count = try container. decode (
729+ self . closed_count = try container. decode (
721730 Swift . Int. self,
722731 forKey: . closed_count
723732 )
724- in_progress_count = try container. decode (
733+ self . in_progress_count = try container. decode (
725734 Swift . Int. self,
726735 forKey: . in_progress_count
727736 )
@@ -801,7 +810,7 @@ public enum Components {
801810 /// The direction to sort the results by.
802811 ///
803812 /// - Remark: Generated from `#/components/parameters/direction`.
804- @frozen public enum direction : String , Codable , Hashable , Sendable {
813+ @frozen public enum direction : String , Codable , Hashable , Sendable , CaseIterable {
805814 case asc = " asc "
806815 case desc = " desc "
807816 }
@@ -956,7 +965,7 @@ public enum Operations {
956965 /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/query/per_page`.
957966 public var per_page : Components . Parameters . per_hyphen_page ?
958967 /// - Remark: Generated from `#/components/parameters/direction`.
959- @frozen public enum direction : String , Codable , Hashable , Sendable {
968+ @frozen public enum direction : String , Codable , Hashable , Sendable , CaseIterable {
960969 case asc = " asc "
961970 case desc = " desc "
962971 }
@@ -969,7 +978,7 @@ public enum Operations {
969978 /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/query/state`.
970979 public var state : Components . Schemas . campaign_hyphen_state ?
971980 /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/query/sort`.
972- @frozen public enum sortPayload : String , Codable , Hashable , Sendable {
981+ @frozen public enum sortPayload : String , Codable , Hashable , Sendable , CaseIterable {
973982 case created = " created "
974983 case updated = " updated "
975984 case ends_at = " ends_at "
@@ -1277,11 +1286,11 @@ public enum Operations {
12771286 }
12781287 public init ( from decoder: any Decoder ) throws {
12791288 let container = try decoder. container ( keyedBy: CodingKeys . self)
1280- repository_id = try container. decode (
1289+ self . repository_id = try container. decode (
12811290 Swift . Int. self,
12821291 forKey: . repository_id
12831292 )
1284- alert_numbers = try container. decode (
1293+ self . alert_numbers = try container. decode (
12851294 [ Swift . Int ] . self,
12861295 forKey: . alert_numbers
12871296 )
@@ -1345,35 +1354,35 @@ public enum Operations {
13451354 }
13461355 public init ( from decoder: any Decoder ) throws {
13471356 let container = try decoder. container ( keyedBy: CodingKeys . self)
1348- name = try container. decode (
1357+ self . name = try container. decode (
13491358 Swift . String. self,
13501359 forKey: . name
13511360 )
1352- description = try container. decode (
1361+ self . description = try container. decode (
13531362 Swift . String. self,
13541363 forKey: . description
13551364 )
1356- managers = try container. decodeIfPresent (
1365+ self . managers = try container. decodeIfPresent (
13571366 [ Swift . String ] . self,
13581367 forKey: . managers
13591368 )
1360- team_managers = try container. decodeIfPresent (
1369+ self . team_managers = try container. decodeIfPresent (
13611370 [ Swift . String ] . self,
13621371 forKey: . team_managers
13631372 )
1364- ends_at = try container. decode (
1373+ self . ends_at = try container. decode (
13651374 Foundation . Date. self,
13661375 forKey: . ends_at
13671376 )
1368- contact_link = try container. decodeIfPresent (
1377+ self . contact_link = try container. decodeIfPresent (
13691378 Swift . String. self,
13701379 forKey: . contact_link
13711380 )
1372- code_scanning_alerts = try container. decode (
1381+ self . code_scanning_alerts = try container. decode (
13731382 Operations . campaigns_sol_create_hyphen_campaign. Input. Body. jsonPayload. code_scanning_alertsPayload. self,
13741383 forKey: . code_scanning_alerts
13751384 )
1376- generate_issues = try container. decodeIfPresent (
1385+ self . generate_issues = try container. decodeIfPresent (
13771386 Swift . Bool. self,
13781387 forKey: . generate_issues
13791388 )
@@ -1596,6 +1605,14 @@ public enum Operations {
15961605 ///
15971606 /// HTTP response code: `429 tooManyRequests`.
15981607 case tooManyRequests( Operations . campaigns_sol_create_hyphen_campaign . Output . TooManyRequests )
1608+ /// Too Many Requests
1609+ ///
1610+ /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/post(campaigns/create-campaign)/responses/429`.
1611+ ///
1612+ /// HTTP response code: `429 tooManyRequests`.
1613+ public static var tooManyRequests : Self {
1614+ . tooManyRequests( . init( ) )
1615+ }
15991616 /// The associated value of the enum case if `self` is `.tooManyRequests`.
16001617 ///
16011618 /// - Throws: An error if `self` is not `.tooManyRequests`.
@@ -2026,31 +2043,31 @@ public enum Operations {
20262043 }
20272044 public init ( from decoder: any Decoder ) throws {
20282045 let container = try decoder. container ( keyedBy: CodingKeys . self)
2029- name = try container. decodeIfPresent (
2046+ self . name = try container. decodeIfPresent (
20302047 Swift . String. self,
20312048 forKey: . name
20322049 )
2033- description = try container. decodeIfPresent (
2050+ self . description = try container. decodeIfPresent (
20342051 Swift . String. self,
20352052 forKey: . description
20362053 )
2037- managers = try container. decodeIfPresent (
2054+ self . managers = try container. decodeIfPresent (
20382055 [ Swift . String ] . self,
20392056 forKey: . managers
20402057 )
2041- team_managers = try container. decodeIfPresent (
2058+ self . team_managers = try container. decodeIfPresent (
20422059 [ Swift . String ] . self,
20432060 forKey: . team_managers
20442061 )
2045- ends_at = try container. decodeIfPresent (
2062+ self . ends_at = try container. decodeIfPresent (
20462063 Foundation . Date. self,
20472064 forKey: . ends_at
20482065 )
2049- contact_link = try container. decodeIfPresent (
2066+ self . contact_link = try container. decodeIfPresent (
20502067 Swift . String. self,
20512068 forKey: . contact_link
20522069 )
2053- state = try container. decodeIfPresent (
2070+ self . state = try container. decodeIfPresent (
20542071 Components . Schemas. campaign_hyphen_state. self,
20552072 forKey: . state
20562073 )
@@ -2389,6 +2406,14 @@ public enum Operations {
23892406 ///
23902407 /// HTTP response code: `204 noContent`.
23912408 case noContent( Operations . campaigns_sol_delete_hyphen_campaign . Output . NoContent )
2409+ /// Deletion successful
2410+ ///
2411+ /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/delete(campaigns/delete-campaign)/responses/204`.
2412+ ///
2413+ /// HTTP response code: `204 noContent`.
2414+ public static var noContent : Self {
2415+ . noContent( . init( ) )
2416+ }
23922417 /// The associated value of the enum case if `self` is `.noContent`.
23932418 ///
23942419 /// - Throws: An error if `self` is not `.noContent`.
0 commit comments