@@ -181,6 +181,15 @@ extension APIProtocol {
181
181
182
182
/// Server URLs defined in the OpenAPI document.
183
183
public 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 " )
184
193
public static func server1( ) throws -> Foundation . URL {
185
194
try Foundation . URL (
186
195
validatingOpenAPIServerURL: " https://api.github.com " ,
@@ -378,7 +387,7 @@ public enum Components {
378
387
/// Indicates whether a campaign is open or closed
379
388
///
380
389
/// - 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 {
382
391
case open = " open "
383
392
case closed = " closed "
384
393
}
@@ -713,15 +722,15 @@ public enum Components {
713
722
}
714
723
public init ( from decoder: any Decoder ) throws {
715
724
let container = try decoder. container ( keyedBy: CodingKeys . self)
716
- open_count = try container. decode (
725
+ self . open_count = try container. decode (
717
726
Swift . Int. self,
718
727
forKey: . open_count
719
728
)
720
- closed_count = try container. decode (
729
+ self . closed_count = try container. decode (
721
730
Swift . Int. self,
722
731
forKey: . closed_count
723
732
)
724
- in_progress_count = try container. decode (
733
+ self . in_progress_count = try container. decode (
725
734
Swift . Int. self,
726
735
forKey: . in_progress_count
727
736
)
@@ -801,7 +810,7 @@ public enum Components {
801
810
/// The direction to sort the results by.
802
811
///
803
812
/// - 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 {
805
814
case asc = " asc "
806
815
case desc = " desc "
807
816
}
@@ -956,7 +965,7 @@ public enum Operations {
956
965
/// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/query/per_page`.
957
966
public var per_page : Components . Parameters . per_hyphen_page ?
958
967
/// - 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 {
960
969
case asc = " asc "
961
970
case desc = " desc "
962
971
}
@@ -969,7 +978,7 @@ public enum Operations {
969
978
/// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/query/state`.
970
979
public var state : Components . Schemas . campaign_hyphen_state ?
971
980
/// - 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 {
973
982
case created = " created "
974
983
case updated = " updated "
975
984
case ends_at = " ends_at "
@@ -1277,11 +1286,11 @@ public enum Operations {
1277
1286
}
1278
1287
public init ( from decoder: any Decoder ) throws {
1279
1288
let container = try decoder. container ( keyedBy: CodingKeys . self)
1280
- repository_id = try container. decode (
1289
+ self . repository_id = try container. decode (
1281
1290
Swift . Int. self,
1282
1291
forKey: . repository_id
1283
1292
)
1284
- alert_numbers = try container. decode (
1293
+ self . alert_numbers = try container. decode (
1285
1294
[ Swift . Int ] . self,
1286
1295
forKey: . alert_numbers
1287
1296
)
@@ -1345,35 +1354,35 @@ public enum Operations {
1345
1354
}
1346
1355
public init ( from decoder: any Decoder ) throws {
1347
1356
let container = try decoder. container ( keyedBy: CodingKeys . self)
1348
- name = try container. decode (
1357
+ self . name = try container. decode (
1349
1358
Swift . String. self,
1350
1359
forKey: . name
1351
1360
)
1352
- description = try container. decode (
1361
+ self . description = try container. decode (
1353
1362
Swift . String. self,
1354
1363
forKey: . description
1355
1364
)
1356
- managers = try container. decodeIfPresent (
1365
+ self . managers = try container. decodeIfPresent (
1357
1366
[ Swift . String ] . self,
1358
1367
forKey: . managers
1359
1368
)
1360
- team_managers = try container. decodeIfPresent (
1369
+ self . team_managers = try container. decodeIfPresent (
1361
1370
[ Swift . String ] . self,
1362
1371
forKey: . team_managers
1363
1372
)
1364
- ends_at = try container. decode (
1373
+ self . ends_at = try container. decode (
1365
1374
Foundation . Date. self,
1366
1375
forKey: . ends_at
1367
1376
)
1368
- contact_link = try container. decodeIfPresent (
1377
+ self . contact_link = try container. decodeIfPresent (
1369
1378
Swift . String. self,
1370
1379
forKey: . contact_link
1371
1380
)
1372
- code_scanning_alerts = try container. decode (
1381
+ self . code_scanning_alerts = try container. decode (
1373
1382
Operations . campaigns_sol_create_hyphen_campaign. Input. Body. jsonPayload. code_scanning_alertsPayload. self,
1374
1383
forKey: . code_scanning_alerts
1375
1384
)
1376
- generate_issues = try container. decodeIfPresent (
1385
+ self . generate_issues = try container. decodeIfPresent (
1377
1386
Swift . Bool. self,
1378
1387
forKey: . generate_issues
1379
1388
)
@@ -1596,6 +1605,14 @@ public enum Operations {
1596
1605
///
1597
1606
/// HTTP response code: `429 tooManyRequests`.
1598
1607
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
+ }
1599
1616
/// The associated value of the enum case if `self` is `.tooManyRequests`.
1600
1617
///
1601
1618
/// - Throws: An error if `self` is not `.tooManyRequests`.
@@ -2026,31 +2043,31 @@ public enum Operations {
2026
2043
}
2027
2044
public init ( from decoder: any Decoder ) throws {
2028
2045
let container = try decoder. container ( keyedBy: CodingKeys . self)
2029
- name = try container. decodeIfPresent (
2046
+ self . name = try container. decodeIfPresent (
2030
2047
Swift . String. self,
2031
2048
forKey: . name
2032
2049
)
2033
- description = try container. decodeIfPresent (
2050
+ self . description = try container. decodeIfPresent (
2034
2051
Swift . String. self,
2035
2052
forKey: . description
2036
2053
)
2037
- managers = try container. decodeIfPresent (
2054
+ self . managers = try container. decodeIfPresent (
2038
2055
[ Swift . String ] . self,
2039
2056
forKey: . managers
2040
2057
)
2041
- team_managers = try container. decodeIfPresent (
2058
+ self . team_managers = try container. decodeIfPresent (
2042
2059
[ Swift . String ] . self,
2043
2060
forKey: . team_managers
2044
2061
)
2045
- ends_at = try container. decodeIfPresent (
2062
+ self . ends_at = try container. decodeIfPresent (
2046
2063
Foundation . Date. self,
2047
2064
forKey: . ends_at
2048
2065
)
2049
- contact_link = try container. decodeIfPresent (
2066
+ self . contact_link = try container. decodeIfPresent (
2050
2067
Swift . String. self,
2051
2068
forKey: . contact_link
2052
2069
)
2053
- state = try container. decodeIfPresent (
2070
+ self . state = try container. decodeIfPresent (
2054
2071
Components . Schemas. campaign_hyphen_state. self,
2055
2072
forKey: . state
2056
2073
)
@@ -2389,6 +2406,14 @@ public enum Operations {
2389
2406
///
2390
2407
/// HTTP response code: `204 noContent`.
2391
2408
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
+ }
2392
2417
/// The associated value of the enum case if `self` is `.noContent`.
2393
2418
///
2394
2419
/// - Throws: An error if `self` is not `.noContent`.
0 commit comments