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
public func encode(to encoder: any Encoder) throws {
4362
+
switch self {
4363
+
case let .case1(value):
4364
+
try encoder.encodeToSingleValueContainer(value)
4365
+
case let .case2(value):
4366
+
try encoder.encodeToSingleValueContainer(value)
4367
+
}
4368
+
}
4369
+
}
4370
+
/// A comma-separated list of runtime risk strings. If specified, only alerts for repositories with deployment records matching these risks will be returned.
4371
+
///
4372
+
/// Can be: `critical-resource`, `internet-exposed`, `sensitive-data`, `lateral-movement`
4373
+
///
4374
+
/// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-runtime-risk`.
4375
+
public typealias DependabotAlertCommaSeparatedRuntimeRisk = Swift.String
4325
4376
/// A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned.
4326
4377
///
4327
4378
/// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-manifests`.
@@ -5631,18 +5682,19 @@ public enum Operations {
5631
5682
///
5632
5683
/// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/artifact_registry`.
5633
5684
public var artifactRegistry: Components.Parameters.DependabotAlertCommaSeparatedArtifactRegistry?
5634
-
/// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has`.
public var has: Components.Parameters.DependabotAlertOrgScopeCommaSeparatedHas?
5732
+
/// A comma-separated list of runtime risk strings. If specified, only alerts for repositories with deployment records matching these risks will be returned.
5733
+
///
5734
+
/// Can be: `critical-resource`, `internet-exposed`, `sensitive-data`, `lateral-movement`
5735
+
///
5736
+
/// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/runtime_risk`.
5737
+
public var runtimeRisk: Components.Parameters.DependabotAlertCommaSeparatedRuntimeRisk?
5680
5738
/// - Remark: Generated from `#/components/parameters/dependabot-alert-scope`.
5681
5739
@frozen public enum DependabotAlertScope: String, Codable, Hashable, Sendable, CaseIterable {
5682
5740
case development = "development"
@@ -5743,6 +5801,7 @@ public enum Operations {
5743
5801
/// - artifactRegistryUrl: A comma-separated list of artifact registry URLs. If specified, only alerts for repositories with storage records matching these URLs will be returned.
5744
5802
/// - artifactRegistry: A comma-separated list of Artifact Registry name strings. If specified, only alerts for repositories with storage records matching these registries will be returned.
5745
5803
/// - has: Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned.
5804
+
/// - runtimeRisk: A comma-separated list of runtime risk strings. If specified, only alerts for repositories with deployment records matching these risks will be returned.
5746
5805
/// - scope: The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned.
5747
5806
/// - sort: The property by which to sort the results.
5748
5807
/// - direction: The direction to sort the results by.
/// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/requestBody/json/visibility`.
6584
6645
public var visibility: Operations.DependabotCreateOrUpdateOrgSecret.Input.Body.JsonPayload.VisibilityPayload
6585
-
/// An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.
6646
+
/// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/requestBody/json/SelectedRepositoryIdsPayload`.
6647
+
public struct SelectedRepositoryIdsPayloadPayload: Codable, Hashable, Sendable {
6648
+
/// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/requestBody/json/SelectedRepositoryIdsPayload/value1`.
6649
+
public var value1: Swift.Int?
6650
+
/// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/requestBody/json/SelectedRepositoryIdsPayload/value2`.
6651
+
public var value2: Swift.String?
6652
+
/// Creates a new `SelectedRepositoryIdsPayloadPayload`.
/// An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints. Use integers when possible, as strings are supported only to maintain backwards compatibility and may be removed in the future.
6694
+
///
6695
+
/// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/requestBody/json/selected_repository_ids`.
6696
+
public typealias SelectedRepositoryIdsPayload = [Operations.DependabotCreateOrUpdateOrgSecret.Input.Body.JsonPayload.SelectedRepositoryIdsPayloadPayload]
6697
+
/// An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints. Use integers when possible, as strings are supported only to maintain backwards compatibility and may be removed in the future.
6586
6698
///
6587
6699
/// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/requestBody/json/selected_repository_ids`.
6588
-
publicvarselectedRepositoryIds:[Swift.String]?
6700
+
public var selectedRepositoryIds: Operations.DependabotCreateOrUpdateOrgSecret.Input.Body.JsonPayload.SelectedRepositoryIdsPayload?
6589
6701
/// Creates a new `JsonPayload`.
6590
6702
///
6591
6703
/// - Parameters:
6592
6704
/// - encryptedValue: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/dependabot/secrets#get-an-organization-public-key) endpoint.
6593
6705
/// - keyId: ID of the key you used to encrypt the secret.
6594
6706
/// - visibility: Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret.
6595
-
/// - selectedRepositoryIds: An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.
6707
+
/// - selectedRepositoryIds: An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints. Use integers when possible, as strings are supported only to maintain backwards compatibility and may be removed in the future.
0 commit comments