Skip to content

Commit 8040453

Browse files
Commit via running ake Sources/repos
1 parent 143f475 commit 8040453

File tree

2 files changed

+46
-15
lines changed

2 files changed

+46
-15
lines changed

Sources/repos/Client.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14745,6 +14745,8 @@ public struct Client: APIProtocol {
1474514745
preconditionFailure("bestContentType chose an invalid content type.")
1474614746
}
1474714747
return .ok(.init(body: body))
14748+
case 304:
14749+
return .notModified(.init())
1474814750
case 404:
1474914751
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
1475014752
let body: Components.Responses.not_found.Body

Sources/repos/Types.swift

Lines changed: 44 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6221,6 +6221,8 @@ public enum Components {
62216221
public var slug: Swift.String?
62226222
/// - Remark: Generated from `#/components/schemas/integration/node_id`.
62236223
public var node_id: Swift.String
6224+
/// - Remark: Generated from `#/components/schemas/integration/client_id`.
6225+
public var client_id: Swift.String?
62246226
/// - Remark: Generated from `#/components/schemas/integration/owner`.
62256227
public var owner: Components.Schemas.nullable_hyphen_simple_hyphen_user?
62266228
/// The name of the GitHub app
@@ -6351,8 +6353,6 @@ public enum Components {
63516353
///
63526354
/// - Remark: Generated from `#/components/schemas/integration/installations_count`.
63536355
public var installations_count: Swift.Int?
6354-
/// - Remark: Generated from `#/components/schemas/integration/client_id`.
6355-
public var client_id: Swift.String?
63566356
/// - Remark: Generated from `#/components/schemas/integration/client_secret`.
63576357
public var client_secret: Swift.String?
63586358
/// - Remark: Generated from `#/components/schemas/integration/webhook_secret`.
@@ -6365,6 +6365,7 @@ public enum Components {
63656365
/// - id: Unique identifier of the GitHub app
63666366
/// - slug: The slug name of the GitHub app
63676367
/// - node_id:
6368+
/// - client_id:
63686369
/// - owner:
63696370
/// - name: The name of the GitHub app
63706371
/// - description:
@@ -6375,14 +6376,14 @@ public enum Components {
63756376
/// - permissions: The set of permissions for the GitHub app
63766377
/// - events: The list of events for the GitHub app
63776378
/// - installations_count: The number of installations associated with the GitHub app
6378-
/// - client_id:
63796379
/// - client_secret:
63806380
/// - webhook_secret:
63816381
/// - pem:
63826382
public init(
63836383
id: Swift.Int,
63846384
slug: Swift.String? = nil,
63856385
node_id: Swift.String,
6386+
client_id: Swift.String? = nil,
63866387
owner: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil,
63876388
name: Swift.String,
63886389
description: Swift.String? = nil,
@@ -6393,14 +6394,14 @@ public enum Components {
63936394
permissions: Components.Schemas.integration.permissionsPayload,
63946395
events: [Swift.String],
63956396
installations_count: Swift.Int? = nil,
6396-
client_id: Swift.String? = nil,
63976397
client_secret: Swift.String? = nil,
63986398
webhook_secret: Swift.String? = nil,
63996399
pem: Swift.String? = nil
64006400
) {
64016401
self.id = id
64026402
self.slug = slug
64036403
self.node_id = node_id
6404+
self.client_id = client_id
64046405
self.owner = owner
64056406
self.name = name
64066407
self.description = description
@@ -6411,7 +6412,6 @@ public enum Components {
64116412
self.permissions = permissions
64126413
self.events = events
64136414
self.installations_count = installations_count
6414-
self.client_id = client_id
64156415
self.client_secret = client_secret
64166416
self.webhook_secret = webhook_secret
64176417
self.pem = pem
@@ -6420,6 +6420,7 @@ public enum Components {
64206420
case id
64216421
case slug
64226422
case node_id
6423+
case client_id
64236424
case owner
64246425
case name
64256426
case description
@@ -6430,7 +6431,6 @@ public enum Components {
64306431
case permissions
64316432
case events
64326433
case installations_count
6433-
case client_id
64346434
case client_secret
64356435
case webhook_secret
64366436
case pem
@@ -8261,6 +8261,8 @@ public enum Components {
82618261
public var slug: Swift.String?
82628262
/// - Remark: Generated from `#/components/schemas/nullable-integration/node_id`.
82638263
public var node_id: Swift.String
8264+
/// - Remark: Generated from `#/components/schemas/nullable-integration/client_id`.
8265+
public var client_id: Swift.String?
82648266
/// - Remark: Generated from `#/components/schemas/nullable-integration/owner`.
82658267
public var owner: Components.Schemas.nullable_hyphen_simple_hyphen_user?
82668268
/// The name of the GitHub app
@@ -8391,8 +8393,6 @@ public enum Components {
83918393
///
83928394
/// - Remark: Generated from `#/components/schemas/nullable-integration/installations_count`.
83938395
public var installations_count: Swift.Int?
8394-
/// - Remark: Generated from `#/components/schemas/nullable-integration/client_id`.
8395-
public var client_id: Swift.String?
83968396
/// - Remark: Generated from `#/components/schemas/nullable-integration/client_secret`.
83978397
public var client_secret: Swift.String?
83988398
/// - Remark: Generated from `#/components/schemas/nullable-integration/webhook_secret`.
@@ -8405,6 +8405,7 @@ public enum Components {
84058405
/// - id: Unique identifier of the GitHub app
84068406
/// - slug: The slug name of the GitHub app
84078407
/// - node_id:
8408+
/// - client_id:
84088409
/// - owner:
84098410
/// - name: The name of the GitHub app
84108411
/// - description:
@@ -8415,14 +8416,14 @@ public enum Components {
84158416
/// - permissions: The set of permissions for the GitHub app
84168417
/// - events: The list of events for the GitHub app
84178418
/// - installations_count: The number of installations associated with the GitHub app
8418-
/// - client_id:
84198419
/// - client_secret:
84208420
/// - webhook_secret:
84218421
/// - pem:
84228422
public init(
84238423
id: Swift.Int,
84248424
slug: Swift.String? = nil,
84258425
node_id: Swift.String,
8426+
client_id: Swift.String? = nil,
84268427
owner: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil,
84278428
name: Swift.String,
84288429
description: Swift.String? = nil,
@@ -8433,14 +8434,14 @@ public enum Components {
84338434
permissions: Components.Schemas.nullable_hyphen_integration.permissionsPayload,
84348435
events: [Swift.String],
84358436
installations_count: Swift.Int? = nil,
8436-
client_id: Swift.String? = nil,
84378437
client_secret: Swift.String? = nil,
84388438
webhook_secret: Swift.String? = nil,
84398439
pem: Swift.String? = nil
84408440
) {
84418441
self.id = id
84428442
self.slug = slug
84438443
self.node_id = node_id
8444+
self.client_id = client_id
84448445
self.owner = owner
84458446
self.name = name
84468447
self.description = description
@@ -8451,7 +8452,6 @@ public enum Components {
84518452
self.permissions = permissions
84528453
self.events = events
84538454
self.installations_count = installations_count
8454-
self.client_id = client_id
84558455
self.client_secret = client_secret
84568456
self.webhook_secret = webhook_secret
84578457
self.pem = pem
@@ -8460,6 +8460,7 @@ public enum Components {
84608460
case id
84618461
case slug
84628462
case node_id
8463+
case client_id
84638464
case owner
84648465
case name
84658466
case description
@@ -8470,7 +8471,6 @@ public enum Components {
84708471
case permissions
84718472
case events
84728473
case installations_count
8473-
case client_id
84748474
case client_secret
84758475
case webhook_secret
84768476
case pem
@@ -14477,6 +14477,8 @@ public enum Components {
1447714477
public var owner: Components.Schemas.branch_hyphen_restriction_hyphen_policy.appsPayloadPayload.ownerPayload?
1447814478
/// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/name`.
1447914479
public var name: Swift.String?
14480+
/// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/client_id`.
14481+
public var client_id: Swift.String?
1448014482
/// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/description`.
1448114483
public var description: Swift.String?
1448214484
/// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/external_url`.
@@ -14534,6 +14536,7 @@ public enum Components {
1453414536
/// - node_id:
1453514537
/// - owner:
1453614538
/// - name:
14539+
/// - client_id:
1453714540
/// - description:
1453814541
/// - external_url:
1453914542
/// - html_url:
@@ -14547,6 +14550,7 @@ public enum Components {
1454714550
node_id: Swift.String? = nil,
1454814551
owner: Components.Schemas.branch_hyphen_restriction_hyphen_policy.appsPayloadPayload.ownerPayload? = nil,
1454914552
name: Swift.String? = nil,
14553+
client_id: Swift.String? = nil,
1455014554
description: Swift.String? = nil,
1455114555
external_url: Swift.String? = nil,
1455214556
html_url: Swift.String? = nil,
@@ -14560,6 +14564,7 @@ public enum Components {
1456014564
self.node_id = node_id
1456114565
self.owner = owner
1456214566
self.name = name
14567+
self.client_id = client_id
1456314568
self.description = description
1456414569
self.external_url = external_url
1456514570
self.html_url = html_url
@@ -14574,6 +14579,7 @@ public enum Components {
1457414579
case node_id
1457514580
case owner
1457614581
case name
14582+
case client_id
1457714583
case description
1457814584
case external_url
1457914585
case html_url
@@ -25238,7 +25244,7 @@ public enum Operations {
2523825244
///
2523925245
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_push_protection`.
2524025246
public var secret_scanning_push_protection: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_push_protectionPayload?
25241-
/// Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Secret scanning supported secrets](/code-security/secret-scanning/secret-scanning-patterns#supported-secrets)."
25247+
/// Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."
2524225248
///
2524325249
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_non_provider_patterns`.
2524425250
public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable {
@@ -25257,7 +25263,7 @@ public enum Operations {
2525725263
case status
2525825264
}
2525925265
}
25260-
/// Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Secret scanning supported secrets](/code-security/secret-scanning/secret-scanning-patterns#supported-secrets)."
25266+
/// Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."
2526125267
///
2526225268
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_non_provider_patterns`.
2526325269
public var secret_scanning_non_provider_patterns: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_non_provider_patternsPayload?
@@ -25267,7 +25273,7 @@ public enum Operations {
2526725273
/// - advanced_security: Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."
2526825274
/// - secret_scanning: Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."
2526925275
/// - secret_scanning_push_protection: Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."
25270-
/// - secret_scanning_non_provider_patterns: Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Secret scanning supported secrets](/code-security/secret-scanning/secret-scanning-patterns#supported-secrets)."
25276+
/// - secret_scanning_non_provider_patterns: Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."
2527125277
public init(
2527225278
advanced_security: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.advanced_securityPayload? = nil,
2527325279
secret_scanning: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanningPayload? = nil,
@@ -53670,6 +53676,29 @@ public enum Operations {
5367053676
}
5367153677
}
5367253678
}
53679+
/// Not modified
53680+
///
53681+
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/get(repos/get-readme)/responses/304`.
53682+
///
53683+
/// HTTP response code: `304 notModified`.
53684+
case notModified(Components.Responses.not_modified)
53685+
/// The associated value of the enum case if `self` is `.notModified`.
53686+
///
53687+
/// - Throws: An error if `self` is not `.notModified`.
53688+
/// - SeeAlso: `.notModified`.
53689+
public var notModified: Components.Responses.not_modified {
53690+
get throws {
53691+
switch self {
53692+
case let .notModified(response):
53693+
return response
53694+
default:
53695+
try throwUnexpectedResponseStatus(
53696+
expectedStatus: "notModified",
53697+
response: self
53698+
)
53699+
}
53700+
}
53701+
}
5367353702
/// Resource not found
5367453703
///
5367553704
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/get(repos/get-readme)/responses/404`.

0 commit comments

Comments
 (0)