Skip to content

Commit

Permalink
Merge pull request dask#9 from koyeb/create-pull-request/patch
Browse files Browse the repository at this point in the history
Changes by create-pull-request action
  • Loading branch information
bchatelard committed Oct 15, 2021
2 parents 594916e + a9b62c2 commit 87d4cba
Show file tree
Hide file tree
Showing 16 changed files with 1,735 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/v1/koyeb/.openapi-generator/FILES
Expand Up @@ -51,6 +51,10 @@ docs/Env.md
docs/Error.md
docs/ErrorField.md
docs/ErrorWithFields.md
docs/ExecCommandIO.md
docs/ExecCommandReply.md
docs/ExecCommandRequestBody.md
docs/ExecCommandRequestTerminalSize.md
docs/FetchGatewayReply.md
docs/FetchInternalRevisionReply.md
docs/FetchInternalServiceReply.md
Expand Down Expand Up @@ -142,6 +146,7 @@ docs/ServiceStateStatus.md
docs/ServicesApi.md
docs/SessionApi.md
docs/SsoApi.md
docs/StreamResultOfExecCommandReply.md
docs/StreamResultOfLogEntry.md
docs/StreamResultOfRevisionLogEntry.md
docs/Token.md
Expand Down Expand Up @@ -190,6 +195,10 @@ model_env.go
model_error.go
model_error_field.go
model_error_with_fields.go
model_exec_command_io.go
model_exec_command_reply.go
model_exec_command_request_body.go
model_exec_command_request_terminal_size.go
model_fetch_gateway_reply.go
model_fetch_internal_revision_reply.go
model_fetch_internal_service_reply.go
Expand Down Expand Up @@ -270,6 +279,7 @@ model_service_revision_state_stage_state_status.go
model_service_revision_state_status.go
model_service_state.go
model_service_state_status.go
model_stream_result_of_exec_command_reply.go
model_stream_result_of_log_entry.go
model_stream_result_of_revision_log_entry.go
model_token.go
Expand Down
6 changes: 6 additions & 0 deletions api/v1/koyeb/README.md
Expand Up @@ -95,6 +95,7 @@ Class | Method | HTTP request | Description
*CredentialsApi* | [**UpdateCredential**](docs/CredentialsApi.md#updatecredential) | **Put** /v1/credentials/{id} |
*CredentialsApi* | [**UpdateCredential2**](docs/CredentialsApi.md#updatecredential2) | **Patch** /v1/credentials/{id} |
*HooksApi* | [**Github**](docs/HooksApi.md#github) | **Post** /v1/hooks/github/payload | Github hook receiver
*InstancesApi* | [**ExecCommand**](docs/InstancesApi.md#execcommand) | **Post** /v1/instances/exec | Exec Command
*InstancesApi* | [**GetInstance**](docs/InstancesApi.md#getinstance) | **Get** /v1/instances/{id} | Get Instance
*InstancesApi* | [**ListInstances**](docs/InstancesApi.md#listinstances) | **Get** /v1/instances | List Instance
*InviteApi* | [**CreateInvite**](docs/InviteApi.md#createinvite) | **Post** /v1/account/invite |
Expand Down Expand Up @@ -175,6 +176,10 @@ Class | Method | HTTP request | Description
- [Error](docs/Error.md)
- [ErrorField](docs/ErrorField.md)
- [ErrorWithFields](docs/ErrorWithFields.md)
- [ExecCommandIO](docs/ExecCommandIO.md)
- [ExecCommandReply](docs/ExecCommandReply.md)
- [ExecCommandRequestBody](docs/ExecCommandRequestBody.md)
- [ExecCommandRequestTerminalSize](docs/ExecCommandRequestTerminalSize.md)
- [FetchGatewayReply](docs/FetchGatewayReply.md)
- [FetchInternalRevisionReply](docs/FetchInternalRevisionReply.md)
- [FetchInternalServiceReply](docs/FetchInternalServiceReply.md)
Expand Down Expand Up @@ -255,6 +260,7 @@ Class | Method | HTTP request | Description
- [ServiceRevisionStateStatus](docs/ServiceRevisionStateStatus.md)
- [ServiceState](docs/ServiceState.md)
- [ServiceStateStatus](docs/ServiceStateStatus.md)
- [StreamResultOfExecCommandReply](docs/StreamResultOfExecCommandReply.md)
- [StreamResultOfLogEntry](docs/StreamResultOfLogEntry.md)
- [StreamResultOfRevisionLogEntry](docs/StreamResultOfRevisionLogEntry.md)
- [Token](docs/Token.md)
Expand Down
104 changes: 104 additions & 0 deletions api/v1/koyeb/api/openapi.yaml
Expand Up @@ -1612,6 +1612,38 @@ paths:
summary: List Instance
tags:
- Instances
/v1/instances/exec:
post:
operationId: ExecCommand
parameters:
- in: query
name: id
schema:
type: string
requestBody:
content:
'*/*':
schema:
$ref: '#/components/schemas/ExecCommandRequest.Body'
description: ' (streaming inputs)'
required: true
responses:
"200":
content:
'*/*':
schema:
$ref: '#/components/schemas/Stream_result_of_ExecCommandReply'
description: A successful response.(streaming responses)
default:
content:
'*/*':
schema:
$ref: '#/components/schemas/google.rpc.Status'
description: An unexpected error response.
summary: Exec Command
tags:
- Instances
x-codegen-request-body-name: body
/v1/instances/{id}:
get:
operationId: GetInstance
Expand Down Expand Up @@ -5478,6 +5510,54 @@ components:
app:
$ref: '#/components/schemas/App'
type: object
ExecCommandIO:
example:
data: data
properties:
data:
format: byte
pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
type: string
type: object
ExecCommandReply:
example:
stdout:
data: data
exited: true
exit_code: 0
stderr:
data: data
properties:
stdout:
$ref: '#/components/schemas/ExecCommandIO'
stderr:
$ref: '#/components/schemas/ExecCommandIO'
exited:
type: boolean
exit_code:
format: int32
type: integer
type: object
ExecCommandRequest.Body:
properties:
command:
items:
type: string
type: array
tty_size:
$ref: '#/components/schemas/ExecCommandRequest.TerminalSize'
stdin:
$ref: '#/components/schemas/ExecCommandIO'
type: object
ExecCommandRequest.TerminalSize:
properties:
height:
format: int32
type: integer
width:
format: int32
type: integer
type: object
GetInstanceReply:
example:
instance:
Expand Down Expand Up @@ -6507,6 +6587,30 @@ components:
$ref: '#/components/schemas/google.rpc.Status'
title: Stream result of RevisionLogEntry
type: object
Stream_result_of_ExecCommandReply:
example:
result:
stdout:
data: data
exited: true
exit_code: 0
stderr:
data: data
error:
code: 0
details:
- value: value
type_url: type_url
- value: value
type_url: type_url
message: message
properties:
result:
$ref: '#/components/schemas/ExecCommandReply'
error:
$ref: '#/components/schemas/google.rpc.Status'
title: Stream result of ExecCommandReply
type: object
securitySchemes:
Bearer:
in: header
Expand Down
153 changes: 153 additions & 0 deletions api/v1/koyeb/api_instances.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 87d4cba

Please sign in to comment.