You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/repos/Types.swift
+30-4Lines changed: 30 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -8568,6 +8568,11 @@ public enum Components {
8568
8568
}
8569
8569
/// - Remark: Generated from `#/components/schemas/security-and-analysis`.
8570
8570
public struct SecurityAndAnalysis: Codable, Hashable, Sendable {
8571
+
/// Enable or disable GitHub Advanced Security for the repository.
8572
+
///
8573
+
/// For standalone Code Scanning or Secret Protection products, this parameter cannot be used.
8574
+
///
8575
+
///
8571
8576
/// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`.
8572
8577
public struct AdvancedSecurityPayload: Codable, Hashable, Sendable {
8573
8578
/// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`.
@@ -8588,6 +8593,11 @@ public enum Components {
8588
8593
case status
8589
8594
}
8590
8595
}
8596
+
/// Enable or disable GitHub Advanced Security for the repository.
8597
+
///
8598
+
/// For standalone Code Scanning or Secret Protection products, this parameter cannot be used.
8599
+
///
8600
+
///
8591
8601
/// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`.
8592
8602
public var advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload?
8593
8603
/// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`.
@@ -8733,7 +8743,7 @@ public enum Components {
8733
8743
/// Creates a new `SecurityAndAnalysis`.
8734
8744
///
8735
8745
/// - Parameters:
8736
-
/// - advancedSecurity:
8746
+
/// - advancedSecurity: Enable or disable GitHub Advanced Security for the repository.
8737
8747
/// - codeSecurity:
8738
8748
/// - dependabotSecurityUpdates: Enable or disable Dependabot security updates for the repository.
8739
8749
/// - secretScanning:
@@ -21351,6 +21361,10 @@ public enum Components {
21351
21361
///
21352
21362
/// - Remark: Generated from `#/components/schemas/release/prerelease`.
21353
21363
public var prerelease: Swift.Bool
21364
+
/// Whether or not the release is immutable.
21365
+
///
21366
+
/// - Remark: Generated from `#/components/schemas/release/immutable`.
21367
+
public var immutable: Swift.Bool?
21354
21368
/// - Remark: Generated from `#/components/schemas/release/created_at`.
21355
21369
public var createdAt: Foundation.Date
21356
21370
/// - Remark: Generated from `#/components/schemas/release/published_at`.
@@ -21388,6 +21402,7 @@ public enum Components {
21388
21402
/// - body:
21389
21403
/// - draft: true to create a draft (unpublished) release, false to create a published one.
21390
21404
/// - prerelease: Whether to identify the release as a prerelease or a full release.
21405
+
/// - immutable: Whether or not the release is immutable.
21391
21406
/// - createdAt:
21392
21407
/// - publishedAt:
21393
21408
/// - author:
@@ -21412,6 +21427,7 @@ public enum Components {
21412
21427
body: Swift.String? = nil,
21413
21428
draft: Swift.Bool,
21414
21429
prerelease: Swift.Bool,
21430
+
immutable: Swift.Bool? = nil,
21415
21431
createdAt: Foundation.Date,
21416
21432
publishedAt: Foundation.Date? = nil,
21417
21433
author: Components.Schemas.SimpleUser,
@@ -21436,6 +21452,7 @@ public enum Components {
21436
21452
self.body = body
21437
21453
self.draft = draft
21438
21454
self.prerelease = prerelease
21455
+
self.immutable = immutable
21439
21456
self.createdAt = createdAt
21440
21457
self.publishedAt = publishedAt
21441
21458
self.author = author
@@ -21461,6 +21478,7 @@ public enum Components {
21461
21478
case body
21462
21479
case draft
21463
21480
case prerelease
21481
+
case immutable
21464
21482
case createdAt = "created_at"
21465
21483
case publishedAt = "published_at"
21466
21484
case author
@@ -25948,7 +25966,11 @@ public enum Operations {
25948
25966
///
25949
25967
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis`.
25950
25968
public struct SecurityAndAnalysisPayload: Codable, Hashable, Sendable {
25951
-
/// 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)."
25969
+
/// Use the `status` property to enable or disable GitHub Advanced Security for this repository.
25970
+
/// For more information, see "[About GitHub Advanced
/// For standalone Code Scanning or Secret Protection products, this parameter cannot be used.
25952
25974
///
25953
25975
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/advanced_security`.
25954
25976
public struct AdvancedSecurityPayload: Codable, Hashable, Sendable {
@@ -25967,7 +25989,11 @@ public enum Operations {
25967
25989
case status
25968
25990
}
25969
25991
}
25970
-
/// 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)."
25992
+
/// Use the `status` property to enable or disable GitHub Advanced Security for this repository.
25993
+
/// For more information, see "[About GitHub Advanced
/// For standalone Code Scanning or Secret Protection products, this parameter cannot be used.
25971
25997
///
25972
25998
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/advanced_security`.
25973
25999
public var advancedSecurity: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.AdvancedSecurityPayload?
@@ -26089,7 +26115,7 @@ public enum Operations {
26089
26115
/// Creates a new `SecurityAndAnalysisPayload`.
26090
26116
///
26091
26117
/// - Parameters:
26092
-
/// - advancedSecurity: 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)."
26118
+
/// - advancedSecurity: Use the `status` property to enable or disable GitHub Advanced Security for this repository.
26093
26119
/// - codeSecurity: Use the `status` property to enable or disable GitHub Code Security for this repository.
26094
26120
/// - secretScanning: 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)."
26095
26121
/// - secretScanningPushProtection: 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)."
0 commit comments