Skip to content

Commit d7dd9ce

Browse files
Commit via running ake Sources/repos
1 parent daf9381 commit d7dd9ce

File tree

1 file changed

+131
-8
lines changed

1 file changed

+131
-8
lines changed

Sources/repos/Types.swift

Lines changed: 131 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8604,29 +8604,55 @@ public enum Components {
86048604
}
86058605
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`.
86068606
public var secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload?
8607+
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`.
8608+
public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable {
8609+
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`.
8610+
@frozen public enum statusPayload: String, Codable, Hashable, Sendable {
8611+
case enabled = "enabled"
8612+
case disabled = "disabled"
8613+
}
8614+
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`.
8615+
public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload?
8616+
/// Creates a new `secret_scanning_non_provider_patternsPayload`.
8617+
///
8618+
/// - Parameters:
8619+
/// - status:
8620+
public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? = nil) {
8621+
self.status = status
8622+
}
8623+
public enum CodingKeys: String, CodingKey {
8624+
case status
8625+
}
8626+
}
8627+
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`.
8628+
public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload?
86078629
/// Creates a new `security_hyphen_and_hyphen_analysis`.
86088630
///
86098631
/// - Parameters:
86108632
/// - advanced_security:
86118633
/// - dependabot_security_updates: Enable or disable Dependabot security updates for the repository.
86128634
/// - secret_scanning:
86138635
/// - secret_scanning_push_protection:
8636+
/// - secret_scanning_non_provider_patterns:
86148637
public init(
86158638
advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil,
86168639
dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil,
86178640
secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil,
8618-
secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil
8641+
secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil,
8642+
secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil
86198643
) {
86208644
self.advanced_security = advanced_security
86218645
self.dependabot_security_updates = dependabot_security_updates
86228646
self.secret_scanning = secret_scanning
86238647
self.secret_scanning_push_protection = secret_scanning_push_protection
8648+
self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns
86248649
}
86258650
public enum CodingKeys: String, CodingKey {
86268651
case advanced_security
86278652
case dependabot_security_updates
86288653
case secret_scanning
86298654
case secret_scanning_push_protection
8655+
case secret_scanning_non_provider_patterns
86308656
}
86318657
}
86328658
/// Minimal Repository
@@ -14953,9 +14979,79 @@ public enum Components {
1495314979
/// - Remark: Generated from `#/components/schemas/commit/commit`.
1495414980
public var commit: Components.Schemas.commit.commitPayload
1495514981
/// - Remark: Generated from `#/components/schemas/commit/author`.
14956-
public var author: Components.Schemas.nullable_hyphen_simple_hyphen_user?
14982+
@frozen public enum authorPayload: Codable, Hashable, Sendable {
14983+
/// - Remark: Generated from `#/components/schemas/commit/author/case1`.
14984+
case simple_hyphen_user(Components.Schemas.simple_hyphen_user)
14985+
/// - Remark: Generated from `#/components/schemas/commit/author/case2`.
14986+
case empty_hyphen_object(Components.Schemas.empty_hyphen_object)
14987+
public init(from decoder: any Decoder) throws {
14988+
var errors: [any Error] = []
14989+
do {
14990+
self = .simple_hyphen_user(try .init(from: decoder))
14991+
return
14992+
} catch {
14993+
errors.append(error)
14994+
}
14995+
do {
14996+
self = .empty_hyphen_object(try .init(from: decoder))
14997+
return
14998+
} catch {
14999+
errors.append(error)
15000+
}
15001+
throw Swift.DecodingError.failedToDecodeOneOfSchema(
15002+
type: Self.self,
15003+
codingPath: decoder.codingPath,
15004+
errors: errors
15005+
)
15006+
}
15007+
public func encode(to encoder: any Encoder) throws {
15008+
switch self {
15009+
case let .simple_hyphen_user(value):
15010+
try value.encode(to: encoder)
15011+
case let .empty_hyphen_object(value):
15012+
try value.encode(to: encoder)
15013+
}
15014+
}
15015+
}
15016+
/// - Remark: Generated from `#/components/schemas/commit/author`.
15017+
public var author: Components.Schemas.commit.authorPayload?
15018+
/// - Remark: Generated from `#/components/schemas/commit/committer`.
15019+
@frozen public enum committerPayload: Codable, Hashable, Sendable {
15020+
/// - Remark: Generated from `#/components/schemas/commit/committer/case1`.
15021+
case simple_hyphen_user(Components.Schemas.simple_hyphen_user)
15022+
/// - Remark: Generated from `#/components/schemas/commit/committer/case2`.
15023+
case empty_hyphen_object(Components.Schemas.empty_hyphen_object)
15024+
public init(from decoder: any Decoder) throws {
15025+
var errors: [any Error] = []
15026+
do {
15027+
self = .simple_hyphen_user(try .init(from: decoder))
15028+
return
15029+
} catch {
15030+
errors.append(error)
15031+
}
15032+
do {
15033+
self = .empty_hyphen_object(try .init(from: decoder))
15034+
return
15035+
} catch {
15036+
errors.append(error)
15037+
}
15038+
throw Swift.DecodingError.failedToDecodeOneOfSchema(
15039+
type: Self.self,
15040+
codingPath: decoder.codingPath,
15041+
errors: errors
15042+
)
15043+
}
15044+
public func encode(to encoder: any Encoder) throws {
15045+
switch self {
15046+
case let .simple_hyphen_user(value):
15047+
try value.encode(to: encoder)
15048+
case let .empty_hyphen_object(value):
15049+
try value.encode(to: encoder)
15050+
}
15051+
}
15052+
}
1495715053
/// - Remark: Generated from `#/components/schemas/commit/committer`.
14958-
public var committer: Components.Schemas.nullable_hyphen_simple_hyphen_user?
15054+
public var committer: Components.Schemas.commit.committerPayload?
1495915055
/// - Remark: Generated from `#/components/schemas/commit/parentsPayload`.
1496015056
public struct parentsPayloadPayload: Codable, Hashable, Sendable {
1496115057
/// - Remark: Generated from `#/components/schemas/commit/parentsPayload/sha`.
@@ -15043,8 +15139,8 @@ public enum Components {
1504315139
html_url: Swift.String,
1504415140
comments_url: Swift.String,
1504515141
commit: Components.Schemas.commit.commitPayload,
15046-
author: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil,
15047-
committer: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil,
15142+
author: Components.Schemas.commit.authorPayload? = nil,
15143+
committer: Components.Schemas.commit.committerPayload? = nil,
1504815144
parents: Components.Schemas.commit.parentsPayload,
1504915145
stats: Components.Schemas.commit.statsPayload? = nil,
1505015146
files: [Components.Schemas.diff_hyphen_entry]? = nil
@@ -24875,25 +24971,52 @@ public enum Operations {
2487524971
///
2487624972
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_push_protection`.
2487724973
public var secret_scanning_push_protection: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_push_protectionPayload?
24974+
/// 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)."
24975+
///
24976+
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_non_provider_patterns`.
24977+
public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable {
24978+
/// Can be `enabled` or `disabled`.
24979+
///
24980+
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_non_provider_patterns/status`.
24981+
public var status: Swift.String?
24982+
/// Creates a new `secret_scanning_non_provider_patternsPayload`.
24983+
///
24984+
/// - Parameters:
24985+
/// - status: Can be `enabled` or `disabled`.
24986+
public init(status: Swift.String? = nil) {
24987+
self.status = status
24988+
}
24989+
public enum CodingKeys: String, CodingKey {
24990+
case status
24991+
}
24992+
}
24993+
/// 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)."
24994+
///
24995+
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_non_provider_patterns`.
24996+
public var secret_scanning_non_provider_patterns: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_non_provider_patternsPayload?
2487824997
/// Creates a new `security_and_analysisPayload`.
2487924998
///
2488024999
/// - Parameters:
2488125000
/// - 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)."
2488225001
/// - 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)."
2488325002
/// - 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)."
25003+
/// - 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)."
2488425004
public init(
2488525005
advanced_security: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.advanced_securityPayload? = nil,
2488625006
secret_scanning: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanningPayload? = nil,
24887-
secret_scanning_push_protection: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_push_protectionPayload? = nil
25007+
secret_scanning_push_protection: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_push_protectionPayload? = nil,
25008+
secret_scanning_non_provider_patterns: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_non_provider_patternsPayload? = nil
2488825009
) {
2488925010
self.advanced_security = advanced_security
2489025011
self.secret_scanning = secret_scanning
2489125012
self.secret_scanning_push_protection = secret_scanning_push_protection
25013+
self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns
2489225014
}
2489325015
public enum CodingKeys: String, CodingKey {
2489425016
case advanced_security
2489525017
case secret_scanning
2489625018
case secret_scanning_push_protection
25019+
case secret_scanning_non_provider_patterns
2489725020
}
2489825021
}
2489925022
/// Specify which security and analysis features to enable or disable for the repository.
@@ -27250,7 +27373,7 @@ public enum Operations {
2725027373
self.body = body
2725127374
}
2725227375
}
27253-
/// Response if dependabot is enabled
27376+
/// Response if Dependabot is enabled
2725427377
///
2725527378
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/get(repos/check-automated-security-fixes)/responses/200`.
2725627379
///
@@ -27277,7 +27400,7 @@ public enum Operations {
2727727400
/// Creates a new `NotFound`.
2727827401
public init() {}
2727927402
}
27280-
/// Not Found if dependabot is not enabled for the repository
27403+
/// Not Found if Dependabot is not enabled for the repository
2728127404
///
2728227405
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/get(repos/check-automated-security-fixes)/responses/404`.
2728327406
///

0 commit comments

Comments
 (0)