Skip to content

Commit bc37221

Browse files
committed
re-use initializer for snapshot volumes
1 parent 86f168f commit bc37221

24 files changed

+208
-543
lines changed

components/content-service-api/go/blobs.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/blobs_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/content.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/content_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/headless-log.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/headless-log_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/ideplugin.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/ideplugin_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/initializer.pb.go

Lines changed: 148 additions & 225 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/workspace.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/go/workspace_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/content-service-api/initializer.proto

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ message WorkspaceInitializer {
1414
CompositeInitializer composite = 5;
1515
FileDownloadInitializer download = 6;
1616
FromBackupInitializer backup = 7;
17-
FromSnapshotVolumeInitializer snapshot_volume = 8;
1817
}
1918
}
2019

@@ -125,11 +124,7 @@ message PrebuildInitializer {
125124
// FromBackupInitializer initializes content from a previously made backup
126125
message FromBackupInitializer {
127126
string checkout_location = 1;
128-
}
129-
130-
// FromSnapshotVolumeInitializer initializes content when workspace is created from snapshot volume
131-
message FromSnapshotVolumeInitializer {
132-
string checkout_location = 1;
127+
bool from_snapshot_volume = 2;
133128
}
134129

135130
// GitStatus describes the current Git working copy status, akin to a combination of "git status" and "git branch"

components/content-service-api/typescript/src/blobs_pb.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@
1919

2020
var jspb = require('google-protobuf');
2121
var goog = jspb;
22-
var global = (function() {
23-
if (this) { return this; }
24-
if (typeof window !== 'undefined') { return window; }
25-
if (typeof global !== 'undefined') { return global; }
26-
if (typeof self !== 'undefined') { return self; }
27-
return Function('return this')();
28-
}.call(null));
22+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
2923

3024
goog.exportSymbol('proto.contentservice.DeleteRequest', null, global);
3125
goog.exportSymbol('proto.contentservice.DeleteRequest.NameCase', null, global);

components/content-service-api/typescript/src/content_pb.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@
1919

2020
var jspb = require('google-protobuf');
2121
var goog = jspb;
22-
var global = (function() {
23-
if (this) { return this; }
24-
if (typeof window !== 'undefined') { return window; }
25-
if (typeof global !== 'undefined') { return global; }
26-
if (typeof self !== 'undefined') { return self; }
27-
return Function('return this')();
28-
}.call(null));
22+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
2923

3024
goog.exportSymbol('proto.contentservice.DeleteUserContentRequest', null, global);
3125
goog.exportSymbol('proto.contentservice.DeleteUserContentResponse', null, global);

components/content-service-api/typescript/src/headless-log_pb.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@
1919

2020
var jspb = require('google-protobuf');
2121
var goog = jspb;
22-
var global = (function() {
23-
if (this) { return this; }
24-
if (typeof window !== 'undefined') { return window; }
25-
if (typeof global !== 'undefined') { return global; }
26-
if (typeof self !== 'undefined') { return self; }
27-
return Function('return this')();
28-
}.call(null));
22+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
2923

3024
goog.exportSymbol('proto.contentservice.ListLogsRequest', null, global);
3125
goog.exportSymbol('proto.contentservice.ListLogsResponse', null, global);

components/content-service-api/typescript/src/ideplugin_pb.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@
1919

2020
var jspb = require('google-protobuf');
2121
var goog = jspb;
22-
var global = (function() {
23-
if (this) { return this; }
24-
if (typeof window !== 'undefined') { return window; }
25-
if (typeof global !== 'undefined') { return global; }
26-
if (typeof self !== 'undefined') { return self; }
27-
return Function('return this')();
28-
}.call(null));
22+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
2923

3024
goog.exportSymbol('proto.ideplugin.PluginDownloadURLRequest', null, global);
3125
goog.exportSymbol('proto.ideplugin.PluginDownloadURLResponse', null, global);

components/content-service-api/typescript/src/initializer_pb.d.ts

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@ export class WorkspaceInitializer extends jspb.Message {
4949
getBackup(): FromBackupInitializer | undefined;
5050
setBackup(value?: FromBackupInitializer): WorkspaceInitializer;
5151

52-
hasSnapshotVolume(): boolean;
53-
clearSnapshotVolume(): void;
54-
getSnapshotVolume(): FromSnapshotVolumeInitializer | undefined;
55-
setSnapshotVolume(value?: FromSnapshotVolumeInitializer): WorkspaceInitializer;
56-
5752
getSpecCase(): WorkspaceInitializer.SpecCase;
5853

5954
serializeBinary(): Uint8Array;
@@ -75,7 +70,6 @@ export namespace WorkspaceInitializer {
7570
composite?: CompositeInitializer.AsObject,
7671
download?: FileDownloadInitializer.AsObject,
7772
backup?: FromBackupInitializer.AsObject,
78-
snapshotVolume?: FromSnapshotVolumeInitializer.AsObject,
7973
}
8074

8175
export enum SpecCase {
@@ -87,7 +81,6 @@ export namespace WorkspaceInitializer {
8781
COMPOSITE = 5,
8882
DOWNLOAD = 6,
8983
BACKUP = 7,
90-
SNAPSHOT_VOLUME = 8,
9184
}
9285

9386
}
@@ -307,6 +300,8 @@ export namespace PrebuildInitializer {
307300
export class FromBackupInitializer extends jspb.Message {
308301
getCheckoutLocation(): string;
309302
setCheckoutLocation(value: string): FromBackupInitializer;
303+
getFromSnapshotVolume(): boolean;
304+
setFromSnapshotVolume(value: boolean): FromBackupInitializer;
310305

311306
serializeBinary(): Uint8Array;
312307
toObject(includeInstance?: boolean): FromBackupInitializer.AsObject;
@@ -321,26 +316,7 @@ export class FromBackupInitializer extends jspb.Message {
321316
export namespace FromBackupInitializer {
322317
export type AsObject = {
323318
checkoutLocation: string,
324-
}
325-
}
326-
327-
export class FromSnapshotVolumeInitializer extends jspb.Message {
328-
getCheckoutLocation(): string;
329-
setCheckoutLocation(value: string): FromSnapshotVolumeInitializer;
330-
331-
serializeBinary(): Uint8Array;
332-
toObject(includeInstance?: boolean): FromSnapshotVolumeInitializer.AsObject;
333-
static toObject(includeInstance: boolean, msg: FromSnapshotVolumeInitializer): FromSnapshotVolumeInitializer.AsObject;
334-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
335-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
336-
static serializeBinaryToWriter(message: FromSnapshotVolumeInitializer, writer: jspb.BinaryWriter): void;
337-
static deserializeBinary(bytes: Uint8Array): FromSnapshotVolumeInitializer;
338-
static deserializeBinaryFromReader(message: FromSnapshotVolumeInitializer, reader: jspb.BinaryReader): FromSnapshotVolumeInitializer;
339-
}
340-
341-
export namespace FromSnapshotVolumeInitializer {
342-
export type AsObject = {
343-
checkoutLocation: string,
319+
fromSnapshotVolume: boolean,
344320
}
345321
}
346322

0 commit comments

Comments
 (0)