Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Submodule/github/rest-api-description from 60482fa to 2124d78 #25

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
3 changes: 3 additions & 0 deletions Sources/codespaces/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3217,6 +3217,8 @@ public struct Client: APIProtocol {
/// 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.
///
/// 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)."
///
/// - Remark: HTTP `PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-repo-secret)`.
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 {
Expand Down Expand Up @@ -3293,6 +3295,7 @@ public struct Client: APIProtocol {
/// Delete a repository secret
///
/// 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.
/// 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)."
///
/// - Remark: HTTP `DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/delete(codespaces/delete-repo-secret)`.
Expand Down
39 changes: 38 additions & 1 deletion Sources/codespaces/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,15 @@ public protocol APIProtocol: Sendable {
/// 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.
///
/// 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)."
///
/// - Remark: HTTP `PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-repo-secret)`.
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
/// Delete a repository secret
///
/// 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.
/// 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)."
///
/// - Remark: HTTP `DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/delete(codespaces/delete-repo-secret)`.
Expand Down Expand Up @@ -1027,6 +1030,8 @@ extension APIProtocol {
/// 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.
///
/// 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)."
///
/// - Remark: HTTP `PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-repo-secret)`.
public func codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret(
Expand All @@ -1043,6 +1048,7 @@ extension APIProtocol {
/// Delete a repository secret
///
/// 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.
/// 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)."
///
/// - Remark: HTTP `DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/delete(codespaces/delete-repo-secret)`.
Expand Down Expand Up @@ -6773,6 +6779,30 @@ public enum Components {
public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct_hyphen_simple?
/// - Remark: Generated from `#/components/schemas/full-repository/security_and_analysis`.
public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis?
/// 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.
///
/// - Remark: Generated from `#/components/schemas/full-repository/custom_properties`.
public struct custom_propertiesPayload: Codable, Hashable, Sendable {
/// A container of undocumented properties.
public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer
/// Creates a new `custom_propertiesPayload`.
///
/// - Parameters:
/// - additionalProperties: A container of undocumented properties.
public init(additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init()) {
self.additionalProperties = additionalProperties
}
public init(from decoder: any Decoder) throws {
additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [])
}
public func encode(to encoder: any Encoder) throws {
try encoder.encodeAdditionalProperties(additionalProperties)
}
}
/// 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.
///
/// - Remark: Generated from `#/components/schemas/full-repository/custom_properties`.
public var custom_properties: Components.Schemas.full_hyphen_repository.custom_propertiesPayload?
/// Creates a new `full_hyphen_repository`.
///
/// - Parameters:
Expand Down Expand Up @@ -6878,6 +6908,7 @@ public enum Components {
/// - anonymous_access_enabled: Whether anonymous git access is allowed.
/// - code_of_conduct:
/// - security_and_analysis:
/// - 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.
public init(
id: Swift.Int,
node_id: Swift.String,
Expand Down Expand Up @@ -6980,7 +7011,8 @@ public enum Components {
watchers: Swift.Int,
anonymous_access_enabled: Swift.Bool? = nil,
code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct_hyphen_simple? = nil,
security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil
security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil,
custom_properties: Components.Schemas.full_hyphen_repository.custom_propertiesPayload? = nil
) {
self.id = id
self.node_id = node_id
Expand Down Expand Up @@ -7084,6 +7116,7 @@ public enum Components {
self.anonymous_access_enabled = anonymous_access_enabled
self.code_of_conduct = code_of_conduct
self.security_and_analysis = security_and_analysis
self.custom_properties = custom_properties
}
public enum CodingKeys: String, CodingKey {
case id
Expand Down Expand Up @@ -7188,6 +7221,7 @@ public enum Components {
case anonymous_access_enabled
case code_of_conduct
case security_and_analysis
case custom_properties
}
}
/// A description of the machine powering a codespace.
Expand Down Expand Up @@ -14287,6 +14321,8 @@ public enum Operations {
/// 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.
///
/// 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)."
///
/// - Remark: HTTP `PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-repo-secret)`.
public enum codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret {
Expand Down Expand Up @@ -14497,6 +14533,7 @@ public enum Operations {
/// Delete a repository secret
///
/// 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.
/// 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)."
///
/// - Remark: HTTP `DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/delete(codespaces/delete-repo-secret)`.
Expand Down
6 changes: 3 additions & 3 deletions Sources/repos/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10033,7 +10033,7 @@ public struct Client: APIProtocol {
}
/// Get all deployment protection rules for an environment
///
/// 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)."
/// 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)."
///
/// 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).
///
Expand Down Expand Up @@ -10182,7 +10182,7 @@ public struct Client: APIProtocol {
///
/// 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.
///
/// For more information about environments, see "[Using environments for deployment](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment)."
/// For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)."
///
/// 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)".
///
Expand Down Expand Up @@ -10264,7 +10264,7 @@ public struct Client: APIProtocol {
}
/// Get a custom deployment protection rule
///
/// 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)."
/// 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)."
///
/// 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).
///
Expand Down
Loading