Skip to content

Commit a3b7056

Browse files
Commit via running: make Sources/code-scanning
1 parent 02ebfa7 commit a3b7056

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Sources/code-scanning/Types.swift

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3290,6 +3290,17 @@ public enum Components {
32903290
///
32913291
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/query_suite`.
32923292
public var querySuite: Components.Schemas.CodeScanningDefaultSetup.QuerySuitePayload?
3293+
/// Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.
3294+
///
3295+
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/threat_model`.
3296+
@frozen public enum ThreatModelPayload: String, Codable, Hashable, Sendable, CaseIterable {
3297+
case remote = "remote"
3298+
case remoteAndLocal = "remote_and_local"
3299+
}
3300+
/// Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.
3301+
///
3302+
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/threat_model`.
3303+
public var threatModel: Components.Schemas.CodeScanningDefaultSetup.ThreatModelPayload?
32933304
/// Timestamp of latest configuration update.
32943305
///
32953306
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/updated_at`.
@@ -3312,6 +3323,7 @@ public enum Components {
33123323
/// - runnerType: Runner type to be used.
33133324
/// - runnerLabel: Runner label to be used if the runner type is labeled.
33143325
/// - querySuite: CodeQL query suite to be used.
3326+
/// - threatModel: Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.
33153327
/// - updatedAt: Timestamp of latest configuration update.
33163328
/// - schedule: The frequency of the periodic analysis.
33173329
public init(
@@ -3320,6 +3332,7 @@ public enum Components {
33203332
runnerType: Components.Schemas.CodeScanningDefaultSetup.RunnerTypePayload? = nil,
33213333
runnerLabel: Swift.String? = nil,
33223334
querySuite: Components.Schemas.CodeScanningDefaultSetup.QuerySuitePayload? = nil,
3335+
threatModel: Components.Schemas.CodeScanningDefaultSetup.ThreatModelPayload? = nil,
33233336
updatedAt: Foundation.Date? = nil,
33243337
schedule: Components.Schemas.CodeScanningDefaultSetup.SchedulePayload? = nil
33253338
) {
@@ -3328,6 +3341,7 @@ public enum Components {
33283341
self.runnerType = runnerType
33293342
self.runnerLabel = runnerLabel
33303343
self.querySuite = querySuite
3344+
self.threatModel = threatModel
33313345
self.updatedAt = updatedAt
33323346
self.schedule = schedule
33333347
}
@@ -3337,6 +3351,7 @@ public enum Components {
33373351
case runnerType = "runner_type"
33383352
case runnerLabel = "runner_label"
33393353
case querySuite = "query_suite"
3354+
case threatModel = "threat_model"
33403355
case updatedAt = "updated_at"
33413356
case schedule
33423357
}
@@ -3382,6 +3397,17 @@ public enum Components {
33823397
///
33833398
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/query_suite`.
33843399
public var querySuite: Components.Schemas.CodeScanningDefaultSetupUpdate.QuerySuitePayload?
3400+
/// Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.
3401+
///
3402+
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/threat_model`.
3403+
@frozen public enum ThreatModelPayload: String, Codable, Hashable, Sendable, CaseIterable {
3404+
case remote = "remote"
3405+
case remoteAndLocal = "remote_and_local"
3406+
}
3407+
/// Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.
3408+
///
3409+
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/threat_model`.
3410+
public var threatModel: Components.Schemas.CodeScanningDefaultSetupUpdate.ThreatModelPayload?
33853411
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/LanguagesPayload`.
33863412
@frozen public enum LanguagesPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {
33873413
case actions = "actions"
@@ -3409,25 +3435,29 @@ public enum Components {
34093435
/// - runnerType: Runner type to be used.
34103436
/// - runnerLabel: Runner label to be used if the runner type is labeled.
34113437
/// - querySuite: CodeQL query suite to be used.
3438+
/// - threatModel: Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.
34123439
/// - languages: CodeQL languages to be analyzed.
34133440
public init(
34143441
state: Components.Schemas.CodeScanningDefaultSetupUpdate.StatePayload? = nil,
34153442
runnerType: Components.Schemas.CodeScanningDefaultSetupUpdate.RunnerTypePayload? = nil,
34163443
runnerLabel: Swift.String? = nil,
34173444
querySuite: Components.Schemas.CodeScanningDefaultSetupUpdate.QuerySuitePayload? = nil,
3445+
threatModel: Components.Schemas.CodeScanningDefaultSetupUpdate.ThreatModelPayload? = nil,
34183446
languages: Components.Schemas.CodeScanningDefaultSetupUpdate.LanguagesPayload? = nil
34193447
) {
34203448
self.state = state
34213449
self.runnerType = runnerType
34223450
self.runnerLabel = runnerLabel
34233451
self.querySuite = querySuite
3452+
self.threatModel = threatModel
34243453
self.languages = languages
34253454
}
34263455
public enum CodingKeys: String, CodingKey {
34273456
case state
34283457
case runnerType = "runner_type"
34293458
case runnerLabel = "runner_label"
34303459
case querySuite = "query_suite"
3460+
case threatModel = "threat_model"
34313461
case languages
34323462
}
34333463
public init(from decoder: any Decoder) throws {
@@ -3448,6 +3478,10 @@ public enum Components {
34483478
Components.Schemas.CodeScanningDefaultSetupUpdate.QuerySuitePayload.self,
34493479
forKey: .querySuite
34503480
)
3481+
self.threatModel = try container.decodeIfPresent(
3482+
Components.Schemas.CodeScanningDefaultSetupUpdate.ThreatModelPayload.self,
3483+
forKey: .threatModel
3484+
)
34513485
self.languages = try container.decodeIfPresent(
34523486
Components.Schemas.CodeScanningDefaultSetupUpdate.LanguagesPayload.self,
34533487
forKey: .languages
@@ -3457,6 +3491,7 @@ public enum Components {
34573491
"runner_type",
34583492
"runner_label",
34593493
"query_suite",
3494+
"threat_model",
34603495
"languages"
34613496
])
34623497
}

0 commit comments

Comments
 (0)