@replit/protocol 0.4.28 → 0.4.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/chateau/resources.d.ts +4 -0
- package/dist/api/chateau/resources.js +7 -0
- package/dist/api/features/features.d.ts +0 -28
- package/dist/api/features/features.js +0 -49
- package/dist/api/jetplane/repl/repl.client.d.ts +199 -0
- package/dist/api/jetplane/repl/repl.client.js +120 -0
- package/dist/api/jetplane/repl/repl.d.ts +1313 -0
- package/dist/api/jetplane/repl/repl.js +2295 -0
- package/dist/api/lore/lore.d.ts +0 -27
- package/dist/api/lore/lore.js +0 -57
- package/dist/api/lore/service.client.d.ts +100 -18
- package/dist/api/lore/service.client.js +81 -28
- package/dist/api/lore/service.d.ts +582 -15
- package/dist/api/lore/service.js +1273 -150
- package/dist/api/repl/repl.d.ts +13 -0
- package/dist/api/repl/repl.js +17 -1
- package/dist/api/token/token.d.ts +27 -2
- package/dist/api/token/token.js +29 -1
- package/dist/google/protobuf/field_mask.d.ts +16 -18
- package/dist/google/protobuf/struct.d.ts +33 -22
- package/dist/google/protobuf/struct.js +8 -3
- package/dist/google/protobuf/timestamp.d.ts +9 -8
- package/iotester/index.d.ts +8588 -2323
- package/iotester/index.js +21047 -5416
- package/main/index.d.ts +8588 -2323
- package/main/index.js +21047 -5416
- package/package.json +1 -1
package/dist/api/lore/lore.d.ts
CHANGED
|
@@ -155,15 +155,6 @@ export interface Takedown {
|
|
|
155
155
|
*/
|
|
156
156
|
replId: string;
|
|
157
157
|
}
|
|
158
|
-
/**
|
|
159
|
-
* @generated from protobuf message replit.goval.api.lore.StartViktor
|
|
160
|
-
*/
|
|
161
|
-
export interface StartViktor {
|
|
162
|
-
/**
|
|
163
|
-
* @generated from protobuf field: string repl_id = 1
|
|
164
|
-
*/
|
|
165
|
-
replId: string;
|
|
166
|
-
}
|
|
167
158
|
/**
|
|
168
159
|
* @generated from protobuf message replit.goval.api.lore.GovalCommand
|
|
169
160
|
*/
|
|
@@ -237,14 +228,6 @@ export interface GovalCommand {
|
|
|
237
228
|
* @generated from protobuf field: replit.goval.api.lore.Takedown takedown = 7
|
|
238
229
|
*/
|
|
239
230
|
takedown: Takedown;
|
|
240
|
-
} | {
|
|
241
|
-
oneofKind: "startViktor";
|
|
242
|
-
/**
|
|
243
|
-
* StartViktor is necessary when upgrading to core while editing a repl.
|
|
244
|
-
*
|
|
245
|
-
* @generated from protobuf field: replit.goval.api.lore.StartViktor start_viktor = 9
|
|
246
|
-
*/
|
|
247
|
-
startViktor: StartViktor;
|
|
248
231
|
} | {
|
|
249
232
|
oneofKind: "addTokenToReplShieldAllowList";
|
|
250
233
|
/**
|
|
@@ -430,16 +413,6 @@ declare class Takedown$Type extends MessageType<Takedown> {
|
|
|
430
413
|
* @generated MessageType for protobuf message replit.goval.api.lore.Takedown
|
|
431
414
|
*/
|
|
432
415
|
export declare const Takedown: Takedown$Type;
|
|
433
|
-
declare class StartViktor$Type extends MessageType<StartViktor> {
|
|
434
|
-
constructor();
|
|
435
|
-
create(value?: PartialMessage<StartViktor>): StartViktor;
|
|
436
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartViktor): StartViktor;
|
|
437
|
-
internalBinaryWrite(message: StartViktor, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* @generated MessageType for protobuf message replit.goval.api.lore.StartViktor
|
|
441
|
-
*/
|
|
442
|
-
export declare const StartViktor: StartViktor$Type;
|
|
443
416
|
declare class GovalCommand$Type extends MessageType<GovalCommand> {
|
|
444
417
|
constructor();
|
|
445
418
|
create(value?: PartialMessage<GovalCommand>): GovalCommand;
|
package/dist/api/lore/lore.js
CHANGED
|
@@ -299,53 +299,6 @@ class Takedown$Type extends MessageType {
|
|
|
299
299
|
*/
|
|
300
300
|
export const Takedown = new Takedown$Type();
|
|
301
301
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
302
|
-
class StartViktor$Type extends MessageType {
|
|
303
|
-
constructor() {
|
|
304
|
-
super("replit.goval.api.lore.StartViktor", [
|
|
305
|
-
{ no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
306
|
-
]);
|
|
307
|
-
}
|
|
308
|
-
create(value) {
|
|
309
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
310
|
-
message.replId = "";
|
|
311
|
-
if (value !== undefined)
|
|
312
|
-
reflectionMergePartial(this, message, value);
|
|
313
|
-
return message;
|
|
314
|
-
}
|
|
315
|
-
internalBinaryRead(reader, length, options, target) {
|
|
316
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
317
|
-
while (reader.pos < end) {
|
|
318
|
-
let [fieldNo, wireType] = reader.tag();
|
|
319
|
-
switch (fieldNo) {
|
|
320
|
-
case /* string repl_id */ 1:
|
|
321
|
-
message.replId = reader.string();
|
|
322
|
-
break;
|
|
323
|
-
default:
|
|
324
|
-
let u = options.readUnknownField;
|
|
325
|
-
if (u === "throw")
|
|
326
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
327
|
-
let d = reader.skip(wireType);
|
|
328
|
-
if (u !== false)
|
|
329
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
return message;
|
|
333
|
-
}
|
|
334
|
-
internalBinaryWrite(message, writer, options) {
|
|
335
|
-
/* string repl_id = 1; */
|
|
336
|
-
if (message.replId !== "")
|
|
337
|
-
writer.tag(1, WireType.LengthDelimited).string(message.replId);
|
|
338
|
-
let u = options.writeUnknownFields;
|
|
339
|
-
if (u !== false)
|
|
340
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
341
|
-
return writer;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
/**
|
|
345
|
-
* @generated MessageType for protobuf message replit.goval.api.lore.StartViktor
|
|
346
|
-
*/
|
|
347
|
-
export const StartViktor = new StartViktor$Type();
|
|
348
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
349
302
|
class GovalCommand$Type extends MessageType {
|
|
350
303
|
constructor() {
|
|
351
304
|
super("replit.goval.api.lore.GovalCommand", [
|
|
@@ -356,7 +309,6 @@ class GovalCommand$Type extends MessageType {
|
|
|
356
309
|
{ no: 5, name: "update_repl_flags", kind: "message", oneof: "command", T: () => UpdateReplFlags },
|
|
357
310
|
{ no: 6, name: "soft_takedown", kind: "message", oneof: "command", T: () => SoftTakedown },
|
|
358
311
|
{ no: 7, name: "takedown", kind: "message", oneof: "command", T: () => Takedown },
|
|
359
|
-
{ no: 9, name: "start_viktor", kind: "message", oneof: "command", T: () => StartViktor },
|
|
360
312
|
{ no: 10, name: "add_token_to_repl_shield_allow_list", kind: "message", oneof: "command", T: () => AddTokenToReplShieldAllowList },
|
|
361
313
|
{ no: 11, name: "revoke_user_repl_shield_tokens", kind: "message", oneof: "command", T: () => RevokeUserReplShieldTokens },
|
|
362
314
|
{ no: 12, name: "set_replit_badge", kind: "message", oneof: "command", T: () => SetReplitBadge }
|
|
@@ -416,12 +368,6 @@ class GovalCommand$Type extends MessageType {
|
|
|
416
368
|
takedown: Takedown.internalBinaryRead(reader, reader.uint32(), options, message.command.takedown)
|
|
417
369
|
};
|
|
418
370
|
break;
|
|
419
|
-
case /* replit.goval.api.lore.StartViktor start_viktor */ 9:
|
|
420
|
-
message.command = {
|
|
421
|
-
oneofKind: "startViktor",
|
|
422
|
-
startViktor: StartViktor.internalBinaryRead(reader, reader.uint32(), options, message.command.startViktor)
|
|
423
|
-
};
|
|
424
|
-
break;
|
|
425
371
|
case /* replit.goval.api.lore.AddTokenToReplShieldAllowList add_token_to_repl_shield_allow_list */ 10:
|
|
426
372
|
message.command = {
|
|
427
373
|
oneofKind: "addTokenToReplShieldAllowList",
|
|
@@ -473,9 +419,6 @@ class GovalCommand$Type extends MessageType {
|
|
|
473
419
|
/* replit.goval.api.lore.Takedown takedown = 7; */
|
|
474
420
|
if (message.command.oneofKind === "takedown")
|
|
475
421
|
Takedown.internalBinaryWrite(message.command.takedown, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
476
|
-
/* replit.goval.api.lore.StartViktor start_viktor = 9; */
|
|
477
|
-
if (message.command.oneofKind === "startViktor")
|
|
478
|
-
StartViktor.internalBinaryWrite(message.command.startViktor, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
479
422
|
/* replit.goval.api.lore.AddTokenToReplShieldAllowList add_token_to_repl_shield_allow_list = 10; */
|
|
480
423
|
if (message.command.oneofKind === "addTokenToReplShieldAllowList")
|
|
481
424
|
AddTokenToReplShieldAllowList.internalBinaryWrite(message.command.addTokenToReplShieldAllowList, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -16,6 +16,10 @@ import type { DeleteReplResponse } from "./service.js";
|
|
|
16
16
|
import type { DeleteReplRequest } from "./service.js";
|
|
17
17
|
import type { BulkRemoveResponse } from "./service.js";
|
|
18
18
|
import type { BulkRemoveRequest } from "./service.js";
|
|
19
|
+
import type { RemoveTombstoneResponse } from "./service.js";
|
|
20
|
+
import type { RemoveTombstoneRequest } from "./service.js";
|
|
21
|
+
import type { AddTombstoneResponse } from "./service.js";
|
|
22
|
+
import type { AddTombstoneRequest } from "./service.js";
|
|
19
23
|
import type { RestoreReplResponse } from "./service.js";
|
|
20
24
|
import type { RestoreReplRequest } from "./service.js";
|
|
21
25
|
import type { SoftTakedownReplResponse } from "./service.js";
|
|
@@ -30,14 +34,22 @@ import type { GetTransferStatusResponse } from "./service.js";
|
|
|
30
34
|
import type { GetTransferStatusRequest } from "./service.js";
|
|
31
35
|
import type { GetReplConnectionInfoResponse } from "./service.js";
|
|
32
36
|
import type { GetReplConnectionInfoRequest } from "./service.js";
|
|
37
|
+
import type { GetClusterByResourceGroupResponse } from "./service.js";
|
|
38
|
+
import type { GetClusterByResourceGroupRequest } from "./service.js";
|
|
33
39
|
import type { GetReplResponse } from "./service.js";
|
|
34
40
|
import type { GetReplRequest } from "./service.js";
|
|
35
41
|
import type { CreateReplResponse } from "./service.js";
|
|
36
42
|
import type { CreateReplRequest } from "./service.js";
|
|
37
43
|
import type { CreateAgentResponse } from "./service.js";
|
|
38
44
|
import type { CreateAgentRequest } from "./service.js";
|
|
45
|
+
import type { DeleteResourceGroupResponse } from "./service.js";
|
|
46
|
+
import type { DeleteResourceGroupRequest } from "./service.js";
|
|
39
47
|
import type { CreateResourceGroupResponse } from "./service.js";
|
|
40
48
|
import type { CreateResourceGroupRequest } from "./service.js";
|
|
49
|
+
import type { GetSandboxConnectionInfoResponse } from "./service.js";
|
|
50
|
+
import type { GetSandboxConnectionInfoRequest } from "./service.js";
|
|
51
|
+
import type { CreateSandboxResponse } from "./service.js";
|
|
52
|
+
import type { CreateSandboxRequest } from "./service.js";
|
|
41
53
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
42
54
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
43
55
|
/**
|
|
@@ -47,12 +59,32 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
|
47
59
|
* @generated from protobuf service replit.goval.api.lore.Lore
|
|
48
60
|
*/
|
|
49
61
|
export interface ILoreClient {
|
|
62
|
+
/**
|
|
63
|
+
* CreateSandbox routes creation to the Jetplane cell placed for the
|
|
64
|
+
* destination resource group. Lore does not persist a sandbox mapping.
|
|
65
|
+
*
|
|
66
|
+
* @generated from protobuf rpc: CreateSandbox
|
|
67
|
+
*/
|
|
68
|
+
createSandbox(input: CreateSandboxRequest, options?: RpcOptions): UnaryCall<CreateSandboxRequest, CreateSandboxResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* GetSandboxConnectionInfo resolves the cell from resource-group placement
|
|
71
|
+
* and reads the Jetplane-authoritative sandbox metadata.
|
|
72
|
+
*
|
|
73
|
+
* @generated from protobuf rpc: GetSandboxConnectionInfo
|
|
74
|
+
*/
|
|
75
|
+
getSandboxConnectionInfo(input: GetSandboxConnectionInfoRequest, options?: RpcOptions): UnaryCall<GetSandboxConnectionInfoRequest, GetSandboxConnectionInfoResponse>;
|
|
50
76
|
/**
|
|
51
77
|
* CreateResourceGroup registers an empty resource group in Jetplane.
|
|
52
78
|
*
|
|
53
79
|
* @generated from protobuf rpc: CreateResourceGroup
|
|
54
80
|
*/
|
|
55
81
|
createResourceGroup(input: CreateResourceGroupRequest, options?: RpcOptions): UnaryCall<CreateResourceGroupRequest, CreateResourceGroupResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* DeleteResourceGroup removes a resource group from Jetplane.
|
|
84
|
+
*
|
|
85
|
+
* @generated from protobuf rpc: DeleteResourceGroup
|
|
86
|
+
*/
|
|
87
|
+
deleteResourceGroup(input: DeleteResourceGroupRequest, options?: RpcOptions): UnaryCall<DeleteResourceGroupRequest, DeleteResourceGroupResponse>;
|
|
56
88
|
/**
|
|
57
89
|
* CreateAgent creates an agent through the selected cluster's Chateau.
|
|
58
90
|
*
|
|
@@ -72,6 +104,13 @@ export interface ILoreClient {
|
|
|
72
104
|
* @generated from protobuf rpc: GetRepl
|
|
73
105
|
*/
|
|
74
106
|
getRepl(input: GetReplRequest, options?: RpcOptions): UnaryCall<GetReplRequest, GetReplResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* GetClusterByResourceGroup returns the cluster a resource group is placed
|
|
109
|
+
* in.
|
|
110
|
+
*
|
|
111
|
+
* @generated from protobuf rpc: GetClusterByResourceGroup
|
|
112
|
+
*/
|
|
113
|
+
getClusterByResourceGroup(input: GetClusterByResourceGroupRequest, options?: RpcOptions): UnaryCall<GetClusterByResourceGroupRequest, GetClusterByResourceGroupResponse>;
|
|
75
114
|
/**
|
|
76
115
|
* GetReplConnectionInfo will return a repl and its associated cluster and
|
|
77
116
|
* GCE buckets. If the repl does not exist, the repl will be created; however,
|
|
@@ -113,10 +152,8 @@ export interface ILoreClient {
|
|
|
113
152
|
*/
|
|
114
153
|
takedownRepl(input: TakedownReplRequest, options?: RpcOptions): UnaryCall<TakedownReplRequest, TakedownReplResponse>;
|
|
115
154
|
/**
|
|
116
|
-
* SoftTakedownRepl
|
|
117
|
-
*
|
|
118
|
-
* requests to <repl>.<user>.repl.co, requiring the repl to be opened in the
|
|
119
|
-
* workspace.
|
|
155
|
+
* SoftTakedownRepl stops a repl's running instance without blocking future
|
|
156
|
+
* placement, so it can be restarted immediately.
|
|
120
157
|
*
|
|
121
158
|
* @generated from protobuf rpc: SoftTakedownRepl
|
|
122
159
|
*/
|
|
@@ -127,6 +164,18 @@ export interface ILoreClient {
|
|
|
127
164
|
* @generated from protobuf rpc: RestoreRepl
|
|
128
165
|
*/
|
|
129
166
|
restoreRepl(input: RestoreReplRequest, options?: RpcOptions): UnaryCall<RestoreReplRequest, RestoreReplResponse>;
|
|
167
|
+
/**
|
|
168
|
+
* AddTombstone prevents a repl from being placed until its tombstone expires.
|
|
169
|
+
*
|
|
170
|
+
* @generated from protobuf rpc: AddTombstone
|
|
171
|
+
*/
|
|
172
|
+
addTombstone(input: AddTombstoneRequest, options?: RpcOptions): UnaryCall<AddTombstoneRequest, AddTombstoneResponse>;
|
|
173
|
+
/**
|
|
174
|
+
* RemoveTombstone allows a tombstoned repl to be placed again.
|
|
175
|
+
*
|
|
176
|
+
* @generated from protobuf rpc: RemoveTombstone
|
|
177
|
+
*/
|
|
178
|
+
removeTombstone(input: RemoveTombstoneRequest, options?: RpcOptions): UnaryCall<RemoveTombstoneRequest, RemoveTombstoneResponse>;
|
|
130
179
|
/**
|
|
131
180
|
* BulkRemove performs a soft takedown on the specified repls.
|
|
132
181
|
*
|
|
@@ -135,11 +184,9 @@ export interface ILoreClient {
|
|
|
135
184
|
bulkRemove(input: BulkRemoveRequest, options?: RpcOptions): UnaryCall<BulkRemoveRequest, BulkRemoveResponse>;
|
|
136
185
|
/**
|
|
137
186
|
* DeleteRepl permanently deletes a repl.
|
|
138
|
-
* This
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
* lore database. GCS cleanup failures are logged but do not block deletion;
|
|
142
|
-
* orphaned storage can be cleaned up separately.
|
|
187
|
+
* This asks Jetplane to soft delete the repl and prevent it from running,
|
|
188
|
+
* then soft deletes the repl from the Lore database. Storage cleanup is
|
|
189
|
+
* handled separately.
|
|
143
190
|
* This operation is irreversible and idempotent.
|
|
144
191
|
*
|
|
145
192
|
* @generated from protobuf rpc: DeleteRepl
|
|
@@ -212,12 +259,32 @@ export declare class LoreClient implements ILoreClient, ServiceInfo {
|
|
|
212
259
|
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
|
|
213
260
|
};
|
|
214
261
|
constructor(_transport: RpcTransport);
|
|
262
|
+
/**
|
|
263
|
+
* CreateSandbox routes creation to the Jetplane cell placed for the
|
|
264
|
+
* destination resource group. Lore does not persist a sandbox mapping.
|
|
265
|
+
*
|
|
266
|
+
* @generated from protobuf rpc: CreateSandbox
|
|
267
|
+
*/
|
|
268
|
+
createSandbox(input: CreateSandboxRequest, options?: RpcOptions): UnaryCall<CreateSandboxRequest, CreateSandboxResponse>;
|
|
269
|
+
/**
|
|
270
|
+
* GetSandboxConnectionInfo resolves the cell from resource-group placement
|
|
271
|
+
* and reads the Jetplane-authoritative sandbox metadata.
|
|
272
|
+
*
|
|
273
|
+
* @generated from protobuf rpc: GetSandboxConnectionInfo
|
|
274
|
+
*/
|
|
275
|
+
getSandboxConnectionInfo(input: GetSandboxConnectionInfoRequest, options?: RpcOptions): UnaryCall<GetSandboxConnectionInfoRequest, GetSandboxConnectionInfoResponse>;
|
|
215
276
|
/**
|
|
216
277
|
* CreateResourceGroup registers an empty resource group in Jetplane.
|
|
217
278
|
*
|
|
218
279
|
* @generated from protobuf rpc: CreateResourceGroup
|
|
219
280
|
*/
|
|
220
281
|
createResourceGroup(input: CreateResourceGroupRequest, options?: RpcOptions): UnaryCall<CreateResourceGroupRequest, CreateResourceGroupResponse>;
|
|
282
|
+
/**
|
|
283
|
+
* DeleteResourceGroup removes a resource group from Jetplane.
|
|
284
|
+
*
|
|
285
|
+
* @generated from protobuf rpc: DeleteResourceGroup
|
|
286
|
+
*/
|
|
287
|
+
deleteResourceGroup(input: DeleteResourceGroupRequest, options?: RpcOptions): UnaryCall<DeleteResourceGroupRequest, DeleteResourceGroupResponse>;
|
|
221
288
|
/**
|
|
222
289
|
* CreateAgent creates an agent through the selected cluster's Chateau.
|
|
223
290
|
*
|
|
@@ -237,6 +304,13 @@ export declare class LoreClient implements ILoreClient, ServiceInfo {
|
|
|
237
304
|
* @generated from protobuf rpc: GetRepl
|
|
238
305
|
*/
|
|
239
306
|
getRepl(input: GetReplRequest, options?: RpcOptions): UnaryCall<GetReplRequest, GetReplResponse>;
|
|
307
|
+
/**
|
|
308
|
+
* GetClusterByResourceGroup returns the cluster a resource group is placed
|
|
309
|
+
* in.
|
|
310
|
+
*
|
|
311
|
+
* @generated from protobuf rpc: GetClusterByResourceGroup
|
|
312
|
+
*/
|
|
313
|
+
getClusterByResourceGroup(input: GetClusterByResourceGroupRequest, options?: RpcOptions): UnaryCall<GetClusterByResourceGroupRequest, GetClusterByResourceGroupResponse>;
|
|
240
314
|
/**
|
|
241
315
|
* GetReplConnectionInfo will return a repl and its associated cluster and
|
|
242
316
|
* GCE buckets. If the repl does not exist, the repl will be created; however,
|
|
@@ -278,10 +352,8 @@ export declare class LoreClient implements ILoreClient, ServiceInfo {
|
|
|
278
352
|
*/
|
|
279
353
|
takedownRepl(input: TakedownReplRequest, options?: RpcOptions): UnaryCall<TakedownReplRequest, TakedownReplResponse>;
|
|
280
354
|
/**
|
|
281
|
-
* SoftTakedownRepl
|
|
282
|
-
*
|
|
283
|
-
* requests to <repl>.<user>.repl.co, requiring the repl to be opened in the
|
|
284
|
-
* workspace.
|
|
355
|
+
* SoftTakedownRepl stops a repl's running instance without blocking future
|
|
356
|
+
* placement, so it can be restarted immediately.
|
|
285
357
|
*
|
|
286
358
|
* @generated from protobuf rpc: SoftTakedownRepl
|
|
287
359
|
*/
|
|
@@ -292,6 +364,18 @@ export declare class LoreClient implements ILoreClient, ServiceInfo {
|
|
|
292
364
|
* @generated from protobuf rpc: RestoreRepl
|
|
293
365
|
*/
|
|
294
366
|
restoreRepl(input: RestoreReplRequest, options?: RpcOptions): UnaryCall<RestoreReplRequest, RestoreReplResponse>;
|
|
367
|
+
/**
|
|
368
|
+
* AddTombstone prevents a repl from being placed until its tombstone expires.
|
|
369
|
+
*
|
|
370
|
+
* @generated from protobuf rpc: AddTombstone
|
|
371
|
+
*/
|
|
372
|
+
addTombstone(input: AddTombstoneRequest, options?: RpcOptions): UnaryCall<AddTombstoneRequest, AddTombstoneResponse>;
|
|
373
|
+
/**
|
|
374
|
+
* RemoveTombstone allows a tombstoned repl to be placed again.
|
|
375
|
+
*
|
|
376
|
+
* @generated from protobuf rpc: RemoveTombstone
|
|
377
|
+
*/
|
|
378
|
+
removeTombstone(input: RemoveTombstoneRequest, options?: RpcOptions): UnaryCall<RemoveTombstoneRequest, RemoveTombstoneResponse>;
|
|
295
379
|
/**
|
|
296
380
|
* BulkRemove performs a soft takedown on the specified repls.
|
|
297
381
|
*
|
|
@@ -300,11 +384,9 @@ export declare class LoreClient implements ILoreClient, ServiceInfo {
|
|
|
300
384
|
bulkRemove(input: BulkRemoveRequest, options?: RpcOptions): UnaryCall<BulkRemoveRequest, BulkRemoveResponse>;
|
|
301
385
|
/**
|
|
302
386
|
* DeleteRepl permanently deletes a repl.
|
|
303
|
-
* This
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
* lore database. GCS cleanup failures are logged but do not block deletion;
|
|
307
|
-
* orphaned storage can be cleaned up separately.
|
|
387
|
+
* This asks Jetplane to soft delete the repl and prevent it from running,
|
|
388
|
+
* then soft deletes the repl from the Lore database. Storage cleanup is
|
|
389
|
+
* handled separately.
|
|
308
390
|
* This operation is irreversible and idempotent.
|
|
309
391
|
*
|
|
310
392
|
* @generated from protobuf rpc: DeleteRepl
|
|
@@ -13,13 +13,42 @@ export class LoreClient {
|
|
|
13
13
|
this.methods = Lore.methods;
|
|
14
14
|
this.options = Lore.options;
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* CreateSandbox routes creation to the Jetplane cell placed for the
|
|
18
|
+
* destination resource group. Lore does not persist a sandbox mapping.
|
|
19
|
+
*
|
|
20
|
+
* @generated from protobuf rpc: CreateSandbox
|
|
21
|
+
*/
|
|
22
|
+
createSandbox(input, options) {
|
|
23
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
24
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* GetSandboxConnectionInfo resolves the cell from resource-group placement
|
|
28
|
+
* and reads the Jetplane-authoritative sandbox metadata.
|
|
29
|
+
*
|
|
30
|
+
* @generated from protobuf rpc: GetSandboxConnectionInfo
|
|
31
|
+
*/
|
|
32
|
+
getSandboxConnectionInfo(input, options) {
|
|
33
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
34
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
35
|
+
}
|
|
16
36
|
/**
|
|
17
37
|
* CreateResourceGroup registers an empty resource group in Jetplane.
|
|
18
38
|
*
|
|
19
39
|
* @generated from protobuf rpc: CreateResourceGroup
|
|
20
40
|
*/
|
|
21
41
|
createResourceGroup(input, options) {
|
|
22
|
-
const method = this.methods[
|
|
42
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
43
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* DeleteResourceGroup removes a resource group from Jetplane.
|
|
47
|
+
*
|
|
48
|
+
* @generated from protobuf rpc: DeleteResourceGroup
|
|
49
|
+
*/
|
|
50
|
+
deleteResourceGroup(input, options) {
|
|
51
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
23
52
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
24
53
|
}
|
|
25
54
|
/**
|
|
@@ -28,7 +57,7 @@ export class LoreClient {
|
|
|
28
57
|
* @generated from protobuf rpc: CreateAgent
|
|
29
58
|
*/
|
|
30
59
|
createAgent(input, options) {
|
|
31
|
-
const method = this.methods[
|
|
60
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
32
61
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
33
62
|
}
|
|
34
63
|
/**
|
|
@@ -38,7 +67,7 @@ export class LoreClient {
|
|
|
38
67
|
* @generated from protobuf rpc: CreateRepl
|
|
39
68
|
*/
|
|
40
69
|
createRepl(input, options) {
|
|
41
|
-
const method = this.methods[
|
|
70
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
42
71
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
43
72
|
}
|
|
44
73
|
/**
|
|
@@ -47,7 +76,17 @@ export class LoreClient {
|
|
|
47
76
|
* @generated from protobuf rpc: GetRepl
|
|
48
77
|
*/
|
|
49
78
|
getRepl(input, options) {
|
|
50
|
-
const method = this.methods[
|
|
79
|
+
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
80
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* GetClusterByResourceGroup returns the cluster a resource group is placed
|
|
84
|
+
* in.
|
|
85
|
+
*
|
|
86
|
+
* @generated from protobuf rpc: GetClusterByResourceGroup
|
|
87
|
+
*/
|
|
88
|
+
getClusterByResourceGroup(input, options) {
|
|
89
|
+
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
51
90
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
52
91
|
}
|
|
53
92
|
/**
|
|
@@ -60,7 +99,7 @@ export class LoreClient {
|
|
|
60
99
|
* @generated from protobuf rpc: GetReplConnectionInfo
|
|
61
100
|
*/
|
|
62
101
|
getReplConnectionInfo(input, options) {
|
|
63
|
-
const method = this.methods[
|
|
102
|
+
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
64
103
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
65
104
|
}
|
|
66
105
|
/**
|
|
@@ -69,7 +108,7 @@ export class LoreClient {
|
|
|
69
108
|
* @generated from protobuf rpc: GetTransferStatus
|
|
70
109
|
*/
|
|
71
110
|
getTransferStatus(input, options) {
|
|
72
|
-
const method = this.methods[
|
|
111
|
+
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
|
73
112
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
74
113
|
}
|
|
75
114
|
/**
|
|
@@ -79,7 +118,7 @@ export class LoreClient {
|
|
|
79
118
|
* @generated from protobuf rpc: TransferRepls
|
|
80
119
|
*/
|
|
81
120
|
transferRepls(input, options) {
|
|
82
|
-
const method = this.methods[
|
|
121
|
+
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
|
83
122
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
84
123
|
}
|
|
85
124
|
/**
|
|
@@ -90,7 +129,7 @@ export class LoreClient {
|
|
|
90
129
|
* @generated from protobuf rpc: TransferUser
|
|
91
130
|
*/
|
|
92
131
|
transferUser(input, options) {
|
|
93
|
-
const method = this.methods[
|
|
132
|
+
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
|
94
133
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
95
134
|
}
|
|
96
135
|
/**
|
|
@@ -102,19 +141,17 @@ export class LoreClient {
|
|
|
102
141
|
* @generated from protobuf rpc: TakedownRepl
|
|
103
142
|
*/
|
|
104
143
|
takedownRepl(input, options) {
|
|
105
|
-
const method = this.methods[
|
|
144
|
+
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
|
106
145
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
107
146
|
}
|
|
108
147
|
/**
|
|
109
|
-
* SoftTakedownRepl
|
|
110
|
-
*
|
|
111
|
-
* requests to <repl>.<user>.repl.co, requiring the repl to be opened in the
|
|
112
|
-
* workspace.
|
|
148
|
+
* SoftTakedownRepl stops a repl's running instance without blocking future
|
|
149
|
+
* placement, so it can be restarted immediately.
|
|
113
150
|
*
|
|
114
151
|
* @generated from protobuf rpc: SoftTakedownRepl
|
|
115
152
|
*/
|
|
116
153
|
softTakedownRepl(input, options) {
|
|
117
|
-
const method = this.methods[
|
|
154
|
+
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
|
118
155
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
119
156
|
}
|
|
120
157
|
/**
|
|
@@ -123,7 +160,25 @@ export class LoreClient {
|
|
|
123
160
|
* @generated from protobuf rpc: RestoreRepl
|
|
124
161
|
*/
|
|
125
162
|
restoreRepl(input, options) {
|
|
126
|
-
const method = this.methods[
|
|
163
|
+
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
|
164
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* AddTombstone prevents a repl from being placed until its tombstone expires.
|
|
168
|
+
*
|
|
169
|
+
* @generated from protobuf rpc: AddTombstone
|
|
170
|
+
*/
|
|
171
|
+
addTombstone(input, options) {
|
|
172
|
+
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
|
173
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* RemoveTombstone allows a tombstoned repl to be placed again.
|
|
177
|
+
*
|
|
178
|
+
* @generated from protobuf rpc: RemoveTombstone
|
|
179
|
+
*/
|
|
180
|
+
removeTombstone(input, options) {
|
|
181
|
+
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
|
127
182
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
128
183
|
}
|
|
129
184
|
/**
|
|
@@ -132,22 +187,20 @@ export class LoreClient {
|
|
|
132
187
|
* @generated from protobuf rpc: BulkRemove
|
|
133
188
|
*/
|
|
134
189
|
bulkRemove(input, options) {
|
|
135
|
-
const method = this.methods[
|
|
190
|
+
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
|
136
191
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
137
192
|
}
|
|
138
193
|
/**
|
|
139
194
|
* DeleteRepl permanently deletes a repl.
|
|
140
|
-
* This
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
* lore database. GCS cleanup failures are logged but do not block deletion;
|
|
144
|
-
* orphaned storage can be cleaned up separately.
|
|
195
|
+
* This asks Jetplane to soft delete the repl and prevent it from running,
|
|
196
|
+
* then soft deletes the repl from the Lore database. Storage cleanup is
|
|
197
|
+
* handled separately.
|
|
145
198
|
* This operation is irreversible and idempotent.
|
|
146
199
|
*
|
|
147
200
|
* @generated from protobuf rpc: DeleteRepl
|
|
148
201
|
*/
|
|
149
202
|
deleteRepl(input, options) {
|
|
150
|
-
const method = this.methods[
|
|
203
|
+
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
|
151
204
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
152
205
|
}
|
|
153
206
|
/**
|
|
@@ -156,7 +209,7 @@ export class LoreClient {
|
|
|
156
209
|
* @generated from protobuf rpc: GetClusters
|
|
157
210
|
*/
|
|
158
211
|
getClusters(input, options) {
|
|
159
|
-
const method = this.methods[
|
|
212
|
+
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
|
160
213
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
161
214
|
}
|
|
162
215
|
/**
|
|
@@ -165,7 +218,7 @@ export class LoreClient {
|
|
|
165
218
|
* @generated from protobuf rpc: GetOrgHomeCell
|
|
166
219
|
*/
|
|
167
220
|
getOrgHomeCell(input, options) {
|
|
168
|
-
const method = this.methods[
|
|
221
|
+
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
|
169
222
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
170
223
|
}
|
|
171
224
|
/**
|
|
@@ -174,7 +227,7 @@ export class LoreClient {
|
|
|
174
227
|
* @generated from protobuf rpc: SetOrgHomeCell
|
|
175
228
|
*/
|
|
176
229
|
setOrgHomeCell(input, options) {
|
|
177
|
-
const method = this.methods[
|
|
230
|
+
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
|
178
231
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
179
232
|
}
|
|
180
233
|
/**
|
|
@@ -188,7 +241,7 @@ export class LoreClient {
|
|
|
188
241
|
* @generated from protobuf rpc: TransferReplFromOfflineCluster
|
|
189
242
|
*/
|
|
190
243
|
transferReplFromOfflineCluster(input, options) {
|
|
191
|
-
const method = this.methods[
|
|
244
|
+
const method = this.methods[22], opt = this._transport.mergeOptions(options);
|
|
192
245
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
193
246
|
}
|
|
194
247
|
/**
|
|
@@ -204,7 +257,7 @@ export class LoreClient {
|
|
|
204
257
|
* @generated from protobuf rpc: ExportRepl
|
|
205
258
|
*/
|
|
206
259
|
exportRepl(input, options) {
|
|
207
|
-
const method = this.methods[
|
|
260
|
+
const method = this.methods[23], opt = this._transport.mergeOptions(options);
|
|
208
261
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
209
262
|
}
|
|
210
263
|
/**
|
|
@@ -217,7 +270,7 @@ export class LoreClient {
|
|
|
217
270
|
* @generated from protobuf rpc: ImportRepl
|
|
218
271
|
*/
|
|
219
272
|
importRepl(input, options) {
|
|
220
|
-
const method = this.methods[
|
|
273
|
+
const method = this.methods[24], opt = this._transport.mergeOptions(options);
|
|
221
274
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
222
275
|
}
|
|
223
276
|
}
|