@gitpod/public-api 0.1.5-sje-installer-proxy-config-backup.0 → 0.1.5-sje-kots-db-migration-logger.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/gitpod/experimental/v1/pagination_pb.d.ts +33 -0
- package/lib/gitpod/experimental/v1/pagination_pb.d.ts.map +1 -0
- package/lib/gitpod/experimental/v1/pagination_pb.js +50 -0
- package/lib/gitpod/experimental/v1/pagination_pb.js.map +1 -0
- package/lib/gitpod/experimental/v1/pagination_pb.ts +60 -0
- package/lib/gitpod/experimental/v1/workspaces_connectweb.d.ts +74 -0
- package/lib/gitpod/experimental/v1/workspaces_connectweb.d.ts.map +1 -0
- package/lib/gitpod/experimental/v1/workspaces_connectweb.js +81 -0
- package/lib/gitpod/experimental/v1/workspaces_connectweb.js.map +1 -0
- package/lib/gitpod/experimental/v1/workspaces_connectweb.ts +80 -0
- package/lib/gitpod/experimental/v1/workspaces_pb.d.ts +695 -0
- package/lib/gitpod/experimental/v1/workspaces_pb.d.ts.map +1 -0
- package/lib/gitpod/experimental/v1/workspaces_pb.js +945 -0
- package/lib/gitpod/experimental/v1/workspaces_pb.js.map +1 -0
- package/lib/gitpod/experimental/v1/workspaces_pb.ts +1219 -0
- package/package.json +6 -10
- package/pkg-yarn.lock +5 -5
- package/provenance-bundle.jsonl +2 -2
- package/lib/gitpod/v1/pagination_grpc_pb.js +0 -7
- package/lib/gitpod/v1/pagination_pb.d.ts +0 -36
- package/lib/gitpod/v1/pagination_pb.js +0 -206
- package/lib/gitpod/v1/prebuilds_grpc_pb.d.ts +0 -95
- package/lib/gitpod/v1/prebuilds_grpc_pb.js +0 -161
- package/lib/gitpod/v1/prebuilds_pb.d.ts +0 -283
- package/lib/gitpod/v1/prebuilds_pb.js +0 -1997
- package/lib/gitpod/v1/workspaces_grpc_pb.d.ts +0 -197
- package/lib/gitpod/v1/workspaces_grpc_pb.js +0 -368
- package/lib/gitpod/v1/workspaces_pb.d.ts +0 -810
- package/lib/gitpod/v1/workspaces_pb.js +0 -5976
@@ -1,197 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
|
3
|
-
* Licensed under the GNU Affero General Public License (AGPL).
|
4
|
-
* See License-AGPL.txt in the project root for license information.
|
5
|
-
*/
|
6
|
-
|
7
|
-
// package: gitpod.v1
|
8
|
-
// file: gitpod/v1/workspaces.proto
|
9
|
-
|
10
|
-
/* tslint:disable */
|
11
|
-
/* eslint-disable */
|
12
|
-
|
13
|
-
import * as grpc from "@grpc/grpc-js";
|
14
|
-
import * as gitpod_v1_workspaces_pb from "../../gitpod/v1/workspaces_pb";
|
15
|
-
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
16
|
-
import * as google_protobuf_field_mask_pb from "google-protobuf/google/protobuf/field_mask_pb";
|
17
|
-
import * as gitpod_v1_pagination_pb from "../../gitpod/v1/pagination_pb";
|
18
|
-
|
19
|
-
interface IWorkspacesServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
20
|
-
listWorkspaces: IWorkspacesServiceService_IListWorkspaces;
|
21
|
-
getWorkspace: IWorkspacesServiceService_IGetWorkspace;
|
22
|
-
getOwnerToken: IWorkspacesServiceService_IGetOwnerToken;
|
23
|
-
createAndStartWorkspace: IWorkspacesServiceService_ICreateAndStartWorkspace;
|
24
|
-
startWorkspace: IWorkspacesServiceService_IStartWorkspace;
|
25
|
-
getActiveWorkspaceInstance: IWorkspacesServiceService_IGetActiveWorkspaceInstance;
|
26
|
-
getWorkspaceInstanceOwnerToken: IWorkspacesServiceService_IGetWorkspaceInstanceOwnerToken;
|
27
|
-
listenToWorkspaceInstance: IWorkspacesServiceService_IListenToWorkspaceInstance;
|
28
|
-
listenToImageBuildLogs: IWorkspacesServiceService_IListenToImageBuildLogs;
|
29
|
-
stopWorkspace: IWorkspacesServiceService_IStopWorkspace;
|
30
|
-
}
|
31
|
-
|
32
|
-
interface IWorkspacesServiceService_IListWorkspaces extends grpc.MethodDefinition<gitpod_v1_workspaces_pb.ListWorkspacesRequest, gitpod_v1_workspaces_pb.ListWorkspacesResponse> {
|
33
|
-
path: "/gitpod.v1.WorkspacesService/ListWorkspaces";
|
34
|
-
requestStream: false;
|
35
|
-
responseStream: false;
|
36
|
-
requestSerialize: grpc.serialize<gitpod_v1_workspaces_pb.ListWorkspacesRequest>;
|
37
|
-
requestDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.ListWorkspacesRequest>;
|
38
|
-
responseSerialize: grpc.serialize<gitpod_v1_workspaces_pb.ListWorkspacesResponse>;
|
39
|
-
responseDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.ListWorkspacesResponse>;
|
40
|
-
}
|
41
|
-
interface IWorkspacesServiceService_IGetWorkspace extends grpc.MethodDefinition<gitpod_v1_workspaces_pb.GetWorkspaceRequest, gitpod_v1_workspaces_pb.GetWorkspaceResponse> {
|
42
|
-
path: "/gitpod.v1.WorkspacesService/GetWorkspace";
|
43
|
-
requestStream: false;
|
44
|
-
responseStream: false;
|
45
|
-
requestSerialize: grpc.serialize<gitpod_v1_workspaces_pb.GetWorkspaceRequest>;
|
46
|
-
requestDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.GetWorkspaceRequest>;
|
47
|
-
responseSerialize: grpc.serialize<gitpod_v1_workspaces_pb.GetWorkspaceResponse>;
|
48
|
-
responseDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.GetWorkspaceResponse>;
|
49
|
-
}
|
50
|
-
interface IWorkspacesServiceService_IGetOwnerToken extends grpc.MethodDefinition<gitpod_v1_workspaces_pb.GetOwnerTokenRequest, gitpod_v1_workspaces_pb.GetOwnerTokenResponse> {
|
51
|
-
path: "/gitpod.v1.WorkspacesService/GetOwnerToken";
|
52
|
-
requestStream: false;
|
53
|
-
responseStream: false;
|
54
|
-
requestSerialize: grpc.serialize<gitpod_v1_workspaces_pb.GetOwnerTokenRequest>;
|
55
|
-
requestDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.GetOwnerTokenRequest>;
|
56
|
-
responseSerialize: grpc.serialize<gitpod_v1_workspaces_pb.GetOwnerTokenResponse>;
|
57
|
-
responseDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.GetOwnerTokenResponse>;
|
58
|
-
}
|
59
|
-
interface IWorkspacesServiceService_ICreateAndStartWorkspace extends grpc.MethodDefinition<gitpod_v1_workspaces_pb.CreateAndStartWorkspaceRequest, gitpod_v1_workspaces_pb.CreateAndStartWorkspaceResponse> {
|
60
|
-
path: "/gitpod.v1.WorkspacesService/CreateAndStartWorkspace";
|
61
|
-
requestStream: false;
|
62
|
-
responseStream: false;
|
63
|
-
requestSerialize: grpc.serialize<gitpod_v1_workspaces_pb.CreateAndStartWorkspaceRequest>;
|
64
|
-
requestDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.CreateAndStartWorkspaceRequest>;
|
65
|
-
responseSerialize: grpc.serialize<gitpod_v1_workspaces_pb.CreateAndStartWorkspaceResponse>;
|
66
|
-
responseDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.CreateAndStartWorkspaceResponse>;
|
67
|
-
}
|
68
|
-
interface IWorkspacesServiceService_IStartWorkspace extends grpc.MethodDefinition<gitpod_v1_workspaces_pb.StartWorkspaceRequest, gitpod_v1_workspaces_pb.StartWorkspaceResponse> {
|
69
|
-
path: "/gitpod.v1.WorkspacesService/StartWorkspace";
|
70
|
-
requestStream: false;
|
71
|
-
responseStream: false;
|
72
|
-
requestSerialize: grpc.serialize<gitpod_v1_workspaces_pb.StartWorkspaceRequest>;
|
73
|
-
requestDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.StartWorkspaceRequest>;
|
74
|
-
responseSerialize: grpc.serialize<gitpod_v1_workspaces_pb.StartWorkspaceResponse>;
|
75
|
-
responseDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.StartWorkspaceResponse>;
|
76
|
-
}
|
77
|
-
interface IWorkspacesServiceService_IGetActiveWorkspaceInstance extends grpc.MethodDefinition<gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceRequest, gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceResponse> {
|
78
|
-
path: "/gitpod.v1.WorkspacesService/GetActiveWorkspaceInstance";
|
79
|
-
requestStream: false;
|
80
|
-
responseStream: false;
|
81
|
-
requestSerialize: grpc.serialize<gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceRequest>;
|
82
|
-
requestDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceRequest>;
|
83
|
-
responseSerialize: grpc.serialize<gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceResponse>;
|
84
|
-
responseDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceResponse>;
|
85
|
-
}
|
86
|
-
interface IWorkspacesServiceService_IGetWorkspaceInstanceOwnerToken extends grpc.MethodDefinition<gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenRequest, gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenResponse> {
|
87
|
-
path: "/gitpod.v1.WorkspacesService/GetWorkspaceInstanceOwnerToken";
|
88
|
-
requestStream: false;
|
89
|
-
responseStream: false;
|
90
|
-
requestSerialize: grpc.serialize<gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenRequest>;
|
91
|
-
requestDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenRequest>;
|
92
|
-
responseSerialize: grpc.serialize<gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenResponse>;
|
93
|
-
responseDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenResponse>;
|
94
|
-
}
|
95
|
-
interface IWorkspacesServiceService_IListenToWorkspaceInstance extends grpc.MethodDefinition<gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceRequest, gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceResponse> {
|
96
|
-
path: "/gitpod.v1.WorkspacesService/ListenToWorkspaceInstance";
|
97
|
-
requestStream: false;
|
98
|
-
responseStream: true;
|
99
|
-
requestSerialize: grpc.serialize<gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceRequest>;
|
100
|
-
requestDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceRequest>;
|
101
|
-
responseSerialize: grpc.serialize<gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceResponse>;
|
102
|
-
responseDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceResponse>;
|
103
|
-
}
|
104
|
-
interface IWorkspacesServiceService_IListenToImageBuildLogs extends grpc.MethodDefinition<gitpod_v1_workspaces_pb.ListenToImageBuildLogsRequest, gitpod_v1_workspaces_pb.ListenToImageBuildLogsResponse> {
|
105
|
-
path: "/gitpod.v1.WorkspacesService/ListenToImageBuildLogs";
|
106
|
-
requestStream: false;
|
107
|
-
responseStream: true;
|
108
|
-
requestSerialize: grpc.serialize<gitpod_v1_workspaces_pb.ListenToImageBuildLogsRequest>;
|
109
|
-
requestDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.ListenToImageBuildLogsRequest>;
|
110
|
-
responseSerialize: grpc.serialize<gitpod_v1_workspaces_pb.ListenToImageBuildLogsResponse>;
|
111
|
-
responseDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.ListenToImageBuildLogsResponse>;
|
112
|
-
}
|
113
|
-
interface IWorkspacesServiceService_IStopWorkspace extends grpc.MethodDefinition<gitpod_v1_workspaces_pb.StopWorkspaceRequest, gitpod_v1_workspaces_pb.StopWorkspaceResponse> {
|
114
|
-
path: "/gitpod.v1.WorkspacesService/StopWorkspace";
|
115
|
-
requestStream: false;
|
116
|
-
responseStream: true;
|
117
|
-
requestSerialize: grpc.serialize<gitpod_v1_workspaces_pb.StopWorkspaceRequest>;
|
118
|
-
requestDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.StopWorkspaceRequest>;
|
119
|
-
responseSerialize: grpc.serialize<gitpod_v1_workspaces_pb.StopWorkspaceResponse>;
|
120
|
-
responseDeserialize: grpc.deserialize<gitpod_v1_workspaces_pb.StopWorkspaceResponse>;
|
121
|
-
}
|
122
|
-
|
123
|
-
export const WorkspacesServiceService: IWorkspacesServiceService;
|
124
|
-
|
125
|
-
export interface IWorkspacesServiceServer extends grpc.UntypedServiceImplementation {
|
126
|
-
listWorkspaces: grpc.handleUnaryCall<gitpod_v1_workspaces_pb.ListWorkspacesRequest, gitpod_v1_workspaces_pb.ListWorkspacesResponse>;
|
127
|
-
getWorkspace: grpc.handleUnaryCall<gitpod_v1_workspaces_pb.GetWorkspaceRequest, gitpod_v1_workspaces_pb.GetWorkspaceResponse>;
|
128
|
-
getOwnerToken: grpc.handleUnaryCall<gitpod_v1_workspaces_pb.GetOwnerTokenRequest, gitpod_v1_workspaces_pb.GetOwnerTokenResponse>;
|
129
|
-
createAndStartWorkspace: grpc.handleUnaryCall<gitpod_v1_workspaces_pb.CreateAndStartWorkspaceRequest, gitpod_v1_workspaces_pb.CreateAndStartWorkspaceResponse>;
|
130
|
-
startWorkspace: grpc.handleUnaryCall<gitpod_v1_workspaces_pb.StartWorkspaceRequest, gitpod_v1_workspaces_pb.StartWorkspaceResponse>;
|
131
|
-
getActiveWorkspaceInstance: grpc.handleUnaryCall<gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceRequest, gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceResponse>;
|
132
|
-
getWorkspaceInstanceOwnerToken: grpc.handleUnaryCall<gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenRequest, gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenResponse>;
|
133
|
-
listenToWorkspaceInstance: grpc.handleServerStreamingCall<gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceRequest, gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceResponse>;
|
134
|
-
listenToImageBuildLogs: grpc.handleServerStreamingCall<gitpod_v1_workspaces_pb.ListenToImageBuildLogsRequest, gitpod_v1_workspaces_pb.ListenToImageBuildLogsResponse>;
|
135
|
-
stopWorkspace: grpc.handleServerStreamingCall<gitpod_v1_workspaces_pb.StopWorkspaceRequest, gitpod_v1_workspaces_pb.StopWorkspaceResponse>;
|
136
|
-
}
|
137
|
-
|
138
|
-
export interface IWorkspacesServiceClient {
|
139
|
-
listWorkspaces(request: gitpod_v1_workspaces_pb.ListWorkspacesRequest, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.ListWorkspacesResponse) => void): grpc.ClientUnaryCall;
|
140
|
-
listWorkspaces(request: gitpod_v1_workspaces_pb.ListWorkspacesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.ListWorkspacesResponse) => void): grpc.ClientUnaryCall;
|
141
|
-
listWorkspaces(request: gitpod_v1_workspaces_pb.ListWorkspacesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.ListWorkspacesResponse) => void): grpc.ClientUnaryCall;
|
142
|
-
getWorkspace(request: gitpod_v1_workspaces_pb.GetWorkspaceRequest, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
143
|
-
getWorkspace(request: gitpod_v1_workspaces_pb.GetWorkspaceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
144
|
-
getWorkspace(request: gitpod_v1_workspaces_pb.GetWorkspaceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
145
|
-
getOwnerToken(request: gitpod_v1_workspaces_pb.GetOwnerTokenRequest, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetOwnerTokenResponse) => void): grpc.ClientUnaryCall;
|
146
|
-
getOwnerToken(request: gitpod_v1_workspaces_pb.GetOwnerTokenRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetOwnerTokenResponse) => void): grpc.ClientUnaryCall;
|
147
|
-
getOwnerToken(request: gitpod_v1_workspaces_pb.GetOwnerTokenRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetOwnerTokenResponse) => void): grpc.ClientUnaryCall;
|
148
|
-
createAndStartWorkspace(request: gitpod_v1_workspaces_pb.CreateAndStartWorkspaceRequest, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.CreateAndStartWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
149
|
-
createAndStartWorkspace(request: gitpod_v1_workspaces_pb.CreateAndStartWorkspaceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.CreateAndStartWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
150
|
-
createAndStartWorkspace(request: gitpod_v1_workspaces_pb.CreateAndStartWorkspaceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.CreateAndStartWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
151
|
-
startWorkspace(request: gitpod_v1_workspaces_pb.StartWorkspaceRequest, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.StartWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
152
|
-
startWorkspace(request: gitpod_v1_workspaces_pb.StartWorkspaceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.StartWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
153
|
-
startWorkspace(request: gitpod_v1_workspaces_pb.StartWorkspaceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.StartWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
154
|
-
getActiveWorkspaceInstance(request: gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceRequest, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceResponse) => void): grpc.ClientUnaryCall;
|
155
|
-
getActiveWorkspaceInstance(request: gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceResponse) => void): grpc.ClientUnaryCall;
|
156
|
-
getActiveWorkspaceInstance(request: gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceResponse) => void): grpc.ClientUnaryCall;
|
157
|
-
getWorkspaceInstanceOwnerToken(request: gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenRequest, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenResponse) => void): grpc.ClientUnaryCall;
|
158
|
-
getWorkspaceInstanceOwnerToken(request: gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenResponse) => void): grpc.ClientUnaryCall;
|
159
|
-
getWorkspaceInstanceOwnerToken(request: gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenResponse) => void): grpc.ClientUnaryCall;
|
160
|
-
listenToWorkspaceInstance(request: gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceResponse>;
|
161
|
-
listenToWorkspaceInstance(request: gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceResponse>;
|
162
|
-
listenToImageBuildLogs(request: gitpod_v1_workspaces_pb.ListenToImageBuildLogsRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<gitpod_v1_workspaces_pb.ListenToImageBuildLogsResponse>;
|
163
|
-
listenToImageBuildLogs(request: gitpod_v1_workspaces_pb.ListenToImageBuildLogsRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<gitpod_v1_workspaces_pb.ListenToImageBuildLogsResponse>;
|
164
|
-
stopWorkspace(request: gitpod_v1_workspaces_pb.StopWorkspaceRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<gitpod_v1_workspaces_pb.StopWorkspaceResponse>;
|
165
|
-
stopWorkspace(request: gitpod_v1_workspaces_pb.StopWorkspaceRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<gitpod_v1_workspaces_pb.StopWorkspaceResponse>;
|
166
|
-
}
|
167
|
-
|
168
|
-
export class WorkspacesServiceClient extends grpc.Client implements IWorkspacesServiceClient {
|
169
|
-
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
170
|
-
public listWorkspaces(request: gitpod_v1_workspaces_pb.ListWorkspacesRequest, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.ListWorkspacesResponse) => void): grpc.ClientUnaryCall;
|
171
|
-
public listWorkspaces(request: gitpod_v1_workspaces_pb.ListWorkspacesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.ListWorkspacesResponse) => void): grpc.ClientUnaryCall;
|
172
|
-
public listWorkspaces(request: gitpod_v1_workspaces_pb.ListWorkspacesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.ListWorkspacesResponse) => void): grpc.ClientUnaryCall;
|
173
|
-
public getWorkspace(request: gitpod_v1_workspaces_pb.GetWorkspaceRequest, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
174
|
-
public getWorkspace(request: gitpod_v1_workspaces_pb.GetWorkspaceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
175
|
-
public getWorkspace(request: gitpod_v1_workspaces_pb.GetWorkspaceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
176
|
-
public getOwnerToken(request: gitpod_v1_workspaces_pb.GetOwnerTokenRequest, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetOwnerTokenResponse) => void): grpc.ClientUnaryCall;
|
177
|
-
public getOwnerToken(request: gitpod_v1_workspaces_pb.GetOwnerTokenRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetOwnerTokenResponse) => void): grpc.ClientUnaryCall;
|
178
|
-
public getOwnerToken(request: gitpod_v1_workspaces_pb.GetOwnerTokenRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetOwnerTokenResponse) => void): grpc.ClientUnaryCall;
|
179
|
-
public createAndStartWorkspace(request: gitpod_v1_workspaces_pb.CreateAndStartWorkspaceRequest, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.CreateAndStartWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
180
|
-
public createAndStartWorkspace(request: gitpod_v1_workspaces_pb.CreateAndStartWorkspaceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.CreateAndStartWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
181
|
-
public createAndStartWorkspace(request: gitpod_v1_workspaces_pb.CreateAndStartWorkspaceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.CreateAndStartWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
182
|
-
public startWorkspace(request: gitpod_v1_workspaces_pb.StartWorkspaceRequest, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.StartWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
183
|
-
public startWorkspace(request: gitpod_v1_workspaces_pb.StartWorkspaceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.StartWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
184
|
-
public startWorkspace(request: gitpod_v1_workspaces_pb.StartWorkspaceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.StartWorkspaceResponse) => void): grpc.ClientUnaryCall;
|
185
|
-
public getActiveWorkspaceInstance(request: gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceRequest, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceResponse) => void): grpc.ClientUnaryCall;
|
186
|
-
public getActiveWorkspaceInstance(request: gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceResponse) => void): grpc.ClientUnaryCall;
|
187
|
-
public getActiveWorkspaceInstance(request: gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceResponse) => void): grpc.ClientUnaryCall;
|
188
|
-
public getWorkspaceInstanceOwnerToken(request: gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenRequest, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenResponse) => void): grpc.ClientUnaryCall;
|
189
|
-
public getWorkspaceInstanceOwnerToken(request: gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenResponse) => void): grpc.ClientUnaryCall;
|
190
|
-
public getWorkspaceInstanceOwnerToken(request: gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenResponse) => void): grpc.ClientUnaryCall;
|
191
|
-
public listenToWorkspaceInstance(request: gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceResponse>;
|
192
|
-
public listenToWorkspaceInstance(request: gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceResponse>;
|
193
|
-
public listenToImageBuildLogs(request: gitpod_v1_workspaces_pb.ListenToImageBuildLogsRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<gitpod_v1_workspaces_pb.ListenToImageBuildLogsResponse>;
|
194
|
-
public listenToImageBuildLogs(request: gitpod_v1_workspaces_pb.ListenToImageBuildLogsRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<gitpod_v1_workspaces_pb.ListenToImageBuildLogsResponse>;
|
195
|
-
public stopWorkspace(request: gitpod_v1_workspaces_pb.StopWorkspaceRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<gitpod_v1_workspaces_pb.StopWorkspaceResponse>;
|
196
|
-
public stopWorkspace(request: gitpod_v1_workspaces_pb.StopWorkspaceRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<gitpod_v1_workspaces_pb.StopWorkspaceResponse>;
|
197
|
-
}
|
@@ -1,368 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
|
3
|
-
* Licensed under the GNU Affero General Public License (AGPL).
|
4
|
-
* See License-AGPL.txt in the project root for license information.
|
5
|
-
*/
|
6
|
-
|
7
|
-
// GENERATED CODE -- DO NOT EDIT!
|
8
|
-
|
9
|
-
'use strict';
|
10
|
-
var grpc = require('@grpc/grpc-js');
|
11
|
-
var gitpod_v1_workspaces_pb = require('../../gitpod/v1/workspaces_pb.js');
|
12
|
-
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
13
|
-
var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js');
|
14
|
-
var gitpod_v1_pagination_pb = require('../../gitpod/v1/pagination_pb.js');
|
15
|
-
|
16
|
-
function serialize_gitpod_v1_CreateAndStartWorkspaceRequest(arg) {
|
17
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.CreateAndStartWorkspaceRequest)) {
|
18
|
-
throw new Error('Expected argument of type gitpod.v1.CreateAndStartWorkspaceRequest');
|
19
|
-
}
|
20
|
-
return Buffer.from(arg.serializeBinary());
|
21
|
-
}
|
22
|
-
|
23
|
-
function deserialize_gitpod_v1_CreateAndStartWorkspaceRequest(buffer_arg) {
|
24
|
-
return gitpod_v1_workspaces_pb.CreateAndStartWorkspaceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
25
|
-
}
|
26
|
-
|
27
|
-
function serialize_gitpod_v1_CreateAndStartWorkspaceResponse(arg) {
|
28
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.CreateAndStartWorkspaceResponse)) {
|
29
|
-
throw new Error('Expected argument of type gitpod.v1.CreateAndStartWorkspaceResponse');
|
30
|
-
}
|
31
|
-
return Buffer.from(arg.serializeBinary());
|
32
|
-
}
|
33
|
-
|
34
|
-
function deserialize_gitpod_v1_CreateAndStartWorkspaceResponse(buffer_arg) {
|
35
|
-
return gitpod_v1_workspaces_pb.CreateAndStartWorkspaceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
36
|
-
}
|
37
|
-
|
38
|
-
function serialize_gitpod_v1_GetActiveWorkspaceInstanceRequest(arg) {
|
39
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceRequest)) {
|
40
|
-
throw new Error('Expected argument of type gitpod.v1.GetActiveWorkspaceInstanceRequest');
|
41
|
-
}
|
42
|
-
return Buffer.from(arg.serializeBinary());
|
43
|
-
}
|
44
|
-
|
45
|
-
function deserialize_gitpod_v1_GetActiveWorkspaceInstanceRequest(buffer_arg) {
|
46
|
-
return gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
47
|
-
}
|
48
|
-
|
49
|
-
function serialize_gitpod_v1_GetActiveWorkspaceInstanceResponse(arg) {
|
50
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceResponse)) {
|
51
|
-
throw new Error('Expected argument of type gitpod.v1.GetActiveWorkspaceInstanceResponse');
|
52
|
-
}
|
53
|
-
return Buffer.from(arg.serializeBinary());
|
54
|
-
}
|
55
|
-
|
56
|
-
function deserialize_gitpod_v1_GetActiveWorkspaceInstanceResponse(buffer_arg) {
|
57
|
-
return gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
58
|
-
}
|
59
|
-
|
60
|
-
function serialize_gitpod_v1_GetOwnerTokenRequest(arg) {
|
61
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.GetOwnerTokenRequest)) {
|
62
|
-
throw new Error('Expected argument of type gitpod.v1.GetOwnerTokenRequest');
|
63
|
-
}
|
64
|
-
return Buffer.from(arg.serializeBinary());
|
65
|
-
}
|
66
|
-
|
67
|
-
function deserialize_gitpod_v1_GetOwnerTokenRequest(buffer_arg) {
|
68
|
-
return gitpod_v1_workspaces_pb.GetOwnerTokenRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
69
|
-
}
|
70
|
-
|
71
|
-
function serialize_gitpod_v1_GetOwnerTokenResponse(arg) {
|
72
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.GetOwnerTokenResponse)) {
|
73
|
-
throw new Error('Expected argument of type gitpod.v1.GetOwnerTokenResponse');
|
74
|
-
}
|
75
|
-
return Buffer.from(arg.serializeBinary());
|
76
|
-
}
|
77
|
-
|
78
|
-
function deserialize_gitpod_v1_GetOwnerTokenResponse(buffer_arg) {
|
79
|
-
return gitpod_v1_workspaces_pb.GetOwnerTokenResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
80
|
-
}
|
81
|
-
|
82
|
-
function serialize_gitpod_v1_GetWorkspaceInstanceOwnerTokenRequest(arg) {
|
83
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenRequest)) {
|
84
|
-
throw new Error('Expected argument of type gitpod.v1.GetWorkspaceInstanceOwnerTokenRequest');
|
85
|
-
}
|
86
|
-
return Buffer.from(arg.serializeBinary());
|
87
|
-
}
|
88
|
-
|
89
|
-
function deserialize_gitpod_v1_GetWorkspaceInstanceOwnerTokenRequest(buffer_arg) {
|
90
|
-
return gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
91
|
-
}
|
92
|
-
|
93
|
-
function serialize_gitpod_v1_GetWorkspaceInstanceOwnerTokenResponse(arg) {
|
94
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenResponse)) {
|
95
|
-
throw new Error('Expected argument of type gitpod.v1.GetWorkspaceInstanceOwnerTokenResponse');
|
96
|
-
}
|
97
|
-
return Buffer.from(arg.serializeBinary());
|
98
|
-
}
|
99
|
-
|
100
|
-
function deserialize_gitpod_v1_GetWorkspaceInstanceOwnerTokenResponse(buffer_arg) {
|
101
|
-
return gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
102
|
-
}
|
103
|
-
|
104
|
-
function serialize_gitpod_v1_GetWorkspaceRequest(arg) {
|
105
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.GetWorkspaceRequest)) {
|
106
|
-
throw new Error('Expected argument of type gitpod.v1.GetWorkspaceRequest');
|
107
|
-
}
|
108
|
-
return Buffer.from(arg.serializeBinary());
|
109
|
-
}
|
110
|
-
|
111
|
-
function deserialize_gitpod_v1_GetWorkspaceRequest(buffer_arg) {
|
112
|
-
return gitpod_v1_workspaces_pb.GetWorkspaceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
113
|
-
}
|
114
|
-
|
115
|
-
function serialize_gitpod_v1_GetWorkspaceResponse(arg) {
|
116
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.GetWorkspaceResponse)) {
|
117
|
-
throw new Error('Expected argument of type gitpod.v1.GetWorkspaceResponse');
|
118
|
-
}
|
119
|
-
return Buffer.from(arg.serializeBinary());
|
120
|
-
}
|
121
|
-
|
122
|
-
function deserialize_gitpod_v1_GetWorkspaceResponse(buffer_arg) {
|
123
|
-
return gitpod_v1_workspaces_pb.GetWorkspaceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
124
|
-
}
|
125
|
-
|
126
|
-
function serialize_gitpod_v1_ListWorkspacesRequest(arg) {
|
127
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.ListWorkspacesRequest)) {
|
128
|
-
throw new Error('Expected argument of type gitpod.v1.ListWorkspacesRequest');
|
129
|
-
}
|
130
|
-
return Buffer.from(arg.serializeBinary());
|
131
|
-
}
|
132
|
-
|
133
|
-
function deserialize_gitpod_v1_ListWorkspacesRequest(buffer_arg) {
|
134
|
-
return gitpod_v1_workspaces_pb.ListWorkspacesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
135
|
-
}
|
136
|
-
|
137
|
-
function serialize_gitpod_v1_ListWorkspacesResponse(arg) {
|
138
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.ListWorkspacesResponse)) {
|
139
|
-
throw new Error('Expected argument of type gitpod.v1.ListWorkspacesResponse');
|
140
|
-
}
|
141
|
-
return Buffer.from(arg.serializeBinary());
|
142
|
-
}
|
143
|
-
|
144
|
-
function deserialize_gitpod_v1_ListWorkspacesResponse(buffer_arg) {
|
145
|
-
return gitpod_v1_workspaces_pb.ListWorkspacesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
146
|
-
}
|
147
|
-
|
148
|
-
function serialize_gitpod_v1_ListenToImageBuildLogsRequest(arg) {
|
149
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.ListenToImageBuildLogsRequest)) {
|
150
|
-
throw new Error('Expected argument of type gitpod.v1.ListenToImageBuildLogsRequest');
|
151
|
-
}
|
152
|
-
return Buffer.from(arg.serializeBinary());
|
153
|
-
}
|
154
|
-
|
155
|
-
function deserialize_gitpod_v1_ListenToImageBuildLogsRequest(buffer_arg) {
|
156
|
-
return gitpod_v1_workspaces_pb.ListenToImageBuildLogsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
157
|
-
}
|
158
|
-
|
159
|
-
function serialize_gitpod_v1_ListenToImageBuildLogsResponse(arg) {
|
160
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.ListenToImageBuildLogsResponse)) {
|
161
|
-
throw new Error('Expected argument of type gitpod.v1.ListenToImageBuildLogsResponse');
|
162
|
-
}
|
163
|
-
return Buffer.from(arg.serializeBinary());
|
164
|
-
}
|
165
|
-
|
166
|
-
function deserialize_gitpod_v1_ListenToImageBuildLogsResponse(buffer_arg) {
|
167
|
-
return gitpod_v1_workspaces_pb.ListenToImageBuildLogsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
168
|
-
}
|
169
|
-
|
170
|
-
function serialize_gitpod_v1_ListenToWorkspaceInstanceRequest(arg) {
|
171
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceRequest)) {
|
172
|
-
throw new Error('Expected argument of type gitpod.v1.ListenToWorkspaceInstanceRequest');
|
173
|
-
}
|
174
|
-
return Buffer.from(arg.serializeBinary());
|
175
|
-
}
|
176
|
-
|
177
|
-
function deserialize_gitpod_v1_ListenToWorkspaceInstanceRequest(buffer_arg) {
|
178
|
-
return gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
179
|
-
}
|
180
|
-
|
181
|
-
function serialize_gitpod_v1_ListenToWorkspaceInstanceResponse(arg) {
|
182
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceResponse)) {
|
183
|
-
throw new Error('Expected argument of type gitpod.v1.ListenToWorkspaceInstanceResponse');
|
184
|
-
}
|
185
|
-
return Buffer.from(arg.serializeBinary());
|
186
|
-
}
|
187
|
-
|
188
|
-
function deserialize_gitpod_v1_ListenToWorkspaceInstanceResponse(buffer_arg) {
|
189
|
-
return gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
190
|
-
}
|
191
|
-
|
192
|
-
function serialize_gitpod_v1_StartWorkspaceRequest(arg) {
|
193
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.StartWorkspaceRequest)) {
|
194
|
-
throw new Error('Expected argument of type gitpod.v1.StartWorkspaceRequest');
|
195
|
-
}
|
196
|
-
return Buffer.from(arg.serializeBinary());
|
197
|
-
}
|
198
|
-
|
199
|
-
function deserialize_gitpod_v1_StartWorkspaceRequest(buffer_arg) {
|
200
|
-
return gitpod_v1_workspaces_pb.StartWorkspaceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
201
|
-
}
|
202
|
-
|
203
|
-
function serialize_gitpod_v1_StartWorkspaceResponse(arg) {
|
204
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.StartWorkspaceResponse)) {
|
205
|
-
throw new Error('Expected argument of type gitpod.v1.StartWorkspaceResponse');
|
206
|
-
}
|
207
|
-
return Buffer.from(arg.serializeBinary());
|
208
|
-
}
|
209
|
-
|
210
|
-
function deserialize_gitpod_v1_StartWorkspaceResponse(buffer_arg) {
|
211
|
-
return gitpod_v1_workspaces_pb.StartWorkspaceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
212
|
-
}
|
213
|
-
|
214
|
-
function serialize_gitpod_v1_StopWorkspaceRequest(arg) {
|
215
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.StopWorkspaceRequest)) {
|
216
|
-
throw new Error('Expected argument of type gitpod.v1.StopWorkspaceRequest');
|
217
|
-
}
|
218
|
-
return Buffer.from(arg.serializeBinary());
|
219
|
-
}
|
220
|
-
|
221
|
-
function deserialize_gitpod_v1_StopWorkspaceRequest(buffer_arg) {
|
222
|
-
return gitpod_v1_workspaces_pb.StopWorkspaceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
223
|
-
}
|
224
|
-
|
225
|
-
function serialize_gitpod_v1_StopWorkspaceResponse(arg) {
|
226
|
-
if (!(arg instanceof gitpod_v1_workspaces_pb.StopWorkspaceResponse)) {
|
227
|
-
throw new Error('Expected argument of type gitpod.v1.StopWorkspaceResponse');
|
228
|
-
}
|
229
|
-
return Buffer.from(arg.serializeBinary());
|
230
|
-
}
|
231
|
-
|
232
|
-
function deserialize_gitpod_v1_StopWorkspaceResponse(buffer_arg) {
|
233
|
-
return gitpod_v1_workspaces_pb.StopWorkspaceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
234
|
-
}
|
235
|
-
|
236
|
-
|
237
|
-
var WorkspacesServiceService = exports.WorkspacesServiceService = {
|
238
|
-
// ListWorkspaces enumerates all workspaces belonging to the authenticated user.
|
239
|
-
listWorkspaces: {
|
240
|
-
path: '/gitpod.v1.WorkspacesService/ListWorkspaces',
|
241
|
-
requestStream: false,
|
242
|
-
responseStream: false,
|
243
|
-
requestType: gitpod_v1_workspaces_pb.ListWorkspacesRequest,
|
244
|
-
responseType: gitpod_v1_workspaces_pb.ListWorkspacesResponse,
|
245
|
-
requestSerialize: serialize_gitpod_v1_ListWorkspacesRequest,
|
246
|
-
requestDeserialize: deserialize_gitpod_v1_ListWorkspacesRequest,
|
247
|
-
responseSerialize: serialize_gitpod_v1_ListWorkspacesResponse,
|
248
|
-
responseDeserialize: deserialize_gitpod_v1_ListWorkspacesResponse,
|
249
|
-
},
|
250
|
-
// GetWorkspace returns a single workspace.
|
251
|
-
getWorkspace: {
|
252
|
-
path: '/gitpod.v1.WorkspacesService/GetWorkspace',
|
253
|
-
requestStream: false,
|
254
|
-
responseStream: false,
|
255
|
-
requestType: gitpod_v1_workspaces_pb.GetWorkspaceRequest,
|
256
|
-
responseType: gitpod_v1_workspaces_pb.GetWorkspaceResponse,
|
257
|
-
requestSerialize: serialize_gitpod_v1_GetWorkspaceRequest,
|
258
|
-
requestDeserialize: deserialize_gitpod_v1_GetWorkspaceRequest,
|
259
|
-
responseSerialize: serialize_gitpod_v1_GetWorkspaceResponse,
|
260
|
-
responseDeserialize: deserialize_gitpod_v1_GetWorkspaceResponse,
|
261
|
-
},
|
262
|
-
// GetOwnerToken returns an owner token.
|
263
|
-
getOwnerToken: {
|
264
|
-
path: '/gitpod.v1.WorkspacesService/GetOwnerToken',
|
265
|
-
requestStream: false,
|
266
|
-
responseStream: false,
|
267
|
-
requestType: gitpod_v1_workspaces_pb.GetOwnerTokenRequest,
|
268
|
-
responseType: gitpod_v1_workspaces_pb.GetOwnerTokenResponse,
|
269
|
-
requestSerialize: serialize_gitpod_v1_GetOwnerTokenRequest,
|
270
|
-
requestDeserialize: deserialize_gitpod_v1_GetOwnerTokenRequest,
|
271
|
-
responseSerialize: serialize_gitpod_v1_GetOwnerTokenResponse,
|
272
|
-
responseDeserialize: deserialize_gitpod_v1_GetOwnerTokenResponse,
|
273
|
-
},
|
274
|
-
// CreateAndStartWorkspace creates a new workspace and starts it.
|
275
|
-
createAndStartWorkspace: {
|
276
|
-
path: '/gitpod.v1.WorkspacesService/CreateAndStartWorkspace',
|
277
|
-
requestStream: false,
|
278
|
-
responseStream: false,
|
279
|
-
requestType: gitpod_v1_workspaces_pb.CreateAndStartWorkspaceRequest,
|
280
|
-
responseType: gitpod_v1_workspaces_pb.CreateAndStartWorkspaceResponse,
|
281
|
-
requestSerialize: serialize_gitpod_v1_CreateAndStartWorkspaceRequest,
|
282
|
-
requestDeserialize: deserialize_gitpod_v1_CreateAndStartWorkspaceRequest,
|
283
|
-
responseSerialize: serialize_gitpod_v1_CreateAndStartWorkspaceResponse,
|
284
|
-
responseDeserialize: deserialize_gitpod_v1_CreateAndStartWorkspaceResponse,
|
285
|
-
},
|
286
|
-
// StartWorkspace starts an existing workspace.
|
287
|
-
startWorkspace: {
|
288
|
-
path: '/gitpod.v1.WorkspacesService/StartWorkspace',
|
289
|
-
requestStream: false,
|
290
|
-
responseStream: false,
|
291
|
-
requestType: gitpod_v1_workspaces_pb.StartWorkspaceRequest,
|
292
|
-
responseType: gitpod_v1_workspaces_pb.StartWorkspaceResponse,
|
293
|
-
requestSerialize: serialize_gitpod_v1_StartWorkspaceRequest,
|
294
|
-
requestDeserialize: deserialize_gitpod_v1_StartWorkspaceRequest,
|
295
|
-
responseSerialize: serialize_gitpod_v1_StartWorkspaceResponse,
|
296
|
-
responseDeserialize: deserialize_gitpod_v1_StartWorkspaceResponse,
|
297
|
-
},
|
298
|
-
// GetRunningWorkspaceInstance returns the currently active instance of a workspace.
|
299
|
-
// Errors:
|
300
|
-
// FAILED_PRECONDITION: if a workspace does not a currently active instance
|
301
|
-
//
|
302
|
-
getActiveWorkspaceInstance: {
|
303
|
-
path: '/gitpod.v1.WorkspacesService/GetActiveWorkspaceInstance',
|
304
|
-
requestStream: false,
|
305
|
-
responseStream: false,
|
306
|
-
requestType: gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceRequest,
|
307
|
-
responseType: gitpod_v1_workspaces_pb.GetActiveWorkspaceInstanceResponse,
|
308
|
-
requestSerialize: serialize_gitpod_v1_GetActiveWorkspaceInstanceRequest,
|
309
|
-
requestDeserialize: deserialize_gitpod_v1_GetActiveWorkspaceInstanceRequest,
|
310
|
-
responseSerialize: serialize_gitpod_v1_GetActiveWorkspaceInstanceResponse,
|
311
|
-
responseDeserialize: deserialize_gitpod_v1_GetActiveWorkspaceInstanceResponse,
|
312
|
-
},
|
313
|
-
// GetWorkspaceInstanceOwnerToken returns the owner token of a workspace instance.
|
314
|
-
// Note: the owner token is not part of the workspace instance status so that we can scope its access on the
|
315
|
-
// API function level.
|
316
|
-
getWorkspaceInstanceOwnerToken: {
|
317
|
-
path: '/gitpod.v1.WorkspacesService/GetWorkspaceInstanceOwnerToken',
|
318
|
-
requestStream: false,
|
319
|
-
responseStream: false,
|
320
|
-
requestType: gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenRequest,
|
321
|
-
responseType: gitpod_v1_workspaces_pb.GetWorkspaceInstanceOwnerTokenResponse,
|
322
|
-
requestSerialize: serialize_gitpod_v1_GetWorkspaceInstanceOwnerTokenRequest,
|
323
|
-
requestDeserialize: deserialize_gitpod_v1_GetWorkspaceInstanceOwnerTokenRequest,
|
324
|
-
responseSerialize: serialize_gitpod_v1_GetWorkspaceInstanceOwnerTokenResponse,
|
325
|
-
responseDeserialize: deserialize_gitpod_v1_GetWorkspaceInstanceOwnerTokenResponse,
|
326
|
-
},
|
327
|
-
// ListenToWorkspaceInstance listens to workspace instance updates.
|
328
|
-
listenToWorkspaceInstance: {
|
329
|
-
path: '/gitpod.v1.WorkspacesService/ListenToWorkspaceInstance',
|
330
|
-
requestStream: false,
|
331
|
-
responseStream: true,
|
332
|
-
requestType: gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceRequest,
|
333
|
-
responseType: gitpod_v1_workspaces_pb.ListenToWorkspaceInstanceResponse,
|
334
|
-
requestSerialize: serialize_gitpod_v1_ListenToWorkspaceInstanceRequest,
|
335
|
-
requestDeserialize: deserialize_gitpod_v1_ListenToWorkspaceInstanceRequest,
|
336
|
-
responseSerialize: serialize_gitpod_v1_ListenToWorkspaceInstanceResponse,
|
337
|
-
responseDeserialize: deserialize_gitpod_v1_ListenToWorkspaceInstanceResponse,
|
338
|
-
},
|
339
|
-
// ListenToImageBuildLogs streams (currently or previously) running workspace image build logs
|
340
|
-
listenToImageBuildLogs: {
|
341
|
-
path: '/gitpod.v1.WorkspacesService/ListenToImageBuildLogs',
|
342
|
-
requestStream: false,
|
343
|
-
responseStream: true,
|
344
|
-
requestType: gitpod_v1_workspaces_pb.ListenToImageBuildLogsRequest,
|
345
|
-
responseType: gitpod_v1_workspaces_pb.ListenToImageBuildLogsResponse,
|
346
|
-
requestSerialize: serialize_gitpod_v1_ListenToImageBuildLogsRequest,
|
347
|
-
requestDeserialize: deserialize_gitpod_v1_ListenToImageBuildLogsRequest,
|
348
|
-
responseSerialize: serialize_gitpod_v1_ListenToImageBuildLogsResponse,
|
349
|
-
responseDeserialize: deserialize_gitpod_v1_ListenToImageBuildLogsResponse,
|
350
|
-
},
|
351
|
-
// StopWorkspace stops a running workspace (instance).
|
352
|
-
// Errors:
|
353
|
-
// NOT_FOUND: the workspace_id is unkown
|
354
|
-
// FAILED_PRECONDITION: if there's no running instance
|
355
|
-
stopWorkspace: {
|
356
|
-
path: '/gitpod.v1.WorkspacesService/StopWorkspace',
|
357
|
-
requestStream: false,
|
358
|
-
responseStream: true,
|
359
|
-
requestType: gitpod_v1_workspaces_pb.StopWorkspaceRequest,
|
360
|
-
responseType: gitpod_v1_workspaces_pb.StopWorkspaceResponse,
|
361
|
-
requestSerialize: serialize_gitpod_v1_StopWorkspaceRequest,
|
362
|
-
requestDeserialize: deserialize_gitpod_v1_StopWorkspaceRequest,
|
363
|
-
responseSerialize: serialize_gitpod_v1_StopWorkspaceResponse,
|
364
|
-
responseDeserialize: deserialize_gitpod_v1_StopWorkspaceResponse,
|
365
|
-
},
|
366
|
-
};
|
367
|
-
|
368
|
-
exports.WorkspacesServiceClient = grpc.makeGenericClientConstructor(WorkspacesServiceService);
|