Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions Sources/actions/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7720,37 +7720,37 @@ public enum Components {
}
/// Provides details of a hosted runner image
///
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image`.
public struct ActionsHostedRunnerImage: Codable, Hashable, Sendable {
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-curated-image`.
public struct ActionsHostedRunnerCuratedImage: Codable, Hashable, Sendable {
/// The ID of the image. Use this ID for the `image` parameter when creating a new larger runner.
///
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/id`.
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-curated-image/id`.
public var id: Swift.String
/// The operating system of the image.
///
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/platform`.
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-curated-image/platform`.
public var platform: Swift.String
/// Image size in GB.
///
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/size_gb`.
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-curated-image/size_gb`.
public var sizeGb: Swift.Int
/// Display name for this image.
///
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/display_name`.
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-curated-image/display_name`.
public var displayName: Swift.String
/// The image provider.
///
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/source`.
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-curated-image/source`.
@frozen public enum SourcePayload: String, Codable, Hashable, Sendable, CaseIterable {
case github = "github"
case partner = "partner"
case custom = "custom"
}
/// The image provider.
///
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/source`.
public var source: Components.Schemas.ActionsHostedRunnerImage.SourcePayload
/// Creates a new `ActionsHostedRunnerImage`.
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-curated-image/source`.
public var source: Components.Schemas.ActionsHostedRunnerCuratedImage.SourcePayload
/// Creates a new `ActionsHostedRunnerCuratedImage`.
///
/// - Parameters:
/// - id: The ID of the image. Use this ID for the `image` parameter when creating a new larger runner.
Expand All @@ -7763,7 +7763,7 @@ public enum Components {
platform: Swift.String,
sizeGb: Swift.Int,
displayName: Swift.String,
source: Components.Schemas.ActionsHostedRunnerImage.SourcePayload
source: Components.Schemas.ActionsHostedRunnerCuratedImage.SourcePayload
) {
self.id = id
self.platform = platform
Expand Down Expand Up @@ -12609,15 +12609,15 @@ public enum Operations {
/// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/github-owned/GET/responses/200/content/json/total_count`.
public var totalCount: Swift.Int
/// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/github-owned/GET/responses/200/content/json/images`.
public var images: [Components.Schemas.ActionsHostedRunnerImage]
public var images: [Components.Schemas.ActionsHostedRunnerCuratedImage]
/// Creates a new `JsonPayload`.
///
/// - Parameters:
/// - totalCount:
/// - images:
public init(
totalCount: Swift.Int,
images: [Components.Schemas.ActionsHostedRunnerImage]
images: [Components.Schemas.ActionsHostedRunnerCuratedImage]
) {
self.totalCount = totalCount
self.images = images
Expand Down Expand Up @@ -12764,15 +12764,15 @@ public enum Operations {
/// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/partner/GET/responses/200/content/json/total_count`.
public var totalCount: Swift.Int
/// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/partner/GET/responses/200/content/json/images`.
public var images: [Components.Schemas.ActionsHostedRunnerImage]
public var images: [Components.Schemas.ActionsHostedRunnerCuratedImage]
/// Creates a new `JsonPayload`.
///
/// - Parameters:
/// - totalCount:
/// - images:
public init(
totalCount: Swift.Int,
images: [Components.Schemas.ActionsHostedRunnerImage]
images: [Components.Schemas.ActionsHostedRunnerCuratedImage]
) {
self.totalCount = totalCount
self.images = images
Expand Down
4 changes: 2 additions & 2 deletions Sources/copilot/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ public struct Client: APIProtocol {
/// > [!NOTE]
/// > This endpoint will only return results for a given day if the organization contained **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.
///
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
/// they must have telemetry enabled in their IDE.
///
Expand Down Expand Up @@ -1446,7 +1446,7 @@ public struct Client: APIProtocol {
/// > [!NOTE]
/// > This endpoint will only return results for a given day if the team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.
///
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
/// they must have telemetry enabled in their IDE.
///
Expand Down
28 changes: 14 additions & 14 deletions Sources/copilot/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public protocol APIProtocol: Sendable {
/// > [!NOTE]
/// > This endpoint will only return results for a given day if the organization contained **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.
///
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
/// they must have telemetry enabled in their IDE.
///
Expand Down Expand Up @@ -160,7 +160,7 @@ public protocol APIProtocol: Sendable {
/// > [!NOTE]
/// > This endpoint will only return results for a given day if the team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.
///
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
/// they must have telemetry enabled in their IDE.
///
Expand Down Expand Up @@ -347,7 +347,7 @@ extension APIProtocol {
/// > [!NOTE]
/// > This endpoint will only return results for a given day if the organization contained **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.
///
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
/// they must have telemetry enabled in their IDE.
///
Expand Down Expand Up @@ -401,7 +401,7 @@ extension APIProtocol {
/// > [!NOTE]
/// > This endpoint will only return results for a given day if the team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.
///
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
/// they must have telemetry enabled in their IDE.
///
Expand Down Expand Up @@ -4388,7 +4388,7 @@ public enum Operations {
/// > [!NOTE]
/// > This endpoint will only return results for a given day if the organization contained **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.
///
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
/// they must have telemetry enabled in their IDE.
///
Expand Down Expand Up @@ -4419,7 +4419,7 @@ public enum Operations {
public var path: Operations.CopilotCopilotMetricsForOrganization.Input.Path
/// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/query`.
public struct Query: Sendable, Hashable {
/// Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 28 days ago.
/// Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 100 days ago.
///
/// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/query/since`.
public var since: Swift.String?
Expand All @@ -4431,17 +4431,17 @@ public enum Operations {
///
/// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/query/page`.
public var page: Components.Parameters.Page?
/// The number of days of metrics to display per page (max 28). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
/// The number of days of metrics to display per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
///
/// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/query/per_page`.
public var perPage: Swift.Int?
/// Creates a new `Query`.
///
/// - Parameters:
/// - since: Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 28 days ago.
/// - since: Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 100 days ago.
/// - until: Show usage metrics until this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`) and should not preceed the `since` date if it is passed.
/// - page: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
/// - perPage: The number of days of metrics to display per page (max 28). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
/// - perPage: The number of days of metrics to display per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
public init(
since: Swift.String? = nil,
until: Swift.String? = nil,
Expand Down Expand Up @@ -4943,7 +4943,7 @@ public enum Operations {
/// > [!NOTE]
/// > This endpoint will only return results for a given day if the team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.
///
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
/// they must have telemetry enabled in their IDE.
///
Expand Down Expand Up @@ -4983,7 +4983,7 @@ public enum Operations {
public var path: Operations.CopilotCopilotMetricsForTeam.Input.Path
/// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/query`.
public struct Query: Sendable, Hashable {
/// Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 28 days ago.
/// Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 100 days ago.
///
/// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/query/since`.
public var since: Swift.String?
Expand All @@ -4995,17 +4995,17 @@ public enum Operations {
///
/// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/query/page`.
public var page: Components.Parameters.Page?
/// The number of days of metrics to display per page (max 28). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
/// The number of days of metrics to display per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
///
/// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/query/per_page`.
public var perPage: Swift.Int?
/// Creates a new `Query`.
///
/// - Parameters:
/// - since: Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 28 days ago.
/// - since: Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 100 days ago.
/// - until: Show usage metrics until this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`) and should not preceed the `since` date if it is passed.
/// - page: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
/// - perPage: The number of days of metrics to display per page (max 28). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
/// - perPage: The number of days of metrics to display per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
public init(
since: Swift.String? = nil,
until: Swift.String? = nil,
Expand Down
8 changes: 4 additions & 4 deletions Sources/dependabot/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -676,15 +676,15 @@ public struct Client: APIProtocol {
in: &request,
style: .form,
explode: true,
name: "package_registry_url",
value: input.query.packageRegistryUrl
name: "artifact_registry_url",
value: input.query.artifactRegistryUrl
)
try converter.setQueryItemAsURI(
in: &request,
style: .form,
explode: true,
name: "package_registry",
value: input.query.packageRegistry
name: "artifact_registry",
value: input.query.artifactRegistry
)
try converter.setQueryItemAsURI(
in: &request,
Expand Down
Loading