@gitpod/supervisor-api-grpc 0.1.5-pd-update-to-node-14-fork.2 → 0.1.5-pd-ssh-gateway-test.5
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/lib/control_pb.d.ts +0 -3
- package/lib/control_pb.js +8 -32
- package/lib/info_pb.js +7 -1
- package/lib/notification_pb.js +7 -1
- package/lib/port_pb.js +7 -1
- package/lib/sshkey_grpc_pb.d.ts +41 -0
- package/lib/sshkey_grpc_pb.js +49 -0
- package/lib/sshkey_pb.d.ts +44 -0
- package/lib/sshkey_pb.js +299 -0
- package/lib/status_pb.d.ts +37 -3
- package/lib/status_pb.js +302 -33
- package/lib/terminal_pb.js +7 -1
- package/lib/token_pb.js +7 -1
- package/package.json +5 -4
- package/pkg-yarn.lock +2 -2
package/lib/control_pb.d.ts
CHANGED
|
@@ -9,8 +9,6 @@ import * as jspb from "google-protobuf";
|
|
|
9
9
|
export class ExposePortRequest extends jspb.Message {
|
|
10
10
|
getPort(): number;
|
|
11
11
|
setPort(value: number): ExposePortRequest;
|
|
12
|
-
getTargetPort(): number;
|
|
13
|
-
setTargetPort(value: number): ExposePortRequest;
|
|
14
12
|
|
|
15
13
|
serializeBinary(): Uint8Array;
|
|
16
14
|
toObject(includeInstance?: boolean): ExposePortRequest.AsObject;
|
|
@@ -25,7 +23,6 @@ export class ExposePortRequest extends jspb.Message {
|
|
|
25
23
|
export namespace ExposePortRequest {
|
|
26
24
|
export type AsObject = {
|
|
27
25
|
port: number,
|
|
28
|
-
targetPort: number,
|
|
29
26
|
}
|
|
30
27
|
}
|
|
31
28
|
|
package/lib/control_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.supervisor.ExposePortRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.supervisor.ExposePortResponse', null, global);
|
|
@@ -91,8 +97,7 @@ proto.supervisor.ExposePortRequest.prototype.toObject = function(opt_includeInst
|
|
|
91
97
|
*/
|
|
92
98
|
proto.supervisor.ExposePortRequest.toObject = function(includeInstance, msg) {
|
|
93
99
|
var f, obj = {
|
|
94
|
-
port: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
95
|
-
targetPort: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
100
|
+
port: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
96
101
|
};
|
|
97
102
|
|
|
98
103
|
if (includeInstance) {
|
|
@@ -133,10 +138,6 @@ proto.supervisor.ExposePortRequest.deserializeBinaryFromReader = function(msg, r
|
|
|
133
138
|
var value = /** @type {number} */ (reader.readUint32());
|
|
134
139
|
msg.setPort(value);
|
|
135
140
|
break;
|
|
136
|
-
case 2:
|
|
137
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
138
|
-
msg.setTargetPort(value);
|
|
139
|
-
break;
|
|
140
141
|
default:
|
|
141
142
|
reader.skipField();
|
|
142
143
|
break;
|
|
@@ -173,13 +174,6 @@ proto.supervisor.ExposePortRequest.serializeBinaryToWriter = function(message, w
|
|
|
173
174
|
f
|
|
174
175
|
);
|
|
175
176
|
}
|
|
176
|
-
f = message.getTargetPort();
|
|
177
|
-
if (f !== 0) {
|
|
178
|
-
writer.writeUint32(
|
|
179
|
-
2,
|
|
180
|
-
f
|
|
181
|
-
);
|
|
182
|
-
}
|
|
183
177
|
};
|
|
184
178
|
|
|
185
179
|
|
|
@@ -201,24 +195,6 @@ proto.supervisor.ExposePortRequest.prototype.setPort = function(value) {
|
|
|
201
195
|
};
|
|
202
196
|
|
|
203
197
|
|
|
204
|
-
/**
|
|
205
|
-
* optional uint32 target_port = 2;
|
|
206
|
-
* @return {number}
|
|
207
|
-
*/
|
|
208
|
-
proto.supervisor.ExposePortRequest.prototype.getTargetPort = function() {
|
|
209
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* @param {number} value
|
|
215
|
-
* @return {!proto.supervisor.ExposePortRequest} returns this
|
|
216
|
-
*/
|
|
217
|
-
proto.supervisor.ExposePortRequest.prototype.setTargetPort = function(value) {
|
|
218
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
|
|
222
198
|
|
|
223
199
|
|
|
224
200
|
|
package/lib/info_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.supervisor.WorkspaceInfoRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.supervisor.WorkspaceInfoResponse', null, global);
|
package/lib/notification_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.supervisor.NotifyRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.supervisor.NotifyRequest.Level', null, global);
|
package/lib/port_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.supervisor.AutoTunnelRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.supervisor.AutoTunnelResponse', null, global);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// package: supervisor
|
|
2
|
+
// file: sshkey.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as grpc from "@grpc/grpc-js";
|
|
8
|
+
import * as sshkey_pb from "./sshkey_pb";
|
|
9
|
+
|
|
10
|
+
interface ISSHKeyServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
11
|
+
createSSHKeyPair: ISSHKeyServiceService_ICreateSSHKeyPair;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface ISSHKeyServiceService_ICreateSSHKeyPair extends grpc.MethodDefinition<sshkey_pb.CreateSSHKeyPairRequest, sshkey_pb.CreateSSHKeyPairResponse> {
|
|
15
|
+
path: "/supervisor.SSHKeyService/CreateSSHKeyPair";
|
|
16
|
+
requestStream: false;
|
|
17
|
+
responseStream: false;
|
|
18
|
+
requestSerialize: grpc.serialize<sshkey_pb.CreateSSHKeyPairRequest>;
|
|
19
|
+
requestDeserialize: grpc.deserialize<sshkey_pb.CreateSSHKeyPairRequest>;
|
|
20
|
+
responseSerialize: grpc.serialize<sshkey_pb.CreateSSHKeyPairResponse>;
|
|
21
|
+
responseDeserialize: grpc.deserialize<sshkey_pb.CreateSSHKeyPairResponse>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const SSHKeyServiceService: ISSHKeyServiceService;
|
|
25
|
+
|
|
26
|
+
export interface ISSHKeyServiceServer extends grpc.UntypedServiceImplementation {
|
|
27
|
+
createSSHKeyPair: grpc.handleUnaryCall<sshkey_pb.CreateSSHKeyPairRequest, sshkey_pb.CreateSSHKeyPairResponse>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface ISSHKeyServiceClient {
|
|
31
|
+
createSSHKeyPair(request: sshkey_pb.CreateSSHKeyPairRequest, callback: (error: grpc.ServiceError | null, response: sshkey_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
32
|
+
createSSHKeyPair(request: sshkey_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: sshkey_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
33
|
+
createSSHKeyPair(request: sshkey_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: sshkey_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export class SSHKeyServiceClient extends grpc.Client implements ISSHKeyServiceClient {
|
|
37
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
38
|
+
public createSSHKeyPair(request: sshkey_pb.CreateSSHKeyPairRequest, callback: (error: grpc.ServiceError | null, response: sshkey_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
39
|
+
public createSSHKeyPair(request: sshkey_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: sshkey_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
40
|
+
public createSSHKeyPair(request: sshkey_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: sshkey_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
41
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
// Original file comments:
|
|
4
|
+
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
|
|
5
|
+
// Licensed under the GNU Affero General Public License (AGPL).
|
|
6
|
+
// See License-AGPL.txt in the project root for license information.
|
|
7
|
+
//
|
|
8
|
+
'use strict';
|
|
9
|
+
var grpc = require('@grpc/grpc-js');
|
|
10
|
+
var sshkey_pb = require('./sshkey_pb.js');
|
|
11
|
+
|
|
12
|
+
function serialize_supervisor_CreateSSHKeyPairRequest(arg) {
|
|
13
|
+
if (!(arg instanceof sshkey_pb.CreateSSHKeyPairRequest)) {
|
|
14
|
+
throw new Error('Expected argument of type supervisor.CreateSSHKeyPairRequest');
|
|
15
|
+
}
|
|
16
|
+
return Buffer.from(arg.serializeBinary());
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function deserialize_supervisor_CreateSSHKeyPairRequest(buffer_arg) {
|
|
20
|
+
return sshkey_pb.CreateSSHKeyPairRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function serialize_supervisor_CreateSSHKeyPairResponse(arg) {
|
|
24
|
+
if (!(arg instanceof sshkey_pb.CreateSSHKeyPairResponse)) {
|
|
25
|
+
throw new Error('Expected argument of type supervisor.CreateSSHKeyPairResponse');
|
|
26
|
+
}
|
|
27
|
+
return Buffer.from(arg.serializeBinary());
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function deserialize_supervisor_CreateSSHKeyPairResponse(buffer_arg) {
|
|
31
|
+
return sshkey_pb.CreateSSHKeyPairResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
var SSHKeyServiceService = exports.SSHKeyServiceService = {
|
|
36
|
+
createSSHKeyPair: {
|
|
37
|
+
path: '/supervisor.SSHKeyService/CreateSSHKeyPair',
|
|
38
|
+
requestStream: false,
|
|
39
|
+
responseStream: false,
|
|
40
|
+
requestType: sshkey_pb.CreateSSHKeyPairRequest,
|
|
41
|
+
responseType: sshkey_pb.CreateSSHKeyPairResponse,
|
|
42
|
+
requestSerialize: serialize_supervisor_CreateSSHKeyPairRequest,
|
|
43
|
+
requestDeserialize: deserialize_supervisor_CreateSSHKeyPairRequest,
|
|
44
|
+
responseSerialize: serialize_supervisor_CreateSSHKeyPairResponse,
|
|
45
|
+
responseDeserialize: deserialize_supervisor_CreateSSHKeyPairResponse,
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
exports.SSHKeyServiceClient = grpc.makeGenericClientConstructor(SSHKeyServiceService);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// package: supervisor
|
|
2
|
+
// file: sshkey.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
|
|
9
|
+
export class CreateSSHKeyPairRequest extends jspb.Message {
|
|
10
|
+
|
|
11
|
+
serializeBinary(): Uint8Array;
|
|
12
|
+
toObject(includeInstance?: boolean): CreateSSHKeyPairRequest.AsObject;
|
|
13
|
+
static toObject(includeInstance: boolean, msg: CreateSSHKeyPairRequest): CreateSSHKeyPairRequest.AsObject;
|
|
14
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
15
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
16
|
+
static serializeBinaryToWriter(message: CreateSSHKeyPairRequest, writer: jspb.BinaryWriter): void;
|
|
17
|
+
static deserializeBinary(bytes: Uint8Array): CreateSSHKeyPairRequest;
|
|
18
|
+
static deserializeBinaryFromReader(message: CreateSSHKeyPairRequest, reader: jspb.BinaryReader): CreateSSHKeyPairRequest;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export namespace CreateSSHKeyPairRequest {
|
|
22
|
+
export type AsObject = {
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class CreateSSHKeyPairResponse extends jspb.Message {
|
|
27
|
+
getPrivateKey(): string;
|
|
28
|
+
setPrivateKey(value: string): CreateSSHKeyPairResponse;
|
|
29
|
+
|
|
30
|
+
serializeBinary(): Uint8Array;
|
|
31
|
+
toObject(includeInstance?: boolean): CreateSSHKeyPairResponse.AsObject;
|
|
32
|
+
static toObject(includeInstance: boolean, msg: CreateSSHKeyPairResponse): CreateSSHKeyPairResponse.AsObject;
|
|
33
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
34
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
35
|
+
static serializeBinaryToWriter(message: CreateSSHKeyPairResponse, writer: jspb.BinaryWriter): void;
|
|
36
|
+
static deserializeBinary(bytes: Uint8Array): CreateSSHKeyPairResponse;
|
|
37
|
+
static deserializeBinaryFromReader(message: CreateSSHKeyPairResponse, reader: jspb.BinaryReader): CreateSSHKeyPairResponse;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export namespace CreateSSHKeyPairResponse {
|
|
41
|
+
export type AsObject = {
|
|
42
|
+
privateKey: string,
|
|
43
|
+
}
|
|
44
|
+
}
|
package/lib/sshkey_pb.js
ADDED
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
// source: sshkey.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
23
|
+
|
|
24
|
+
goog.exportSymbol('proto.supervisor.CreateSSHKeyPairRequest', null, global);
|
|
25
|
+
goog.exportSymbol('proto.supervisor.CreateSSHKeyPairResponse', null, global);
|
|
26
|
+
/**
|
|
27
|
+
* Generated by JsPbCodeGenerator.
|
|
28
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
29
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
30
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
31
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
32
|
+
* valid.
|
|
33
|
+
* @extends {jspb.Message}
|
|
34
|
+
* @constructor
|
|
35
|
+
*/
|
|
36
|
+
proto.supervisor.CreateSSHKeyPairRequest = function(opt_data) {
|
|
37
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
38
|
+
};
|
|
39
|
+
goog.inherits(proto.supervisor.CreateSSHKeyPairRequest, jspb.Message);
|
|
40
|
+
if (goog.DEBUG && !COMPILED) {
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
* @override
|
|
44
|
+
*/
|
|
45
|
+
proto.supervisor.CreateSSHKeyPairRequest.displayName = 'proto.supervisor.CreateSSHKeyPairRequest';
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Generated by JsPbCodeGenerator.
|
|
49
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
50
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
51
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
52
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
53
|
+
* valid.
|
|
54
|
+
* @extends {jspb.Message}
|
|
55
|
+
* @constructor
|
|
56
|
+
*/
|
|
57
|
+
proto.supervisor.CreateSSHKeyPairResponse = function(opt_data) {
|
|
58
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
59
|
+
};
|
|
60
|
+
goog.inherits(proto.supervisor.CreateSSHKeyPairResponse, jspb.Message);
|
|
61
|
+
if (goog.DEBUG && !COMPILED) {
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
* @override
|
|
65
|
+
*/
|
|
66
|
+
proto.supervisor.CreateSSHKeyPairResponse.displayName = 'proto.supervisor.CreateSSHKeyPairResponse';
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
72
|
+
/**
|
|
73
|
+
* Creates an object representation of this proto.
|
|
74
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
75
|
+
* Optional fields that are not set will be set to undefined.
|
|
76
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
77
|
+
* For the list of reserved names please see:
|
|
78
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
79
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
80
|
+
* JSPB instance for transitional soy proto support:
|
|
81
|
+
* http://goto/soy-param-migration
|
|
82
|
+
* @return {!Object}
|
|
83
|
+
*/
|
|
84
|
+
proto.supervisor.CreateSSHKeyPairRequest.prototype.toObject = function(opt_includeInstance) {
|
|
85
|
+
return proto.supervisor.CreateSSHKeyPairRequest.toObject(opt_includeInstance, this);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Static version of the {@see toObject} method.
|
|
91
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
92
|
+
* the JSPB instance for transitional soy proto support:
|
|
93
|
+
* http://goto/soy-param-migration
|
|
94
|
+
* @param {!proto.supervisor.CreateSSHKeyPairRequest} msg The msg instance to transform.
|
|
95
|
+
* @return {!Object}
|
|
96
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
97
|
+
*/
|
|
98
|
+
proto.supervisor.CreateSSHKeyPairRequest.toObject = function(includeInstance, msg) {
|
|
99
|
+
var f, obj = {
|
|
100
|
+
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
if (includeInstance) {
|
|
104
|
+
obj.$jspbMessageInstance = msg;
|
|
105
|
+
}
|
|
106
|
+
return obj;
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Deserializes binary data (in protobuf wire format).
|
|
113
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
114
|
+
* @return {!proto.supervisor.CreateSSHKeyPairRequest}
|
|
115
|
+
*/
|
|
116
|
+
proto.supervisor.CreateSSHKeyPairRequest.deserializeBinary = function(bytes) {
|
|
117
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
118
|
+
var msg = new proto.supervisor.CreateSSHKeyPairRequest;
|
|
119
|
+
return proto.supervisor.CreateSSHKeyPairRequest.deserializeBinaryFromReader(msg, reader);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
125
|
+
* given reader into the given message object.
|
|
126
|
+
* @param {!proto.supervisor.CreateSSHKeyPairRequest} msg The message object to deserialize into.
|
|
127
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
128
|
+
* @return {!proto.supervisor.CreateSSHKeyPairRequest}
|
|
129
|
+
*/
|
|
130
|
+
proto.supervisor.CreateSSHKeyPairRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
131
|
+
while (reader.nextField()) {
|
|
132
|
+
if (reader.isEndGroup()) {
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
var field = reader.getFieldNumber();
|
|
136
|
+
switch (field) {
|
|
137
|
+
default:
|
|
138
|
+
reader.skipField();
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return msg;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
148
|
+
* @return {!Uint8Array}
|
|
149
|
+
*/
|
|
150
|
+
proto.supervisor.CreateSSHKeyPairRequest.prototype.serializeBinary = function() {
|
|
151
|
+
var writer = new jspb.BinaryWriter();
|
|
152
|
+
proto.supervisor.CreateSSHKeyPairRequest.serializeBinaryToWriter(this, writer);
|
|
153
|
+
return writer.getResultBuffer();
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
159
|
+
* format), writing to the given BinaryWriter.
|
|
160
|
+
* @param {!proto.supervisor.CreateSSHKeyPairRequest} message
|
|
161
|
+
* @param {!jspb.BinaryWriter} writer
|
|
162
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
163
|
+
*/
|
|
164
|
+
proto.supervisor.CreateSSHKeyPairRequest.serializeBinaryToWriter = function(message, writer) {
|
|
165
|
+
var f = undefined;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
173
|
+
/**
|
|
174
|
+
* Creates an object representation of this proto.
|
|
175
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
176
|
+
* Optional fields that are not set will be set to undefined.
|
|
177
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
178
|
+
* For the list of reserved names please see:
|
|
179
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
180
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
181
|
+
* JSPB instance for transitional soy proto support:
|
|
182
|
+
* http://goto/soy-param-migration
|
|
183
|
+
* @return {!Object}
|
|
184
|
+
*/
|
|
185
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.toObject = function(opt_includeInstance) {
|
|
186
|
+
return proto.supervisor.CreateSSHKeyPairResponse.toObject(opt_includeInstance, this);
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Static version of the {@see toObject} method.
|
|
192
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
193
|
+
* the JSPB instance for transitional soy proto support:
|
|
194
|
+
* http://goto/soy-param-migration
|
|
195
|
+
* @param {!proto.supervisor.CreateSSHKeyPairResponse} msg The msg instance to transform.
|
|
196
|
+
* @return {!Object}
|
|
197
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
198
|
+
*/
|
|
199
|
+
proto.supervisor.CreateSSHKeyPairResponse.toObject = function(includeInstance, msg) {
|
|
200
|
+
var f, obj = {
|
|
201
|
+
privateKey: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
if (includeInstance) {
|
|
205
|
+
obj.$jspbMessageInstance = msg;
|
|
206
|
+
}
|
|
207
|
+
return obj;
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Deserializes binary data (in protobuf wire format).
|
|
214
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
215
|
+
* @return {!proto.supervisor.CreateSSHKeyPairResponse}
|
|
216
|
+
*/
|
|
217
|
+
proto.supervisor.CreateSSHKeyPairResponse.deserializeBinary = function(bytes) {
|
|
218
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
219
|
+
var msg = new proto.supervisor.CreateSSHKeyPairResponse;
|
|
220
|
+
return proto.supervisor.CreateSSHKeyPairResponse.deserializeBinaryFromReader(msg, reader);
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
226
|
+
* given reader into the given message object.
|
|
227
|
+
* @param {!proto.supervisor.CreateSSHKeyPairResponse} msg The message object to deserialize into.
|
|
228
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
229
|
+
* @return {!proto.supervisor.CreateSSHKeyPairResponse}
|
|
230
|
+
*/
|
|
231
|
+
proto.supervisor.CreateSSHKeyPairResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
232
|
+
while (reader.nextField()) {
|
|
233
|
+
if (reader.isEndGroup()) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
var field = reader.getFieldNumber();
|
|
237
|
+
switch (field) {
|
|
238
|
+
case 1:
|
|
239
|
+
var value = /** @type {string} */ (reader.readString());
|
|
240
|
+
msg.setPrivateKey(value);
|
|
241
|
+
break;
|
|
242
|
+
default:
|
|
243
|
+
reader.skipField();
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return msg;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
253
|
+
* @return {!Uint8Array}
|
|
254
|
+
*/
|
|
255
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.serializeBinary = function() {
|
|
256
|
+
var writer = new jspb.BinaryWriter();
|
|
257
|
+
proto.supervisor.CreateSSHKeyPairResponse.serializeBinaryToWriter(this, writer);
|
|
258
|
+
return writer.getResultBuffer();
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
264
|
+
* format), writing to the given BinaryWriter.
|
|
265
|
+
* @param {!proto.supervisor.CreateSSHKeyPairResponse} message
|
|
266
|
+
* @param {!jspb.BinaryWriter} writer
|
|
267
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
268
|
+
*/
|
|
269
|
+
proto.supervisor.CreateSSHKeyPairResponse.serializeBinaryToWriter = function(message, writer) {
|
|
270
|
+
var f = undefined;
|
|
271
|
+
f = message.getPrivateKey();
|
|
272
|
+
if (f.length > 0) {
|
|
273
|
+
writer.writeString(
|
|
274
|
+
1,
|
|
275
|
+
f
|
|
276
|
+
);
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* optional string private_key = 1;
|
|
283
|
+
* @return {string}
|
|
284
|
+
*/
|
|
285
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.getPrivateKey = function() {
|
|
286
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @param {string} value
|
|
292
|
+
* @return {!proto.supervisor.CreateSSHKeyPairResponse} returns this
|
|
293
|
+
*/
|
|
294
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.setPrivateKey = function(value) {
|
|
295
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
goog.object.extend(exports, proto.supervisor);
|
package/lib/status_pb.d.ts
CHANGED
|
@@ -68,6 +68,11 @@ export class IDEStatusResponse extends jspb.Message {
|
|
|
68
68
|
getOk(): boolean;
|
|
69
69
|
setOk(value: boolean): IDEStatusResponse;
|
|
70
70
|
|
|
71
|
+
hasDesktop(): boolean;
|
|
72
|
+
clearDesktop(): void;
|
|
73
|
+
getDesktop(): IDEStatusResponse.DesktopStatus | undefined;
|
|
74
|
+
setDesktop(value?: IDEStatusResponse.DesktopStatus): IDEStatusResponse;
|
|
75
|
+
|
|
71
76
|
serializeBinary(): Uint8Array;
|
|
72
77
|
toObject(includeInstance?: boolean): IDEStatusResponse.AsObject;
|
|
73
78
|
static toObject(includeInstance: boolean, msg: IDEStatusResponse): IDEStatusResponse.AsObject;
|
|
@@ -81,7 +86,33 @@ export class IDEStatusResponse extends jspb.Message {
|
|
|
81
86
|
export namespace IDEStatusResponse {
|
|
82
87
|
export type AsObject = {
|
|
83
88
|
ok: boolean,
|
|
89
|
+
desktop?: IDEStatusResponse.DesktopStatus.AsObject,
|
|
84
90
|
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
export class DesktopStatus extends jspb.Message {
|
|
94
|
+
getLink(): string;
|
|
95
|
+
setLink(value: string): DesktopStatus;
|
|
96
|
+
getLabel(): string;
|
|
97
|
+
setLabel(value: string): DesktopStatus;
|
|
98
|
+
|
|
99
|
+
serializeBinary(): Uint8Array;
|
|
100
|
+
toObject(includeInstance?: boolean): DesktopStatus.AsObject;
|
|
101
|
+
static toObject(includeInstance: boolean, msg: DesktopStatus): DesktopStatus.AsObject;
|
|
102
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
103
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
104
|
+
static serializeBinaryToWriter(message: DesktopStatus, writer: jspb.BinaryWriter): void;
|
|
105
|
+
static deserializeBinary(bytes: Uint8Array): DesktopStatus;
|
|
106
|
+
static deserializeBinaryFromReader(message: DesktopStatus, reader: jspb.BinaryReader): DesktopStatus;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export namespace DesktopStatus {
|
|
110
|
+
export type AsObject = {
|
|
111
|
+
link: string,
|
|
112
|
+
label: string,
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
85
116
|
}
|
|
86
117
|
|
|
87
118
|
export class ContentStatusRequest extends jspb.Message {
|
|
@@ -263,8 +294,6 @@ export namespace TunneledPortInfo {
|
|
|
263
294
|
export class PortsStatus extends jspb.Message {
|
|
264
295
|
getLocalPort(): number;
|
|
265
296
|
setLocalPort(value: number): PortsStatus;
|
|
266
|
-
getGlobalPort(): number;
|
|
267
|
-
setGlobalPort(value: number): PortsStatus;
|
|
268
297
|
getServed(): boolean;
|
|
269
298
|
setServed(value: boolean): PortsStatus;
|
|
270
299
|
|
|
@@ -279,6 +308,10 @@ export class PortsStatus extends jspb.Message {
|
|
|
279
308
|
clearTunneled(): void;
|
|
280
309
|
getTunneled(): TunneledPortInfo | undefined;
|
|
281
310
|
setTunneled(value?: TunneledPortInfo): PortsStatus;
|
|
311
|
+
getDescription(): string;
|
|
312
|
+
setDescription(value: string): PortsStatus;
|
|
313
|
+
getName(): string;
|
|
314
|
+
setName(value: string): PortsStatus;
|
|
282
315
|
|
|
283
316
|
serializeBinary(): Uint8Array;
|
|
284
317
|
toObject(includeInstance?: boolean): PortsStatus.AsObject;
|
|
@@ -293,11 +326,12 @@ export class PortsStatus extends jspb.Message {
|
|
|
293
326
|
export namespace PortsStatus {
|
|
294
327
|
export type AsObject = {
|
|
295
328
|
localPort: number,
|
|
296
|
-
globalPort: number,
|
|
297
329
|
served: boolean,
|
|
298
330
|
exposed?: ExposedPortInfo.AsObject,
|
|
299
331
|
autoExposure: PortAutoExposure,
|
|
300
332
|
tunneled?: TunneledPortInfo.AsObject,
|
|
333
|
+
description: string,
|
|
334
|
+
name: string,
|
|
301
335
|
}
|
|
302
336
|
}
|
|
303
337
|
|
package/lib/status_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
var port_pb = require('./port_pb.js');
|
|
19
25
|
goog.object.extend(proto, port_pb);
|
|
@@ -25,6 +31,7 @@ goog.exportSymbol('proto.supervisor.ContentStatusResponse', null, global);
|
|
|
25
31
|
goog.exportSymbol('proto.supervisor.ExposedPortInfo', null, global);
|
|
26
32
|
goog.exportSymbol('proto.supervisor.IDEStatusRequest', null, global);
|
|
27
33
|
goog.exportSymbol('proto.supervisor.IDEStatusResponse', null, global);
|
|
34
|
+
goog.exportSymbol('proto.supervisor.IDEStatusResponse.DesktopStatus', null, global);
|
|
28
35
|
goog.exportSymbol('proto.supervisor.OnPortExposedAction', null, global);
|
|
29
36
|
goog.exportSymbol('proto.supervisor.PortAutoExposure', null, global);
|
|
30
37
|
goog.exportSymbol('proto.supervisor.PortVisibility', null, global);
|
|
@@ -123,6 +130,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
123
130
|
*/
|
|
124
131
|
proto.supervisor.IDEStatusResponse.displayName = 'proto.supervisor.IDEStatusResponse';
|
|
125
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* Generated by JsPbCodeGenerator.
|
|
135
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
136
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
137
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
138
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
139
|
+
* valid.
|
|
140
|
+
* @extends {jspb.Message}
|
|
141
|
+
* @constructor
|
|
142
|
+
*/
|
|
143
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus = function(opt_data) {
|
|
144
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
145
|
+
};
|
|
146
|
+
goog.inherits(proto.supervisor.IDEStatusResponse.DesktopStatus, jspb.Message);
|
|
147
|
+
if (goog.DEBUG && !COMPILED) {
|
|
148
|
+
/**
|
|
149
|
+
* @public
|
|
150
|
+
* @override
|
|
151
|
+
*/
|
|
152
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.displayName = 'proto.supervisor.IDEStatusResponse.DesktopStatus';
|
|
153
|
+
}
|
|
126
154
|
/**
|
|
127
155
|
* Generated by JsPbCodeGenerator.
|
|
128
156
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -789,7 +817,8 @@ proto.supervisor.IDEStatusResponse.prototype.toObject = function(opt_includeInst
|
|
|
789
817
|
*/
|
|
790
818
|
proto.supervisor.IDEStatusResponse.toObject = function(includeInstance, msg) {
|
|
791
819
|
var f, obj = {
|
|
792
|
-
ok: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
|
|
820
|
+
ok: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
821
|
+
desktop: (f = msg.getDesktop()) && proto.supervisor.IDEStatusResponse.DesktopStatus.toObject(includeInstance, f)
|
|
793
822
|
};
|
|
794
823
|
|
|
795
824
|
if (includeInstance) {
|
|
@@ -830,6 +859,11 @@ proto.supervisor.IDEStatusResponse.deserializeBinaryFromReader = function(msg, r
|
|
|
830
859
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
831
860
|
msg.setOk(value);
|
|
832
861
|
break;
|
|
862
|
+
case 2:
|
|
863
|
+
var value = new proto.supervisor.IDEStatusResponse.DesktopStatus;
|
|
864
|
+
reader.readMessage(value,proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader);
|
|
865
|
+
msg.setDesktop(value);
|
|
866
|
+
break;
|
|
833
867
|
default:
|
|
834
868
|
reader.skipField();
|
|
835
869
|
break;
|
|
@@ -866,6 +900,174 @@ proto.supervisor.IDEStatusResponse.serializeBinaryToWriter = function(message, w
|
|
|
866
900
|
f
|
|
867
901
|
);
|
|
868
902
|
}
|
|
903
|
+
f = message.getDesktop();
|
|
904
|
+
if (f != null) {
|
|
905
|
+
writer.writeMessage(
|
|
906
|
+
2,
|
|
907
|
+
f,
|
|
908
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter
|
|
909
|
+
);
|
|
910
|
+
}
|
|
911
|
+
};
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
918
|
+
/**
|
|
919
|
+
* Creates an object representation of this proto.
|
|
920
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
921
|
+
* Optional fields that are not set will be set to undefined.
|
|
922
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
923
|
+
* For the list of reserved names please see:
|
|
924
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
925
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
926
|
+
* JSPB instance for transitional soy proto support:
|
|
927
|
+
* http://goto/soy-param-migration
|
|
928
|
+
* @return {!Object}
|
|
929
|
+
*/
|
|
930
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.toObject = function(opt_includeInstance) {
|
|
931
|
+
return proto.supervisor.IDEStatusResponse.DesktopStatus.toObject(opt_includeInstance, this);
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Static version of the {@see toObject} method.
|
|
937
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
938
|
+
* the JSPB instance for transitional soy proto support:
|
|
939
|
+
* http://goto/soy-param-migration
|
|
940
|
+
* @param {!proto.supervisor.IDEStatusResponse.DesktopStatus} msg The msg instance to transform.
|
|
941
|
+
* @return {!Object}
|
|
942
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
943
|
+
*/
|
|
944
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.toObject = function(includeInstance, msg) {
|
|
945
|
+
var f, obj = {
|
|
946
|
+
link: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
947
|
+
label: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
if (includeInstance) {
|
|
951
|
+
obj.$jspbMessageInstance = msg;
|
|
952
|
+
}
|
|
953
|
+
return obj;
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* Deserializes binary data (in protobuf wire format).
|
|
960
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
961
|
+
* @return {!proto.supervisor.IDEStatusResponse.DesktopStatus}
|
|
962
|
+
*/
|
|
963
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinary = function(bytes) {
|
|
964
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
965
|
+
var msg = new proto.supervisor.IDEStatusResponse.DesktopStatus;
|
|
966
|
+
return proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader(msg, reader);
|
|
967
|
+
};
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
972
|
+
* given reader into the given message object.
|
|
973
|
+
* @param {!proto.supervisor.IDEStatusResponse.DesktopStatus} msg The message object to deserialize into.
|
|
974
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
975
|
+
* @return {!proto.supervisor.IDEStatusResponse.DesktopStatus}
|
|
976
|
+
*/
|
|
977
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader = function(msg, reader) {
|
|
978
|
+
while (reader.nextField()) {
|
|
979
|
+
if (reader.isEndGroup()) {
|
|
980
|
+
break;
|
|
981
|
+
}
|
|
982
|
+
var field = reader.getFieldNumber();
|
|
983
|
+
switch (field) {
|
|
984
|
+
case 1:
|
|
985
|
+
var value = /** @type {string} */ (reader.readString());
|
|
986
|
+
msg.setLink(value);
|
|
987
|
+
break;
|
|
988
|
+
case 2:
|
|
989
|
+
var value = /** @type {string} */ (reader.readString());
|
|
990
|
+
msg.setLabel(value);
|
|
991
|
+
break;
|
|
992
|
+
default:
|
|
993
|
+
reader.skipField();
|
|
994
|
+
break;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
return msg;
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1003
|
+
* @return {!Uint8Array}
|
|
1004
|
+
*/
|
|
1005
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.serializeBinary = function() {
|
|
1006
|
+
var writer = new jspb.BinaryWriter();
|
|
1007
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter(this, writer);
|
|
1008
|
+
return writer.getResultBuffer();
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1014
|
+
* format), writing to the given BinaryWriter.
|
|
1015
|
+
* @param {!proto.supervisor.IDEStatusResponse.DesktopStatus} message
|
|
1016
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1017
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1018
|
+
*/
|
|
1019
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter = function(message, writer) {
|
|
1020
|
+
var f = undefined;
|
|
1021
|
+
f = message.getLink();
|
|
1022
|
+
if (f.length > 0) {
|
|
1023
|
+
writer.writeString(
|
|
1024
|
+
1,
|
|
1025
|
+
f
|
|
1026
|
+
);
|
|
1027
|
+
}
|
|
1028
|
+
f = message.getLabel();
|
|
1029
|
+
if (f.length > 0) {
|
|
1030
|
+
writer.writeString(
|
|
1031
|
+
2,
|
|
1032
|
+
f
|
|
1033
|
+
);
|
|
1034
|
+
}
|
|
1035
|
+
};
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* optional string link = 1;
|
|
1040
|
+
* @return {string}
|
|
1041
|
+
*/
|
|
1042
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.getLink = function() {
|
|
1043
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* @param {string} value
|
|
1049
|
+
* @return {!proto.supervisor.IDEStatusResponse.DesktopStatus} returns this
|
|
1050
|
+
*/
|
|
1051
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setLink = function(value) {
|
|
1052
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1053
|
+
};
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* optional string label = 2;
|
|
1058
|
+
* @return {string}
|
|
1059
|
+
*/
|
|
1060
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.getLabel = function() {
|
|
1061
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* @param {string} value
|
|
1067
|
+
* @return {!proto.supervisor.IDEStatusResponse.DesktopStatus} returns this
|
|
1068
|
+
*/
|
|
1069
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setLabel = function(value) {
|
|
1070
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
869
1071
|
};
|
|
870
1072
|
|
|
871
1073
|
|
|
@@ -887,6 +1089,43 @@ proto.supervisor.IDEStatusResponse.prototype.setOk = function(value) {
|
|
|
887
1089
|
};
|
|
888
1090
|
|
|
889
1091
|
|
|
1092
|
+
/**
|
|
1093
|
+
* optional DesktopStatus desktop = 2;
|
|
1094
|
+
* @return {?proto.supervisor.IDEStatusResponse.DesktopStatus}
|
|
1095
|
+
*/
|
|
1096
|
+
proto.supervisor.IDEStatusResponse.prototype.getDesktop = function() {
|
|
1097
|
+
return /** @type{?proto.supervisor.IDEStatusResponse.DesktopStatus} */ (
|
|
1098
|
+
jspb.Message.getWrapperField(this, proto.supervisor.IDEStatusResponse.DesktopStatus, 2));
|
|
1099
|
+
};
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* @param {?proto.supervisor.IDEStatusResponse.DesktopStatus|undefined} value
|
|
1104
|
+
* @return {!proto.supervisor.IDEStatusResponse} returns this
|
|
1105
|
+
*/
|
|
1106
|
+
proto.supervisor.IDEStatusResponse.prototype.setDesktop = function(value) {
|
|
1107
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Clears the message field making it undefined.
|
|
1113
|
+
* @return {!proto.supervisor.IDEStatusResponse} returns this
|
|
1114
|
+
*/
|
|
1115
|
+
proto.supervisor.IDEStatusResponse.prototype.clearDesktop = function() {
|
|
1116
|
+
return this.setDesktop(undefined);
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* Returns whether this field is set.
|
|
1122
|
+
* @return {boolean}
|
|
1123
|
+
*/
|
|
1124
|
+
proto.supervisor.IDEStatusResponse.prototype.hasDesktop = function() {
|
|
1125
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1128
|
+
|
|
890
1129
|
|
|
891
1130
|
|
|
892
1131
|
|
|
@@ -2114,11 +2353,12 @@ proto.supervisor.PortsStatus.prototype.toObject = function(opt_includeInstance)
|
|
|
2114
2353
|
proto.supervisor.PortsStatus.toObject = function(includeInstance, msg) {
|
|
2115
2354
|
var f, obj = {
|
|
2116
2355
|
localPort: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2117
|
-
globalPort: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
2118
2356
|
served: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
2119
2357
|
exposed: (f = msg.getExposed()) && proto.supervisor.ExposedPortInfo.toObject(includeInstance, f),
|
|
2120
2358
|
autoExposure: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
2121
|
-
tunneled: (f = msg.getTunneled()) && proto.supervisor.TunneledPortInfo.toObject(includeInstance, f)
|
|
2359
|
+
tunneled: (f = msg.getTunneled()) && proto.supervisor.TunneledPortInfo.toObject(includeInstance, f),
|
|
2360
|
+
description: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
2361
|
+
name: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
2122
2362
|
};
|
|
2123
2363
|
|
|
2124
2364
|
if (includeInstance) {
|
|
@@ -2159,10 +2399,6 @@ proto.supervisor.PortsStatus.deserializeBinaryFromReader = function(msg, reader)
|
|
|
2159
2399
|
var value = /** @type {number} */ (reader.readUint32());
|
|
2160
2400
|
msg.setLocalPort(value);
|
|
2161
2401
|
break;
|
|
2162
|
-
case 2:
|
|
2163
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
2164
|
-
msg.setGlobalPort(value);
|
|
2165
|
-
break;
|
|
2166
2402
|
case 4:
|
|
2167
2403
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
2168
2404
|
msg.setServed(value);
|
|
@@ -2181,6 +2417,14 @@ proto.supervisor.PortsStatus.deserializeBinaryFromReader = function(msg, reader)
|
|
|
2181
2417
|
reader.readMessage(value,proto.supervisor.TunneledPortInfo.deserializeBinaryFromReader);
|
|
2182
2418
|
msg.setTunneled(value);
|
|
2183
2419
|
break;
|
|
2420
|
+
case 8:
|
|
2421
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2422
|
+
msg.setDescription(value);
|
|
2423
|
+
break;
|
|
2424
|
+
case 9:
|
|
2425
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2426
|
+
msg.setName(value);
|
|
2427
|
+
break;
|
|
2184
2428
|
default:
|
|
2185
2429
|
reader.skipField();
|
|
2186
2430
|
break;
|
|
@@ -2217,13 +2461,6 @@ proto.supervisor.PortsStatus.serializeBinaryToWriter = function(message, writer)
|
|
|
2217
2461
|
f
|
|
2218
2462
|
);
|
|
2219
2463
|
}
|
|
2220
|
-
f = message.getGlobalPort();
|
|
2221
|
-
if (f !== 0) {
|
|
2222
|
-
writer.writeUint32(
|
|
2223
|
-
2,
|
|
2224
|
-
f
|
|
2225
|
-
);
|
|
2226
|
-
}
|
|
2227
2464
|
f = message.getServed();
|
|
2228
2465
|
if (f) {
|
|
2229
2466
|
writer.writeBool(
|
|
@@ -2254,6 +2491,20 @@ proto.supervisor.PortsStatus.serializeBinaryToWriter = function(message, writer)
|
|
|
2254
2491
|
proto.supervisor.TunneledPortInfo.serializeBinaryToWriter
|
|
2255
2492
|
);
|
|
2256
2493
|
}
|
|
2494
|
+
f = message.getDescription();
|
|
2495
|
+
if (f.length > 0) {
|
|
2496
|
+
writer.writeString(
|
|
2497
|
+
8,
|
|
2498
|
+
f
|
|
2499
|
+
);
|
|
2500
|
+
}
|
|
2501
|
+
f = message.getName();
|
|
2502
|
+
if (f.length > 0) {
|
|
2503
|
+
writer.writeString(
|
|
2504
|
+
9,
|
|
2505
|
+
f
|
|
2506
|
+
);
|
|
2507
|
+
}
|
|
2257
2508
|
};
|
|
2258
2509
|
|
|
2259
2510
|
|
|
@@ -2275,24 +2526,6 @@ proto.supervisor.PortsStatus.prototype.setLocalPort = function(value) {
|
|
|
2275
2526
|
};
|
|
2276
2527
|
|
|
2277
2528
|
|
|
2278
|
-
/**
|
|
2279
|
-
* optional uint32 global_port = 2;
|
|
2280
|
-
* @return {number}
|
|
2281
|
-
*/
|
|
2282
|
-
proto.supervisor.PortsStatus.prototype.getGlobalPort = function() {
|
|
2283
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2284
|
-
};
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
/**
|
|
2288
|
-
* @param {number} value
|
|
2289
|
-
* @return {!proto.supervisor.PortsStatus} returns this
|
|
2290
|
-
*/
|
|
2291
|
-
proto.supervisor.PortsStatus.prototype.setGlobalPort = function(value) {
|
|
2292
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
|
2293
|
-
};
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
2529
|
/**
|
|
2297
2530
|
* optional bool served = 4;
|
|
2298
2531
|
* @return {boolean}
|
|
@@ -2403,6 +2636,42 @@ proto.supervisor.PortsStatus.prototype.hasTunneled = function() {
|
|
|
2403
2636
|
};
|
|
2404
2637
|
|
|
2405
2638
|
|
|
2639
|
+
/**
|
|
2640
|
+
* optional string description = 8;
|
|
2641
|
+
* @return {string}
|
|
2642
|
+
*/
|
|
2643
|
+
proto.supervisor.PortsStatus.prototype.getDescription = function() {
|
|
2644
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
2645
|
+
};
|
|
2646
|
+
|
|
2647
|
+
|
|
2648
|
+
/**
|
|
2649
|
+
* @param {string} value
|
|
2650
|
+
* @return {!proto.supervisor.PortsStatus} returns this
|
|
2651
|
+
*/
|
|
2652
|
+
proto.supervisor.PortsStatus.prototype.setDescription = function(value) {
|
|
2653
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2656
|
+
|
|
2657
|
+
/**
|
|
2658
|
+
* optional string name = 9;
|
|
2659
|
+
* @return {string}
|
|
2660
|
+
*/
|
|
2661
|
+
proto.supervisor.PortsStatus.prototype.getName = function() {
|
|
2662
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
2663
|
+
};
|
|
2664
|
+
|
|
2665
|
+
|
|
2666
|
+
/**
|
|
2667
|
+
* @param {string} value
|
|
2668
|
+
* @return {!proto.supervisor.PortsStatus} returns this
|
|
2669
|
+
*/
|
|
2670
|
+
proto.supervisor.PortsStatus.prototype.setName = function(value) {
|
|
2671
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
2672
|
+
};
|
|
2673
|
+
|
|
2674
|
+
|
|
2406
2675
|
|
|
2407
2676
|
|
|
2408
2677
|
|
package/lib/terminal_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.supervisor.GetTerminalRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.supervisor.ListTerminalsRequest', null, global);
|
package/lib/token_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
19
25
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@grpc/grpc-js": "^1.3.7",
|
|
4
|
-
"google-protobuf": "^3.
|
|
4
|
+
"google-protobuf": "^3.19.1"
|
|
5
5
|
},
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@types/google-protobuf": "^3.
|
|
7
|
+
"@types/google-protobuf": "^3.15.5",
|
|
8
8
|
"grpc-tools": "^1.11.2",
|
|
9
|
-
"grpc_tools_node_protoc_ts": "^5.3.
|
|
9
|
+
"grpc_tools_node_protoc_ts": "^5.3.2",
|
|
10
|
+
"typescript": "~4.4.2",
|
|
10
11
|
"typescript-formatter": "^7.2.2"
|
|
11
12
|
},
|
|
12
13
|
"files": [
|
|
@@ -18,5 +19,5 @@
|
|
|
18
19
|
"scripts": {
|
|
19
20
|
"build": "sh build.sh"
|
|
20
21
|
},
|
|
21
|
-
"version": "0.1.5-pd-
|
|
22
|
+
"version": "0.1.5-pd-ssh-gateway-test.5"
|
|
22
23
|
}
|
package/pkg-yarn.lock
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
"@gitpod/supervisor-api-grpc@0.1.5":
|
|
6
6
|
version "0.1.5"
|
|
7
|
-
resolved "file:///tmp/cache/
|
|
7
|
+
resolved "file:///tmp/cache/b128ffcfadbb66f4c2f668e9745a5c0ad14094d6.tar.gz"
|
|
8
8
|
dependencies:
|
|
9
9
|
"@grpc/grpc-js" "^1.3.7"
|
|
10
|
-
google-protobuf "^3.
|
|
10
|
+
google-protobuf "^3.19.1"
|
|
11
11
|
|