@@ -7667,6 +7667,35 @@ public enum Components {
7667
7667
///
7668
7668
/// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`.
7669
7669
public var anonymousAccessEnabled: Swift.Bool?
7670
+ /// The status of the code search index for this repository
7671
+ ///
7672
+ /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`.
7673
+ public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable {
7674
+ /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_search_ok`.
7675
+ public var lexicalSearchOk: Swift.Bool?
7676
+ /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_commit_sha`.
7677
+ public var lexicalCommitSha: Swift.String?
7678
+ /// Creates a new `CodeSearchIndexStatusPayload`.
7679
+ ///
7680
+ /// - Parameters:
7681
+ /// - lexicalSearchOk:
7682
+ /// - lexicalCommitSha:
7683
+ public init(
7684
+ lexicalSearchOk: Swift.Bool? = nil,
7685
+ lexicalCommitSha: Swift.String? = nil
7686
+ ) {
7687
+ self.lexicalSearchOk = lexicalSearchOk
7688
+ self.lexicalCommitSha = lexicalCommitSha
7689
+ }
7690
+ public enum CodingKeys: String, CodingKey {
7691
+ case lexicalSearchOk = "lexical_search_ok"
7692
+ case lexicalCommitSha = "lexical_commit_sha"
7693
+ }
7694
+ }
7695
+ /// The status of the code search index for this repository
7696
+ ///
7697
+ /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`.
7698
+ public var codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload?
7670
7699
/// Creates a new `Repository`.
7671
7700
///
7672
7701
/// - Parameters:
@@ -7765,6 +7794,7 @@ public enum Components {
7765
7794
/// - masterBranch:
7766
7795
/// - starredAt:
7767
7796
/// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository
7797
+ /// - codeSearchIndexStatus: The status of the code search index for this repository
7768
7798
public init(
7769
7799
id: Swift.Int64,
7770
7800
nodeId: Swift.String,
@@ -7860,7 +7890,8 @@ public enum Components {
7860
7890
watchers: Swift.Int,
7861
7891
masterBranch: Swift.String? = nil,
7862
7892
starredAt: Swift.String? = nil,
7863
- anonymousAccessEnabled: Swift.Bool? = nil
7893
+ anonymousAccessEnabled: Swift.Bool? = nil,
7894
+ codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? = nil
7864
7895
) {
7865
7896
self.id = id
7866
7897
self.nodeId = nodeId
@@ -7957,6 +7988,7 @@ public enum Components {
7957
7988
self.masterBranch = masterBranch
7958
7989
self.starredAt = starredAt
7959
7990
self.anonymousAccessEnabled = anonymousAccessEnabled
7991
+ self.codeSearchIndexStatus = codeSearchIndexStatus
7960
7992
}
7961
7993
public enum CodingKeys: String, CodingKey {
7962
7994
case id
@@ -8054,6 +8086,7 @@ public enum Components {
8054
8086
case masterBranch = "master_branch"
8055
8087
case starredAt = "starred_at"
8056
8088
case anonymousAccessEnabled = "anonymous_access_enabled"
8089
+ case codeSearchIndexStatus = "code_search_index_status"
8057
8090
}
8058
8091
}
8059
8092
/// Code Of Conduct
@@ -10061,6 +10094,35 @@ public enum Components {
10061
10094
///
10062
10095
/// - Remark: Generated from `#/components/schemas/nullable-repository/anonymous_access_enabled`.
10063
10096
public var anonymousAccessEnabled: Swift.Bool?
10097
+ /// The status of the code search index for this repository
10098
+ ///
10099
+ /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status`.
10100
+ public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable {
10101
+ /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status/lexical_search_ok`.
10102
+ public var lexicalSearchOk: Swift.Bool?
10103
+ /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status/lexical_commit_sha`.
10104
+ public var lexicalCommitSha: Swift.String?
10105
+ /// Creates a new `CodeSearchIndexStatusPayload`.
10106
+ ///
10107
+ /// - Parameters:
10108
+ /// - lexicalSearchOk:
10109
+ /// - lexicalCommitSha:
10110
+ public init(
10111
+ lexicalSearchOk: Swift.Bool? = nil,
10112
+ lexicalCommitSha: Swift.String? = nil
10113
+ ) {
10114
+ self.lexicalSearchOk = lexicalSearchOk
10115
+ self.lexicalCommitSha = lexicalCommitSha
10116
+ }
10117
+ public enum CodingKeys: String, CodingKey {
10118
+ case lexicalSearchOk = "lexical_search_ok"
10119
+ case lexicalCommitSha = "lexical_commit_sha"
10120
+ }
10121
+ }
10122
+ /// The status of the code search index for this repository
10123
+ ///
10124
+ /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status`.
10125
+ public var codeSearchIndexStatus: Components.Schemas.NullableRepository.CodeSearchIndexStatusPayload?
10064
10126
/// Creates a new `NullableRepository`.
10065
10127
///
10066
10128
/// - Parameters:
@@ -10159,6 +10221,7 @@ public enum Components {
10159
10221
/// - masterBranch:
10160
10222
/// - starredAt:
10161
10223
/// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository
10224
+ /// - codeSearchIndexStatus: The status of the code search index for this repository
10162
10225
public init(
10163
10226
id: Swift.Int64,
10164
10227
nodeId: Swift.String,
@@ -10254,7 +10317,8 @@ public enum Components {
10254
10317
watchers: Swift.Int,
10255
10318
masterBranch: Swift.String? = nil,
10256
10319
starredAt: Swift.String? = nil,
10257
- anonymousAccessEnabled: Swift.Bool? = nil
10320
+ anonymousAccessEnabled: Swift.Bool? = nil,
10321
+ codeSearchIndexStatus: Components.Schemas.NullableRepository.CodeSearchIndexStatusPayload? = nil
10258
10322
) {
10259
10323
self.id = id
10260
10324
self.nodeId = nodeId
@@ -10351,6 +10415,7 @@ public enum Components {
10351
10415
self.masterBranch = masterBranch
10352
10416
self.starredAt = starredAt
10353
10417
self.anonymousAccessEnabled = anonymousAccessEnabled
10418
+ self.codeSearchIndexStatus = codeSearchIndexStatus
10354
10419
}
10355
10420
public enum CodingKeys: String, CodingKey {
10356
10421
case id
@@ -10448,6 +10513,7 @@ public enum Components {
10448
10513
case masterBranch = "master_branch"
10449
10514
case starredAt = "starred_at"
10450
10515
case anonymousAccessEnabled = "anonymous_access_enabled"
10516
+ case codeSearchIndexStatus = "code_search_index_status"
10451
10517
}
10452
10518
}
10453
10519
/// Code of Conduct Simple
@@ -26732,6 +26798,29 @@ public enum Operations {
26732
26798
}
26733
26799
}
26734
26800
}
26801
+ /// Conflict
26802
+ ///
26803
+ /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/delete(repos/delete)/responses/409`.
26804
+ ///
26805
+ /// HTTP response code: `409 conflict`.
26806
+ case conflict(Components.Responses.Conflict)
26807
+ /// The associated value of the enum case if `self` is `.conflict`.
26808
+ ///
26809
+ /// - Throws: An error if `self` is not `.conflict`.
26810
+ /// - SeeAlso: `.conflict`.
26811
+ public var conflict: Components.Responses.Conflict {
26812
+ get throws {
26813
+ switch self {
26814
+ case let .conflict(response):
26815
+ return response
26816
+ default:
26817
+ try throwUnexpectedResponseStatus(
26818
+ expectedStatus: "conflict",
26819
+ response: self
26820
+ )
26821
+ }
26822
+ }
26823
+ }
26735
26824
/// Undocumented response.
26736
26825
///
26737
26826
/// A response with a code that is not documented in the OpenAPI document.
0 commit comments