Skip to content

Commit 4ee0642

Browse files
Merge pull request #112 from Wei18/dependabot/submodules/Submodule/github/rest-api-description-a3b9020
Bump Submodule/github/rest-api-description from `1cd73ab` to `a3b9020`
2 parents 28d3dfd + 662a7a6 commit 4ee0642

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+33240
-14932
lines changed

.spi.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ builder:
66
- GitHubRestAPIActivity
77
- GitHubRestAPIApps
88
- GitHubRestAPIBilling
9+
- GitHubRestAPICampaigns
910
- GitHubRestAPIChecks
1011
- GitHubRestAPIClassroom
1112
- GitHubRestAPICode_Scanning
@@ -21,6 +22,7 @@ builder:
2122
- GitHubRestAPIGists
2223
- GitHubRestAPIGit
2324
- GitHubRestAPIGitignore
25+
- GitHubRestAPIHosted_Compute
2426
- GitHubRestAPIInteractions
2527
- GitHubRestAPIIssues
2628
- GitHubRestAPILicenses

Package.swift

+18
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ let package = Package(
1515
.library(name: "GitHubRestAPIActivity", targets: ["GitHubRestAPIActivity"]),
1616
.library(name: "GitHubRestAPIApps", targets: ["GitHubRestAPIApps"]),
1717
.library(name: "GitHubRestAPIBilling", targets: ["GitHubRestAPIBilling"]),
18+
.library(name: "GitHubRestAPICampaigns", targets: ["GitHubRestAPICampaigns"]),
1819
.library(name: "GitHubRestAPIChecks", targets: ["GitHubRestAPIChecks"]),
1920
.library(name: "GitHubRestAPIClassroom", targets: ["GitHubRestAPIClassroom"]),
2021
.library(name: "GitHubRestAPICode_Scanning", targets: ["GitHubRestAPICode_Scanning"]),
@@ -30,6 +31,7 @@ let package = Package(
3031
.library(name: "GitHubRestAPIGists", targets: ["GitHubRestAPIGists"]),
3132
.library(name: "GitHubRestAPIGit", targets: ["GitHubRestAPIGit"]),
3233
.library(name: "GitHubRestAPIGitignore", targets: ["GitHubRestAPIGitignore"]),
34+
.library(name: "GitHubRestAPIHosted_Compute", targets: ["GitHubRestAPIHosted_Compute"]),
3335
.library(name: "GitHubRestAPIInteractions", targets: ["GitHubRestAPIInteractions"]),
3436
.library(name: "GitHubRestAPIIssues", targets: ["GitHubRestAPIIssues"]),
3537
.library(name: "GitHubRestAPILicenses", targets: ["GitHubRestAPILicenses"]),
@@ -89,6 +91,14 @@ let package = Package(
8991
],
9092
path: "Sources/billing"
9193
),
94+
.target(
95+
name: "GitHubRestAPICampaigns",
96+
dependencies: [
97+
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
98+
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
99+
],
100+
path: "Sources/campaigns"
101+
),
92102
.target(
93103
name: "GitHubRestAPIChecks",
94104
dependencies: [
@@ -209,6 +219,14 @@ let package = Package(
209219
],
210220
path: "Sources/gitignore"
211221
),
222+
.target(
223+
name: "GitHubRestAPIHosted_Compute",
224+
dependencies: [
225+
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
226+
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
227+
],
228+
path: "Sources/hosted-compute"
229+
),
212230
.target(
213231
name: "GitHubRestAPIInteractions",
214232
dependencies: [

Sources/actions/Client.swift

+836
Large diffs are not rendered by default.

Sources/actions/Types.swift

+3,982-1,215
Large diffs are not rendered by default.

Sources/activity/Types.swift

+367-127
Large diffs are not rendered by default.

Sources/apps/Types.swift

+254-219
Large diffs are not rendered by default.

Sources/billing/Types.swift

+40-40
Original file line numberDiff line numberDiff line change
@@ -690,19 +690,19 @@ public enum Components {
690690
///
691691
/// - Remark: Generated from `#/components/parameters/org`.
692692
public typealias org = Swift.String
693-
/// If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2024`. Default value is the current year.
693+
/// If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2025`. Default value is the current year.
694694
///
695695
/// - Remark: Generated from `#/components/parameters/billing-usage-report-year`.
696696
public typealias billing_hyphen_usage_hyphen_report_hyphen_year = Swift.Int
697-
/// If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`.
697+
/// If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. If no year is specified the default `year` is used.
698698
///
699699
/// - Remark: Generated from `#/components/parameters/billing-usage-report-month`.
700700
public typealias billing_hyphen_usage_hyphen_report_hyphen_month = Swift.Int
701-
/// If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`.
701+
/// If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. If no `year` or `month` is specified, the default `year` and `month` are used.
702702
///
703703
/// - Remark: Generated from `#/components/parameters/billing-usage-report-day`.
704704
public typealias billing_hyphen_usage_hyphen_report_hyphen_day = Swift.Int
705-
/// If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`.
705+
/// If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`. If no `year`, `month`, or `day` is specified, the default `year`, `month`, and `day` are used.
706706
///
707707
/// - Remark: Generated from `#/components/parameters/billing-usage-report-hour`.
708708
public typealias billing_hyphen_usage_hyphen_report_hyphen_hour = Swift.Int
@@ -795,34 +795,6 @@ public enum Components {
795795
self.body = body
796796
}
797797
}
798-
public struct internal_error: Sendable, Hashable {
799-
/// - Remark: Generated from `#/components/responses/internal_error/content`.
800-
@frozen public enum Body: Sendable, Hashable {
801-
/// - Remark: Generated from `#/components/responses/internal_error/content/application\/json`.
802-
case json(Components.Schemas.basic_hyphen_error)
803-
/// The associated value of the enum case if `self` is `.json`.
804-
///
805-
/// - Throws: An error if `self` is not `.json`.
806-
/// - SeeAlso: `.json`.
807-
public var json: Components.Schemas.basic_hyphen_error {
808-
get throws {
809-
switch self {
810-
case let .json(body):
811-
return body
812-
}
813-
}
814-
}
815-
}
816-
/// Received HTTP response body
817-
public var body: Components.Responses.internal_error.Body
818-
/// Creates a new `internal_error`.
819-
///
820-
/// - Parameters:
821-
/// - body: Received HTTP response body
822-
public init(body: Components.Responses.internal_error.Body) {
823-
self.body = body
824-
}
825-
}
826798
public struct service_unavailable: Sendable, Hashable {
827799
/// - Remark: Generated from `#/components/responses/service_unavailable/content`.
828800
@frozen public enum Body: Sendable, Hashable {
@@ -908,6 +880,34 @@ public enum Components {
908880
self.body = body
909881
}
910882
}
883+
public struct internal_error: Sendable, Hashable {
884+
/// - Remark: Generated from `#/components/responses/internal_error/content`.
885+
@frozen public enum Body: Sendable, Hashable {
886+
/// - Remark: Generated from `#/components/responses/internal_error/content/application\/json`.
887+
case json(Components.Schemas.basic_hyphen_error)
888+
/// The associated value of the enum case if `self` is `.json`.
889+
///
890+
/// - Throws: An error if `self` is not `.json`.
891+
/// - SeeAlso: `.json`.
892+
public var json: Components.Schemas.basic_hyphen_error {
893+
get throws {
894+
switch self {
895+
case let .json(body):
896+
return body
897+
}
898+
}
899+
}
900+
}
901+
/// Received HTTP response body
902+
public var body: Components.Responses.internal_error.Body
903+
/// Creates a new `internal_error`.
904+
///
905+
/// - Parameters:
906+
/// - body: Received HTTP response body
907+
public init(body: Components.Responses.internal_error.Body) {
908+
self.body = body
909+
}
910+
}
911911
}
912912
/// Types generated from the `#/components/headers` section of the OpenAPI document.
913913
public enum Headers {}
@@ -943,29 +943,29 @@ public enum Operations {
943943
public var path: Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Input.Path
944944
/// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/usage/GET/query`.
945945
public struct Query: Sendable, Hashable {
946-
/// If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2024`. Default value is the current year.
946+
/// If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2025`. Default value is the current year.
947947
///
948948
/// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/usage/GET/query/year`.
949949
public var year: Components.Parameters.billing_hyphen_usage_hyphen_report_hyphen_year?
950-
/// If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`.
950+
/// If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. If no year is specified the default `year` is used.
951951
///
952952
/// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/usage/GET/query/month`.
953953
public var month: Components.Parameters.billing_hyphen_usage_hyphen_report_hyphen_month?
954-
/// If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`.
954+
/// If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. If no `year` or `month` is specified, the default `year` and `month` are used.
955955
///
956956
/// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/usage/GET/query/day`.
957957
public var day: Components.Parameters.billing_hyphen_usage_hyphen_report_hyphen_day?
958-
/// If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`.
958+
/// If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`. If no `year`, `month`, or `day` is specified, the default `year`, `month`, and `day` are used.
959959
///
960960
/// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/usage/GET/query/hour`.
961961
public var hour: Components.Parameters.billing_hyphen_usage_hyphen_report_hyphen_hour?
962962
/// Creates a new `Query`.
963963
///
964964
/// - Parameters:
965-
/// - year: If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2024`. Default value is the current year.
966-
/// - month: If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`.
967-
/// - day: If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`.
968-
/// - hour: If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`.
965+
/// - year: If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2025`. Default value is the current year.
966+
/// - month: If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. If no year is specified the default `year` is used.
967+
/// - day: If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. If no `year` or `month` is specified, the default `year` and `month` are used.
968+
/// - hour: If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`. If no `year`, `month`, or `day` is specified, the default `year`, `month`, and `day` are used.
969969
public init(
970970
year: Components.Parameters.billing_hyphen_usage_hyphen_report_hyphen_year? = nil,
971971
month: Components.Parameters.billing_hyphen_usage_hyphen_report_hyphen_month? = nil,

0 commit comments

Comments
 (0)