Skip to content

Commit f73f412

Browse files
authored
Merge pull request #25 from Wei18/dependabot/submodules/Submodule/github/rest-api-description-2124d78
2 parents 5c4453b + 7484c09 commit f73f412

File tree

5 files changed

+99
-14
lines changed

5 files changed

+99
-14
lines changed

Sources/codespaces/Client.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3217,6 +3217,8 @@ public struct Client: APIProtocol {
32173217
/// token with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets`
32183218
/// repository permission to use this endpoint.
32193219
///
3220+
/// This endpoint does not support fine-grained personal access tokens. For more information about personal access tokens, see "[Managing your personal access tokens](https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic)."
3221+
///
32203222
/// - Remark: HTTP `PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
32213223
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-repo-secret)`.
32223224
public func codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret(_ input: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input) async throws -> Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output {
@@ -3293,6 +3295,7 @@ public struct Client: APIProtocol {
32933295
/// Delete a repository secret
32943296
///
32953297
/// Deletes a development environment secret in a repository using the secret name. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets` repository permission to use this endpoint.
3298+
/// This endpoint does not support fine-grained personal access tokens. For more information about personal access tokens, see "[Managing your personal access tokens](https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic)."
32963299
///
32973300
/// - Remark: HTTP `DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
32983301
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/delete(codespaces/delete-repo-secret)`.

Sources/codespaces/Types.swift

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,15 @@ public protocol APIProtocol: Sendable {
266266
/// token with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets`
267267
/// repository permission to use this endpoint.
268268
///
269+
/// This endpoint does not support fine-grained personal access tokens. For more information about personal access tokens, see "[Managing your personal access tokens](https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic)."
270+
///
269271
/// - Remark: HTTP `PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
270272
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-repo-secret)`.
271273
func codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret(_ input: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input) async throws -> Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output
272274
/// Delete a repository secret
273275
///
274276
/// Deletes a development environment secret in a repository using the secret name. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets` repository permission to use this endpoint.
277+
/// This endpoint does not support fine-grained personal access tokens. For more information about personal access tokens, see "[Managing your personal access tokens](https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic)."
275278
///
276279
/// - Remark: HTTP `DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
277280
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/delete(codespaces/delete-repo-secret)`.
@@ -1027,6 +1030,8 @@ extension APIProtocol {
10271030
/// token with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets`
10281031
/// repository permission to use this endpoint.
10291032
///
1033+
/// This endpoint does not support fine-grained personal access tokens. For more information about personal access tokens, see "[Managing your personal access tokens](https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic)."
1034+
///
10301035
/// - Remark: HTTP `PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
10311036
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-repo-secret)`.
10321037
public func codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret(
@@ -1043,6 +1048,7 @@ extension APIProtocol {
10431048
/// Delete a repository secret
10441049
///
10451050
/// Deletes a development environment secret in a repository using the secret name. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets` repository permission to use this endpoint.
1051+
/// This endpoint does not support fine-grained personal access tokens. For more information about personal access tokens, see "[Managing your personal access tokens](https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic)."
10461052
///
10471053
/// - Remark: HTTP `DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
10481054
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/delete(codespaces/delete-repo-secret)`.
@@ -6773,6 +6779,30 @@ public enum Components {
67736779
public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct_hyphen_simple?
67746780
/// - Remark: Generated from `#/components/schemas/full-repository/security_and_analysis`.
67756781
public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis?
6782+
/// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.
6783+
///
6784+
/// - Remark: Generated from `#/components/schemas/full-repository/custom_properties`.
6785+
public struct custom_propertiesPayload: Codable, Hashable, Sendable {
6786+
/// A container of undocumented properties.
6787+
public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer
6788+
/// Creates a new `custom_propertiesPayload`.
6789+
///
6790+
/// - Parameters:
6791+
/// - additionalProperties: A container of undocumented properties.
6792+
public init(additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init()) {
6793+
self.additionalProperties = additionalProperties
6794+
}
6795+
public init(from decoder: any Decoder) throws {
6796+
additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [])
6797+
}
6798+
public func encode(to encoder: any Encoder) throws {
6799+
try encoder.encodeAdditionalProperties(additionalProperties)
6800+
}
6801+
}
6802+
/// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.
6803+
///
6804+
/// - Remark: Generated from `#/components/schemas/full-repository/custom_properties`.
6805+
public var custom_properties: Components.Schemas.full_hyphen_repository.custom_propertiesPayload?
67766806
/// Creates a new `full_hyphen_repository`.
67776807
///
67786808
/// - Parameters:
@@ -6878,6 +6908,7 @@ public enum Components {
68786908
/// - anonymous_access_enabled: Whether anonymous git access is allowed.
68796909
/// - code_of_conduct:
68806910
/// - security_and_analysis:
6911+
/// - custom_properties: The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.
68816912
public init(
68826913
id: Swift.Int,
68836914
node_id: Swift.String,
@@ -6980,7 +7011,8 @@ public enum Components {
69807011
watchers: Swift.Int,
69817012
anonymous_access_enabled: Swift.Bool? = nil,
69827013
code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct_hyphen_simple? = nil,
6983-
security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil
7014+
security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil,
7015+
custom_properties: Components.Schemas.full_hyphen_repository.custom_propertiesPayload? = nil
69847016
) {
69857017
self.id = id
69867018
self.node_id = node_id
@@ -7084,6 +7116,7 @@ public enum Components {
70847116
self.anonymous_access_enabled = anonymous_access_enabled
70857117
self.code_of_conduct = code_of_conduct
70867118
self.security_and_analysis = security_and_analysis
7119+
self.custom_properties = custom_properties
70877120
}
70887121
public enum CodingKeys: String, CodingKey {
70897122
case id
@@ -7188,6 +7221,7 @@ public enum Components {
71887221
case anonymous_access_enabled
71897222
case code_of_conduct
71907223
case security_and_analysis
7224+
case custom_properties
71917225
}
71927226
}
71937227
/// A description of the machine powering a codespace.
@@ -14287,6 +14321,8 @@ public enum Operations {
1428714321
/// token with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets`
1428814322
/// repository permission to use this endpoint.
1428914323
///
14324+
/// This endpoint does not support fine-grained personal access tokens. For more information about personal access tokens, see "[Managing your personal access tokens](https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic)."
14325+
///
1429014326
/// - Remark: HTTP `PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
1429114327
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-repo-secret)`.
1429214328
public enum codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret {
@@ -14497,6 +14533,7 @@ public enum Operations {
1449714533
/// Delete a repository secret
1449814534
///
1449914535
/// Deletes a development environment secret in a repository using the secret name. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets` repository permission to use this endpoint.
14536+
/// This endpoint does not support fine-grained personal access tokens. For more information about personal access tokens, see "[Managing your personal access tokens](https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic)."
1450014537
///
1450114538
/// - Remark: HTTP `DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
1450214539
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/delete(codespaces/delete-repo-secret)`.

Sources/repos/Client.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10033,7 +10033,7 @@ public struct Client: APIProtocol {
1003310033
}
1003410034
/// Get all deployment protection rules for an environment
1003510035
///
10036-
/// Gets all custom deployment protection rules that are enabled for an environment. Anyone with read access to the repository can use this endpoint. If the repository is private and you want to use a personal access token (classic), you must use an access token with the `repo` scope. GitHub Apps and fine-grained personal access tokens must have the `actions:read` permission to use this endpoint. For more information about environments, see "[Using environments for deployment](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment)."
10036+
/// Gets all custom deployment protection rules that are enabled for an environment. Anyone with read access to the repository can use this endpoint. If the repository is private and you want to use a personal access token (classic), you must use an access token with the `repo` scope. GitHub Apps and fine-grained personal access tokens must have the `actions:read` permission to use this endpoint. For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)."
1003710037
///
1003810038
/// For more information about the app that is providing this custom deployment rule, see the [documentation for the `GET /apps/{app_slug}` endpoint](https://docs.github.com/rest/apps/apps#get-an-app).
1003910039
///
@@ -10182,7 +10182,7 @@ public struct Client: APIProtocol {
1018210182
///
1018310183
/// Gets all custom deployment protection rule integrations that are available for an environment. Anyone with read access to the repository can use this endpoint. If the repository is private and you want to use a personal access token (classic), you must use an access token with the `repo` scope. GitHub Apps and fine-grained personal access tokens must have the `actions:read` permission to use this endpoint.
1018410184
///
10185-
/// For more information about environments, see "[Using environments for deployment](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment)."
10185+
/// For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)."
1018610186
///
1018710187
/// For more information about the app that is providing this custom deployment rule, see "[GET an app](https://docs.github.com/rest/apps/apps#get-an-app)".
1018810188
///
@@ -10264,7 +10264,7 @@ public struct Client: APIProtocol {
1026410264
}
1026510265
/// Get a custom deployment protection rule
1026610266
///
10267-
/// Gets an enabled custom deployment protection rule for an environment. Anyone with read access to the repository can use this endpoint. If the repository is private and you want to use a personal access token (classic), you must use an access token with the `repo` scope. GitHub Apps and fine-grained personal access tokens must have the `actions:read` permission to use this endpoint. For more information about environments, see "[Using environments for deployment](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment)."
10267+
/// Gets an enabled custom deployment protection rule for an environment. Anyone with read access to the repository can use this endpoint. If the repository is private and you want to use a personal access token (classic), you must use an access token with the `repo` scope. GitHub Apps and fine-grained personal access tokens must have the `actions:read` permission to use this endpoint. For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)."
1026810268
///
1026910269
/// For more information about the app that is providing this custom deployment rule, see [`GET /apps/{app_slug}`](https://docs.github.com/rest/apps/apps#get-an-app).
1027010270
///

0 commit comments

Comments
 (0)