Skip to content

Commit daaecc3

Browse files
Merge pull request #65 from Wei18/dependabot/submodules/Submodule/github/rest-api-description-2a8a2c6
Bump Submodule/github/rest-api-description from `9272e44` to `2a8a2c6`
2 parents 33dfa10 + 6067a6e commit daaecc3

File tree

6 files changed

+312
-120
lines changed

6 files changed

+312
-120
lines changed

Sources/code-security/Types.swift

+9-7
Original file line numberDiff line numberDiff line change
@@ -1241,9 +1241,11 @@ public enum Components {
12411241
case attached = "attached"
12421242
case attaching = "attaching"
12431243
case detached = "detached"
1244+
case removed = "removed"
12441245
case enforced = "enforced"
12451246
case failed = "failed"
12461247
case updating = "updating"
1248+
case removed_by_enterprise = "removed_by_enterprise"
12471249
}
12481250
/// The attachment status of the code security configuration on the repository.
12491251
///
@@ -1858,14 +1860,14 @@ public enum Operations {
18581860
///
18591861
/// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/private_vulnerability_reporting`.
18601862
public var private_vulnerability_reporting: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.private_vulnerability_reportingPayload?
1861-
/// The status of enforcement
1863+
/// The enforcement status for a security configuration
18621864
///
18631865
/// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/enforcement`.
18641866
@frozen public enum enforcementPayload: String, Codable, Hashable, Sendable {
18651867
case enforced = "enforced"
18661868
case unenforced = "unenforced"
18671869
}
1868-
/// The status of enforcement
1870+
/// The enforcement status for a security configuration
18691871
///
18701872
/// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/enforcement`.
18711873
public var enforcement: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.enforcementPayload?
@@ -1883,7 +1885,7 @@ public enum Operations {
18831885
/// - secret_scanning_push_protection: The enablement status of secret scanning push protection
18841886
/// - secret_scanning_validity_checks: The enablement status of secret scanning validity checks
18851887
/// - private_vulnerability_reporting: The enablement status of private vulnerability reporting
1886-
/// - enforcement: The status of enforcement
1888+
/// - enforcement: The enforcement status for a security configuration
18871889
public init(
18881890
name: Swift.String,
18891891
description: Swift.String,
@@ -2924,14 +2926,14 @@ public enum Operations {
29242926
///
29252927
/// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/private_vulnerability_reporting`.
29262928
public var private_vulnerability_reporting: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.private_vulnerability_reportingPayload?
2927-
/// The status of enforcement
2929+
/// The enforcement status for a security configuration
29282930
///
29292931
/// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/enforcement`.
29302932
@frozen public enum enforcementPayload: String, Codable, Hashable, Sendable {
29312933
case enforced = "enforced"
29322934
case unenforced = "unenforced"
29332935
}
2934-
/// The status of enforcement
2936+
/// The enforcement status for a security configuration
29352937
///
29362938
/// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/enforcement`.
29372939
public var enforcement: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.enforcementPayload?
@@ -2949,7 +2951,7 @@ public enum Operations {
29492951
/// - secret_scanning_push_protection: The enablement status of secret scanning push protection
29502952
/// - secret_scanning_validity_checks: The enablement status of secret scanning validity checks
29512953
/// - private_vulnerability_reporting: The enablement status of private vulnerability reporting
2952-
/// - enforcement: The status of enforcement
2954+
/// - enforcement: The enforcement status for a security configuration
29532955
public init(
29542956
name: Swift.String? = nil,
29552957
description: Swift.String? = nil,
@@ -3898,7 +3900,7 @@ public enum Operations {
38983900
public var after: Components.Parameters.pagination_hyphen_after?
38993901
/// A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned.
39003902
///
3901-
/// Can be: `all`, `attached`, `attaching`, `detached`, `enforced`, `failed`, `updating`
3903+
/// Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise`
39023904
///
39033905
/// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/repositories/GET/query/status`.
39043906
public var status: Swift.String?

Sources/issues/Types.swift

+9-3
Original file line numberDiff line numberDiff line change
@@ -6292,6 +6292,8 @@ public enum Components {
62926292
///
62936293
/// - Remark: Generated from `#/components/schemas/label`.
62946294
public struct label: Codable, Hashable, Sendable {
6295+
/// Unique identifier for the label.
6296+
///
62956297
/// - Remark: Generated from `#/components/schemas/label/id`.
62966298
public var id: Swift.Int64
62976299
/// - Remark: Generated from `#/components/schemas/label/node_id`.
@@ -6304,24 +6306,28 @@ public enum Components {
63046306
///
63056307
/// - Remark: Generated from `#/components/schemas/label/name`.
63066308
public var name: Swift.String
6309+
/// Optional description of the label, such as its purpose.
6310+
///
63076311
/// - Remark: Generated from `#/components/schemas/label/description`.
63086312
public var description: Swift.String?
63096313
/// 6-character hex code, without the leading #, identifying the color
63106314
///
63116315
/// - Remark: Generated from `#/components/schemas/label/color`.
63126316
public var color: Swift.String
6317+
/// Whether this label comes by default in a new repository.
6318+
///
63136319
/// - Remark: Generated from `#/components/schemas/label/default`.
63146320
public var _default: Swift.Bool
63156321
/// Creates a new `label`.
63166322
///
63176323
/// - Parameters:
6318-
/// - id:
6324+
/// - id: Unique identifier for the label.
63196325
/// - node_id:
63206326
/// - url: URL for the label
63216327
/// - name: The name of the label.
6322-
/// - description:
6328+
/// - description: Optional description of the label, such as its purpose.
63236329
/// - color: 6-character hex code, without the leading #, identifying the color
6324-
/// - _default:
6330+
/// - _default: Whether this label comes by default in a new repository.
63256331
public init(
63266332
id: Swift.Int64,
63276333
node_id: Swift.String,

Sources/orgs/Client.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -6729,7 +6729,7 @@ public struct Client: APIProtocol {
67296729
/// Enable or disable a security feature for an organization
67306730
///
67316731
/// > [!WARNING]
6732-
/// > **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/).
6732+
/// > **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/).
67336733
///
67346734
/// Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."
67356735
///

Sources/orgs/Types.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ public protocol APIProtocol: Sendable {
694694
/// Enable or disable a security feature for an organization
695695
///
696696
/// > [!WARNING]
697-
/// > **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/).
697+
/// > **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/).
698698
///
699699
/// Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."
700700
///
@@ -1960,7 +1960,7 @@ extension APIProtocol {
19601960
/// Enable or disable a security feature for an organization
19611961
///
19621962
/// > [!WARNING]
1963-
/// > **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/).
1963+
/// > **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/).
19641964
///
19651965
/// Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."
19661966
///
@@ -20370,7 +20370,7 @@ public enum Operations {
2037020370
/// Enable or disable a security feature for an organization
2037120371
///
2037220372
/// > [!WARNING]
20373-
/// > **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/).
20373+
/// > **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/).
2037420374
///
2037520375
/// Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."
2037620376
///

0 commit comments

Comments
 (0)