Skip to content

Commit 9924e16

Browse files
Merge pull request #141 from wei18/dependabot/submodules/Submodule/github/rest-api-description-883ec92
Bump Submodule/github/rest-api-description from `7595529` to `883ec92`
2 parents c989d5f + 23bfeaa commit 9924e16

File tree

11 files changed

+69
-63
lines changed

11 files changed

+69
-63
lines changed

Sources/actions/Types.swift

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7720,37 +7720,37 @@ public enum Components {
77207720
}
77217721
/// Provides details of a hosted runner image
77227722
///
7723-
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image`.
7724-
public struct ActionsHostedRunnerImage: Codable, Hashable, Sendable {
7723+
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-curated-image`.
7724+
public struct ActionsHostedRunnerCuratedImage: Codable, Hashable, Sendable {
77257725
/// The ID of the image. Use this ID for the `image` parameter when creating a new larger runner.
77267726
///
7727-
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/id`.
7727+
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-curated-image/id`.
77287728
public var id: Swift.String
77297729
/// The operating system of the image.
77307730
///
7731-
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/platform`.
7731+
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-curated-image/platform`.
77327732
public var platform: Swift.String
77337733
/// Image size in GB.
77347734
///
7735-
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/size_gb`.
7735+
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-curated-image/size_gb`.
77367736
public var sizeGb: Swift.Int
77377737
/// Display name for this image.
77387738
///
7739-
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/display_name`.
7739+
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-curated-image/display_name`.
77407740
public var displayName: Swift.String
77417741
/// The image provider.
77427742
///
7743-
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/source`.
7743+
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-curated-image/source`.
77447744
@frozen public enum SourcePayload: String, Codable, Hashable, Sendable, CaseIterable {
77457745
case github = "github"
77467746
case partner = "partner"
77477747
case custom = "custom"
77487748
}
77497749
/// The image provider.
77507750
///
7751-
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/source`.
7752-
public var source: Components.Schemas.ActionsHostedRunnerImage.SourcePayload
7753-
/// Creates a new `ActionsHostedRunnerImage`.
7751+
/// - Remark: Generated from `#/components/schemas/actions-hosted-runner-curated-image/source`.
7752+
public var source: Components.Schemas.ActionsHostedRunnerCuratedImage.SourcePayload
7753+
/// Creates a new `ActionsHostedRunnerCuratedImage`.
77547754
///
77557755
/// - Parameters:
77567756
/// - id: The ID of the image. Use this ID for the `image` parameter when creating a new larger runner.
@@ -7763,7 +7763,7 @@ public enum Components {
77637763
platform: Swift.String,
77647764
sizeGb: Swift.Int,
77657765
displayName: Swift.String,
7766-
source: Components.Schemas.ActionsHostedRunnerImage.SourcePayload
7766+
source: Components.Schemas.ActionsHostedRunnerCuratedImage.SourcePayload
77677767
) {
77687768
self.id = id
77697769
self.platform = platform
@@ -12609,15 +12609,15 @@ public enum Operations {
1260912609
/// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/github-owned/GET/responses/200/content/json/total_count`.
1261012610
public var totalCount: Swift.Int
1261112611
/// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/github-owned/GET/responses/200/content/json/images`.
12612-
public var images: [Components.Schemas.ActionsHostedRunnerImage]
12612+
public var images: [Components.Schemas.ActionsHostedRunnerCuratedImage]
1261312613
/// Creates a new `JsonPayload`.
1261412614
///
1261512615
/// - Parameters:
1261612616
/// - totalCount:
1261712617
/// - images:
1261812618
public init(
1261912619
totalCount: Swift.Int,
12620-
images: [Components.Schemas.ActionsHostedRunnerImage]
12620+
images: [Components.Schemas.ActionsHostedRunnerCuratedImage]
1262112621
) {
1262212622
self.totalCount = totalCount
1262312623
self.images = images
@@ -12764,15 +12764,15 @@ public enum Operations {
1276412764
/// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/partner/GET/responses/200/content/json/total_count`.
1276512765
public var totalCount: Swift.Int
1276612766
/// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/partner/GET/responses/200/content/json/images`.
12767-
public var images: [Components.Schemas.ActionsHostedRunnerImage]
12767+
public var images: [Components.Schemas.ActionsHostedRunnerCuratedImage]
1276812768
/// Creates a new `JsonPayload`.
1276912769
///
1277012770
/// - Parameters:
1277112771
/// - totalCount:
1277212772
/// - images:
1277312773
public init(
1277412774
totalCount: Swift.Int,
12775-
images: [Components.Schemas.ActionsHostedRunnerImage]
12775+
images: [Components.Schemas.ActionsHostedRunnerCuratedImage]
1277612776
) {
1277712777
self.totalCount = totalCount
1277812778
self.images = images

Sources/copilot/Client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ public struct Client: APIProtocol {
10891089
/// > [!NOTE]
10901090
/// > 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.
10911091
///
1092-
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
1092+
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
10931093
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
10941094
/// they must have telemetry enabled in their IDE.
10951095
///
@@ -1446,7 +1446,7 @@ public struct Client: APIProtocol {
14461446
/// > [!NOTE]
14471447
/// > 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.
14481448
///
1449-
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
1449+
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
14501450
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
14511451
/// they must have telemetry enabled in their IDE.
14521452
///

Sources/copilot/Types.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public protocol APIProtocol: Sendable {
124124
/// > [!NOTE]
125125
/// > 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.
126126
///
127-
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
127+
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
128128
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
129129
/// they must have telemetry enabled in their IDE.
130130
///
@@ -160,7 +160,7 @@ public protocol APIProtocol: Sendable {
160160
/// > [!NOTE]
161161
/// > 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.
162162
///
163-
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
163+
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
164164
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
165165
/// they must have telemetry enabled in their IDE.
166166
///
@@ -347,7 +347,7 @@ extension APIProtocol {
347347
/// > [!NOTE]
348348
/// > 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.
349349
///
350-
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
350+
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
351351
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
352352
/// they must have telemetry enabled in their IDE.
353353
///
@@ -401,7 +401,7 @@ extension APIProtocol {
401401
/// > [!NOTE]
402402
/// > 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.
403403
///
404-
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
404+
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
405405
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
406406
/// they must have telemetry enabled in their IDE.
407407
///
@@ -4388,7 +4388,7 @@ public enum Operations {
43884388
/// > [!NOTE]
43894389
/// > 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.
43904390
///
4391-
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
4391+
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
43924392
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
43934393
/// they must have telemetry enabled in their IDE.
43944394
///
@@ -4419,7 +4419,7 @@ public enum Operations {
44194419
public var path: Operations.CopilotCopilotMetricsForOrganization.Input.Path
44204420
/// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/query`.
44214421
public struct Query: Sendable, Hashable {
4422-
/// 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.
4422+
/// 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.
44234423
///
44244424
/// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/query/since`.
44254425
public var since: Swift.String?
@@ -4431,17 +4431,17 @@ public enum Operations {
44314431
///
44324432
/// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/query/page`.
44334433
public var page: Components.Parameters.Page?
4434-
/// 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)."
4434+
/// 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)."
44354435
///
44364436
/// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/query/per_page`.
44374437
public var perPage: Swift.Int?
44384438
/// Creates a new `Query`.
44394439
///
44404440
/// - Parameters:
4441-
/// - 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.
4441+
/// - 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.
44424442
/// - 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.
44434443
/// - 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)."
4444-
/// - 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)."
4444+
/// - 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)."
44454445
public init(
44464446
since: Swift.String? = nil,
44474447
until: Swift.String? = nil,
@@ -4943,7 +4943,7 @@ public enum Operations {
49434943
/// > [!NOTE]
49444944
/// > 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.
49454945
///
4946-
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
4946+
/// The response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,
49474947
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
49484948
/// they must have telemetry enabled in their IDE.
49494949
///
@@ -4983,7 +4983,7 @@ public enum Operations {
49834983
public var path: Operations.CopilotCopilotMetricsForTeam.Input.Path
49844984
/// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/query`.
49854985
public struct Query: Sendable, Hashable {
4986-
/// 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.
4986+
/// 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.
49874987
///
49884988
/// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/query/since`.
49894989
public var since: Swift.String?
@@ -4995,17 +4995,17 @@ public enum Operations {
49954995
///
49964996
/// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/query/page`.
49974997
public var page: Components.Parameters.Page?
4998-
/// 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)."
4998+
/// 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)."
49994999
///
50005000
/// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/query/per_page`.
50015001
public var perPage: Swift.Int?
50025002
/// Creates a new `Query`.
50035003
///
50045004
/// - Parameters:
5005-
/// - 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.
5005+
/// - 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.
50065006
/// - 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.
50075007
/// - 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)."
5008-
/// - 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)."
5008+
/// - 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)."
50095009
public init(
50105010
since: Swift.String? = nil,
50115011
until: Swift.String? = nil,

Sources/dependabot/Client.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -676,15 +676,15 @@ public struct Client: APIProtocol {
676676
in: &request,
677677
style: .form,
678678
explode: true,
679-
name: "package_registry_url",
680-
value: input.query.packageRegistryUrl
679+
name: "artifact_registry_url",
680+
value: input.query.artifactRegistryUrl
681681
)
682682
try converter.setQueryItemAsURI(
683683
in: &request,
684684
style: .form,
685685
explode: true,
686-
name: "package_registry",
687-
value: input.query.packageRegistry
686+
name: "artifact_registry",
687+
value: input.query.artifactRegistry
688688
)
689689
try converter.setQueryItemAsURI(
690690
in: &request,

0 commit comments

Comments
 (0)