@gitpod/public-api 0.1.5-se-flexible-termination-period.7 → 0.1.5-se-flexible-termination-period.13
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/gitpod/v1/pagination_pb.d.ts +27 -30
- package/lib/gitpod/v1/pagination_pb.d.ts.map +1 -0
- package/lib/gitpod/v1/pagination_pb.js +43 -199
- package/lib/gitpod/v1/pagination_pb.js.map +1 -0
- package/lib/gitpod/v1/pagination_pb.ts +60 -0
- package/lib/gitpod/v1/prebuilds_connectweb.d.ts +65 -0
- package/lib/gitpod/v1/prebuilds_connectweb.d.ts.map +1 -0
- package/lib/gitpod/v1/prebuilds_connectweb.js +72 -0
- package/lib/gitpod/v1/prebuilds_connectweb.js.map +1 -0
- package/lib/gitpod/v1/prebuilds_connectweb.ts +71 -0
- package/lib/gitpod/v1/prebuilds_pb.d.ts +263 -265
- package/lib/gitpod/v1/prebuilds_pb.d.ts.map +1 -0
- package/lib/gitpod/v1/prebuilds_pb.js +398 -1960
- package/lib/gitpod/v1/prebuilds_pb.js.map +1 -0
- package/lib/gitpod/v1/prebuilds_pb.ts +540 -0
- package/lib/gitpod/v1/workspaces_connectweb.d.ts +134 -0
- package/lib/gitpod/v1/workspaces_connectweb.d.ts.map +1 -0
- package/lib/gitpod/v1/workspaces_connectweb.js +141 -0
- package/lib/gitpod/v1/workspaces_connectweb.js.map +1 -0
- package/lib/gitpod/v1/workspaces_connectweb.ts +140 -0
- package/lib/gitpod/v1/workspaces_pb.d.ts +819 -804
- package/lib/gitpod/v1/workspaces_pb.d.ts.map +1 -0
- package/lib/gitpod/v1/workspaces_pb.js +1148 -5941
- package/lib/gitpod/v1/workspaces_pb.js.map +1 -0
- package/lib/gitpod/v1/workspaces_pb.ts +1509 -0
- package/package.json +7 -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/prebuilds_grpc_pb.d.ts +0 -95
- package/lib/gitpod/v1/prebuilds_grpc_pb.js +0 -161
- package/lib/gitpod/v1/workspaces_grpc_pb.d.ts +0 -197
- package/lib/gitpod/v1/workspaces_grpc_pb.js +0 -368
@@ -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);
|