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/actions/Types.swift
+51-3Lines changed: 51 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10598,21 +10598,37 @@ public enum Components {
10598
10598
///
10599
10599
/// - Remark: Generated from `#/components/schemas/oidc-custom-sub-repo/include_claim_keys`.
10600
10600
public var includeClaimKeys: [Swift.String]?
10601
+
/// Whether the repository has opted in to the immutable OIDC subject claim format. When `true`, OIDC tokens will use a stable, repository-ID-based `sub` claim. If not set at the repository level, falls back to the organization-level setting.
10602
+
///
10603
+
/// - Remark: Generated from `#/components/schemas/oidc-custom-sub-repo/use_immutable_subject`.
10604
+
public var useImmutableSubject: Swift.Bool?
10605
+
/// The current `sub` claim prefix for this repository.
10606
+
///
10607
+
/// - Remark: Generated from `#/components/schemas/oidc-custom-sub-repo/sub_claim_prefix`.
10608
+
public var subClaimPrefix: Swift.String?
10601
10609
/// Creates a new `OidcCustomSubRepo`.
10602
10610
///
10603
10611
/// - Parameters:
10604
10612
/// - useDefault: Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored.
10605
10613
/// - includeClaimKeys: Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.
10614
+
/// - useImmutableSubject: Whether the repository has opted in to the immutable OIDC subject claim format. When `true`, OIDC tokens will use a stable, repository-ID-based `sub` claim. If not set at the repository level, falls back to the organization-level setting.
10615
+
/// - subClaimPrefix: The current `sub` claim prefix for this repository.
10606
10616
public init(
10607
10617
useDefault: Swift.Bool,
10608
-
includeClaimKeys: [Swift.String]? = nil
10618
+
includeClaimKeys: [Swift.String]? = nil,
10619
+
useImmutableSubject: Swift.Bool? = nil,
10620
+
subClaimPrefix: Swift.String? = nil
10609
10621
) {
10610
10622
self.useDefault = useDefault
10611
10623
self.includeClaimKeys = includeClaimKeys
10624
+
self.useImmutableSubject = useImmutableSubject
10625
+
self.subClaimPrefix = subClaimPrefix
10612
10626
}
10613
10627
public enum CodingKeys: String, CodingKey {
10614
10628
case useDefault = "use_default"
10615
10629
case includeClaimKeys = "include_claim_keys"
10630
+
case useImmutableSubject = "use_immutable_subject"
10631
+
case subClaimPrefix = "sub_claim_prefix"
10616
10632
}
10617
10633
}
10618
10634
/// Set secrets for GitHub Actions.
@@ -16917,6 +16933,18 @@ public enum Operations {
16917
16933
///
16918
16934
/// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/requestBody/json/size`.
16919
16935
public var size: Swift.String?
16936
+
/// The source type of the runner image to use. Must match the source of the image specified by `image_id`. Can be one of `github`, `partner`, or `custom`.
16937
+
///
16938
+
/// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/requestBody/json/image_source`.
16939
+
@frozen public enum ImageSourcePayload: String, Codable, Hashable, Sendable, CaseIterable {
16940
+
case github = "github"
16941
+
case partner = "partner"
16942
+
case custom = "custom"
16943
+
}
16944
+
/// The source type of the runner image to use. Must match the source of the image specified by `image_id`. Can be one of `github`, `partner`, or `custom`.
16945
+
///
16946
+
/// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/requestBody/json/image_source`.
16947
+
public var imageSource: Operations.ActionsUpdateHostedRunnerForOrg.Input.Body.JsonPayload.ImageSourcePayload?
16920
16948
/// The unique identifier of the runner image. To list available images, use `GET /actions/hosted-runners/images/github-owned`, `GET /actions/hosted-runners/images/partner`, or `GET /actions/hosted-runners/images/custom`.
16921
16949
///
16922
16950
/// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/requestBody/json/image_id`.
@@ -16925,6 +16953,10 @@ public enum Operations {
16925
16953
///
16926
16954
/// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/requestBody/json/image_version`.
16927
16955
public var imageVersion: Swift.String?
16956
+
/// Whether to enable image generation for this runner pool. When enabled, the runner pool is used to build and publish custom runner images.
16957
+
///
16958
+
/// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/requestBody/json/image_gen`.
16959
+
public var imageGen: Swift.Bool?
16928
16960
/// Creates a new `JsonPayload`.
16929
16961
///
16930
16962
/// - Parameters:
@@ -16933,33 +16965,41 @@ public enum Operations {
16933
16965
/// - maximumRunners: The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.
16934
16966
/// - enableStaticIp: Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`
16935
16967
/// - size: The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`
16968
+
/// - imageSource: The source type of the runner image to use. Must match the source of the image specified by `image_id`. Can be one of `github`, `partner`, or `custom`.
16936
16969
/// - imageId: The unique identifier of the runner image. To list available images, use `GET /actions/hosted-runners/images/github-owned`, `GET /actions/hosted-runners/images/partner`, or `GET /actions/hosted-runners/images/custom`.
16937
16970
/// - imageVersion: The version of the runner image to deploy. This is relevant only for runners using custom images.
16971
+
/// - imageGen: Whether to enable image generation for this runner pool. When enabled, the runner pool is used to build and publish custom runner images.
/// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/requestBody/content/application\/json`.
@@ -30462,21 +30502,29 @@ public enum Operations {
30462
30502
///
30463
30503
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/PUT/requestBody/json/include_claim_keys`.
30464
30504
public var includeClaimKeys: [Swift.String]?
30505
+
/// Whether to opt in to the immutable OIDC subject claim format for this repository. When `true`, OIDC tokens will use a stable, repository-ID-based `sub` claim.
30506
+
///
30507
+
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/PUT/requestBody/json/use_immutable_subject`.
30508
+
public var useImmutableSubject: Swift.Bool?
30465
30509
/// Creates a new `JsonPayload`.
30466
30510
///
30467
30511
/// - Parameters:
30468
30512
/// - useDefault: Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored.
30469
30513
/// - includeClaimKeys: Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.
30514
+
/// - useImmutableSubject: Whether to opt in to the immutable OIDC subject claim format for this repository. When `true`, OIDC tokens will use a stable, repository-ID-based `sub` claim.
30470
30515
public init(
30471
30516
useDefault: Swift.Bool,
30472
-
includeClaimKeys: [Swift.String]? = nil
30517
+
includeClaimKeys: [Swift.String]? = nil,
30518
+
useImmutableSubject: Swift.Bool? = nil
30473
30519
) {
30474
30520
self.useDefault = useDefault
30475
30521
self.includeClaimKeys = includeClaimKeys
30522
+
self.useImmutableSubject = useImmutableSubject
30476
30523
}
30477
30524
public enum CodingKeys: String, CodingKey {
30478
30525
case useDefault = "use_default"
30479
30526
case includeClaimKeys = "include_claim_keys"
30527
+
case useImmutableSubject = "use_immutable_subject"
30480
30528
}
30481
30529
}
30482
30530
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/PUT/requestBody/content/application\/json`.
0 commit comments