@@ -3979,6 +3979,34 @@ public enum Components {
39793979 self.body = body
39803980 }
39813981 }
3982+ public struct CodeScanningInvalidState: Sendable, Hashable {
3983+ /// - Remark: Generated from `#/components/responses/code_scanning_invalid_state/content`.
3984+ @frozen public enum Body: Sendable, Hashable {
3985+ /// - Remark: Generated from `#/components/responses/code_scanning_invalid_state/content/application\/json`.
3986+ case json(Components.Schemas.BasicError)
3987+ /// The associated value of the enum case if `self` is `.json`.
3988+ ///
3989+ /// - Throws: An error if `self` is not `.json`.
3990+ /// - SeeAlso: `.json`.
3991+ public var json: Components.Schemas.BasicError {
3992+ get throws {
3993+ switch self {
3994+ case let .json(body):
3995+ return body
3996+ }
3997+ }
3998+ }
3999+ }
4000+ /// Received HTTP response body
4001+ public var body: Components.Responses.CodeScanningInvalidState.Body
4002+ /// Creates a new `CodeScanningInvalidState`.
4003+ ///
4004+ /// - Parameters:
4005+ /// - body: Received HTTP response body
4006+ public init(body: Components.Responses.CodeScanningInvalidState.Body) {
4007+ self.body = body
4008+ }
4009+ }
39824010 }
39834011 /// Types generated from the `#/components/headers` section of the OpenAPI document.
39844012 public enum Headers {
@@ -9066,6 +9094,29 @@ public enum Operations {
90669094 }
90679095 }
90689096 }
9097+ /// Response if the configuration change cannot be made because the repository is not in the required state
9098+ ///
9099+ /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/patch(code-scanning/update-default-setup)/responses/422`.
9100+ ///
9101+ /// HTTP response code: `422 unprocessableContent`.
9102+ case unprocessableContent(Components.Responses.CodeScanningInvalidState)
9103+ /// The associated value of the enum case if `self` is `.unprocessableContent`.
9104+ ///
9105+ /// - Throws: An error if `self` is not `.unprocessableContent`.
9106+ /// - SeeAlso: `.unprocessableContent`.
9107+ public var unprocessableContent: Components.Responses.CodeScanningInvalidState {
9108+ get throws {
9109+ switch self {
9110+ case let .unprocessableContent(response):
9111+ return response
9112+ default:
9113+ try throwUnexpectedResponseStatus(
9114+ expectedStatus: "unprocessableContent",
9115+ response: self
9116+ )
9117+ }
9118+ }
9119+ }
90699120 /// Service unavailable
90709121 ///
90719122 /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/patch(code-scanning/update-default-setup)/responses/503`.
0 commit comments