Skip to content

Commit d369184

Browse files
Commit via running ake Sources/billing
1 parent 536f007 commit d369184

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

Sources/billing/Types.swift

Lines changed: 40 additions & 40 deletions
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)