@gitpod/supervisor-api-grpc 0.1.5-svenefftinge-patch-1.0 → 0.1.5-to-new-image.2
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_grpc_pb.d.ts +17 -1
- package/lib/control_grpc_pb.js +34 -0
- package/lib/control_pb.d.ts +37 -5
- package/lib/control_pb.js +308 -43
- package/lib/info_grpc_pb.d.ts +0 -1
- package/lib/info_pb.d.ts +46 -15
- package/lib/info_pb.js +476 -43
- package/lib/notification_grpc_pb.d.ts +73 -0
- package/lib/notification_grpc_pb.js +121 -0
- package/lib/notification_pb.d.ts +148 -0
- package/lib/notification_pb.js +1076 -0
- package/lib/port_grpc_pb.d.ts +108 -0
- package/lib/port_grpc_pb.js +187 -0
- package/lib/port_pb.d.ts +232 -0
- package/lib/port_pb.js +1672 -0
- package/lib/status_grpc_pb.d.ts +1 -1
- package/lib/status_grpc_pb.js +1 -0
- package/lib/status_pb.d.ts +86 -27
- package/lib/status_pb.js +947 -213
- package/lib/terminal_grpc_pb.d.ts +34 -1
- package/lib/terminal_grpc_pb.js +68 -0
- package/lib/terminal_pb.d.ts +103 -45
- package/lib/terminal_pb.js +1061 -177
- package/lib/token_grpc_pb.d.ts +0 -1
- package/lib/token_pb.d.ts +9 -29
- package/lib/token_pb.js +262 -111
- package/package.json +10 -8
- package/pkg-yarn.lock +3 -3
- package/provenance-bundle.jsonl +4 -0
package/lib/control_grpc_pb.d.ts
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
/* eslint-disable */
|
|
6
6
|
|
|
7
7
|
import * as grpc from "@grpc/grpc-js";
|
|
8
|
-
import {handleClientStreamingCall} from "@grpc/grpc-js/build/src/server-call";
|
|
9
8
|
import * as control_pb from "./control_pb";
|
|
10
9
|
|
|
11
10
|
interface IControlServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
12
11
|
exposePort: IControlServiceService_IExposePort;
|
|
12
|
+
createSSHKeyPair: IControlServiceService_ICreateSSHKeyPair;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
interface IControlServiceService_IExposePort extends grpc.MethodDefinition<control_pb.ExposePortRequest, control_pb.ExposePortResponse> {
|
|
@@ -21,17 +21,30 @@ interface IControlServiceService_IExposePort extends grpc.MethodDefinition<contr
|
|
|
21
21
|
responseSerialize: grpc.serialize<control_pb.ExposePortResponse>;
|
|
22
22
|
responseDeserialize: grpc.deserialize<control_pb.ExposePortResponse>;
|
|
23
23
|
}
|
|
24
|
+
interface IControlServiceService_ICreateSSHKeyPair extends grpc.MethodDefinition<control_pb.CreateSSHKeyPairRequest, control_pb.CreateSSHKeyPairResponse> {
|
|
25
|
+
path: "/supervisor.ControlService/CreateSSHKeyPair";
|
|
26
|
+
requestStream: false;
|
|
27
|
+
responseStream: false;
|
|
28
|
+
requestSerialize: grpc.serialize<control_pb.CreateSSHKeyPairRequest>;
|
|
29
|
+
requestDeserialize: grpc.deserialize<control_pb.CreateSSHKeyPairRequest>;
|
|
30
|
+
responseSerialize: grpc.serialize<control_pb.CreateSSHKeyPairResponse>;
|
|
31
|
+
responseDeserialize: grpc.deserialize<control_pb.CreateSSHKeyPairResponse>;
|
|
32
|
+
}
|
|
24
33
|
|
|
25
34
|
export const ControlServiceService: IControlServiceService;
|
|
26
35
|
|
|
27
36
|
export interface IControlServiceServer extends grpc.UntypedServiceImplementation {
|
|
28
37
|
exposePort: grpc.handleUnaryCall<control_pb.ExposePortRequest, control_pb.ExposePortResponse>;
|
|
38
|
+
createSSHKeyPair: grpc.handleUnaryCall<control_pb.CreateSSHKeyPairRequest, control_pb.CreateSSHKeyPairResponse>;
|
|
29
39
|
}
|
|
30
40
|
|
|
31
41
|
export interface IControlServiceClient {
|
|
32
42
|
exposePort(request: control_pb.ExposePortRequest, callback: (error: grpc.ServiceError | null, response: control_pb.ExposePortResponse) => void): grpc.ClientUnaryCall;
|
|
33
43
|
exposePort(request: control_pb.ExposePortRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: control_pb.ExposePortResponse) => void): grpc.ClientUnaryCall;
|
|
34
44
|
exposePort(request: control_pb.ExposePortRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: control_pb.ExposePortResponse) => void): grpc.ClientUnaryCall;
|
|
45
|
+
createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
46
|
+
createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
47
|
+
createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
35
48
|
}
|
|
36
49
|
|
|
37
50
|
export class ControlServiceClient extends grpc.Client implements IControlServiceClient {
|
|
@@ -39,4 +52,7 @@ export class ControlServiceClient extends grpc.Client implements IControlService
|
|
|
39
52
|
public exposePort(request: control_pb.ExposePortRequest, callback: (error: grpc.ServiceError | null, response: control_pb.ExposePortResponse) => void): grpc.ClientUnaryCall;
|
|
40
53
|
public exposePort(request: control_pb.ExposePortRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: control_pb.ExposePortResponse) => void): grpc.ClientUnaryCall;
|
|
41
54
|
public exposePort(request: control_pb.ExposePortRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: control_pb.ExposePortResponse) => void): grpc.ClientUnaryCall;
|
|
55
|
+
public createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
56
|
+
public createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
57
|
+
public createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
42
58
|
}
|
package/lib/control_grpc_pb.js
CHANGED
|
@@ -9,6 +9,28 @@
|
|
|
9
9
|
var grpc = require('@grpc/grpc-js');
|
|
10
10
|
var control_pb = require('./control_pb.js');
|
|
11
11
|
|
|
12
|
+
function serialize_supervisor_CreateSSHKeyPairRequest(arg) {
|
|
13
|
+
if (!(arg instanceof control_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 control_pb.CreateSSHKeyPairRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function serialize_supervisor_CreateSSHKeyPairResponse(arg) {
|
|
24
|
+
if (!(arg instanceof control_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 control_pb.CreateSSHKeyPairResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
32
|
+
}
|
|
33
|
+
|
|
12
34
|
function serialize_supervisor_ExposePortRequest(arg) {
|
|
13
35
|
if (!(arg instanceof control_pb.ExposePortRequest)) {
|
|
14
36
|
throw new Error('Expected argument of type supervisor.ExposePortRequest');
|
|
@@ -46,6 +68,18 @@ exposePort: {
|
|
|
46
68
|
responseSerialize: serialize_supervisor_ExposePortResponse,
|
|
47
69
|
responseDeserialize: deserialize_supervisor_ExposePortResponse,
|
|
48
70
|
},
|
|
71
|
+
// CreateSSHKeyPair Create a pair of SSH Keys and put them in ~/.ssh/authorized_keys, this will only be generated once in the entire workspace lifecycle
|
|
72
|
+
createSSHKeyPair: {
|
|
73
|
+
path: '/supervisor.ControlService/CreateSSHKeyPair',
|
|
74
|
+
requestStream: false,
|
|
75
|
+
responseStream: false,
|
|
76
|
+
requestType: control_pb.CreateSSHKeyPairRequest,
|
|
77
|
+
responseType: control_pb.CreateSSHKeyPairResponse,
|
|
78
|
+
requestSerialize: serialize_supervisor_CreateSSHKeyPairRequest,
|
|
79
|
+
requestDeserialize: deserialize_supervisor_CreateSSHKeyPairRequest,
|
|
80
|
+
responseSerialize: serialize_supervisor_CreateSSHKeyPairResponse,
|
|
81
|
+
responseDeserialize: deserialize_supervisor_CreateSSHKeyPairResponse,
|
|
82
|
+
},
|
|
49
83
|
};
|
|
50
84
|
|
|
51
85
|
exports.ControlServiceClient = grpc.makeGenericClientConstructor(ControlServiceService);
|
package/lib/control_pb.d.ts
CHANGED
|
@@ -10,10 +10,6 @@ export class ExposePortRequest extends jspb.Message {
|
|
|
10
10
|
getPort(): number;
|
|
11
11
|
setPort(value: number): ExposePortRequest;
|
|
12
12
|
|
|
13
|
-
getTargetPort(): number;
|
|
14
|
-
setTargetPort(value: number): ExposePortRequest;
|
|
15
|
-
|
|
16
|
-
|
|
17
13
|
serializeBinary(): Uint8Array;
|
|
18
14
|
toObject(includeInstance?: boolean): ExposePortRequest.AsObject;
|
|
19
15
|
static toObject(includeInstance: boolean, msg: ExposePortRequest): ExposePortRequest.AsObject;
|
|
@@ -27,7 +23,6 @@ export class ExposePortRequest extends jspb.Message {
|
|
|
27
23
|
export namespace ExposePortRequest {
|
|
28
24
|
export type AsObject = {
|
|
29
25
|
port: number,
|
|
30
|
-
targetPort: number,
|
|
31
26
|
}
|
|
32
27
|
}
|
|
33
28
|
|
|
@@ -47,3 +42,40 @@ export namespace ExposePortResponse {
|
|
|
47
42
|
export type AsObject = {
|
|
48
43
|
}
|
|
49
44
|
}
|
|
45
|
+
|
|
46
|
+
export class CreateSSHKeyPairRequest extends jspb.Message {
|
|
47
|
+
|
|
48
|
+
serializeBinary(): Uint8Array;
|
|
49
|
+
toObject(includeInstance?: boolean): CreateSSHKeyPairRequest.AsObject;
|
|
50
|
+
static toObject(includeInstance: boolean, msg: CreateSSHKeyPairRequest): CreateSSHKeyPairRequest.AsObject;
|
|
51
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
52
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
53
|
+
static serializeBinaryToWriter(message: CreateSSHKeyPairRequest, writer: jspb.BinaryWriter): void;
|
|
54
|
+
static deserializeBinary(bytes: Uint8Array): CreateSSHKeyPairRequest;
|
|
55
|
+
static deserializeBinaryFromReader(message: CreateSSHKeyPairRequest, reader: jspb.BinaryReader): CreateSSHKeyPairRequest;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export namespace CreateSSHKeyPairRequest {
|
|
59
|
+
export type AsObject = {
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export class CreateSSHKeyPairResponse extends jspb.Message {
|
|
64
|
+
getPrivateKey(): string;
|
|
65
|
+
setPrivateKey(value: string): CreateSSHKeyPairResponse;
|
|
66
|
+
|
|
67
|
+
serializeBinary(): Uint8Array;
|
|
68
|
+
toObject(includeInstance?: boolean): CreateSSHKeyPairResponse.AsObject;
|
|
69
|
+
static toObject(includeInstance: boolean, msg: CreateSSHKeyPairResponse): CreateSSHKeyPairResponse.AsObject;
|
|
70
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
71
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
72
|
+
static serializeBinaryToWriter(message: CreateSSHKeyPairResponse, writer: jspb.BinaryWriter): void;
|
|
73
|
+
static deserializeBinary(bytes: Uint8Array): CreateSSHKeyPairResponse;
|
|
74
|
+
static deserializeBinaryFromReader(message: CreateSSHKeyPairResponse, reader: jspb.BinaryReader): CreateSSHKeyPairResponse;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export namespace CreateSSHKeyPairResponse {
|
|
78
|
+
export type AsObject = {
|
|
79
|
+
privateKey: string,
|
|
80
|
+
}
|
|
81
|
+
}
|
package/lib/control_pb.js
CHANGED
|
@@ -1,16 +1,28 @@
|
|
|
1
|
+
// source: control.proto
|
|
1
2
|
/**
|
|
2
3
|
* @fileoverview
|
|
3
4
|
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
4
6
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
5
7
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
6
8
|
* @public
|
|
7
9
|
*/
|
|
8
10
|
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
9
13
|
|
|
10
14
|
var jspb = require('google-protobuf');
|
|
11
15
|
var goog = jspb;
|
|
12
|
-
var global =
|
|
13
|
-
|
|
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);
|
|
14
26
|
goog.exportSymbol('proto.supervisor.ExposePortRequest', null, global);
|
|
15
27
|
goog.exportSymbol('proto.supervisor.ExposePortResponse', null, global);
|
|
16
28
|
/**
|
|
@@ -55,18 +67,62 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
55
67
|
*/
|
|
56
68
|
proto.supervisor.ExposePortResponse.displayName = 'proto.supervisor.ExposePortResponse';
|
|
57
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Generated by JsPbCodeGenerator.
|
|
72
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
73
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
74
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
75
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
76
|
+
* valid.
|
|
77
|
+
* @extends {jspb.Message}
|
|
78
|
+
* @constructor
|
|
79
|
+
*/
|
|
80
|
+
proto.supervisor.CreateSSHKeyPairRequest = function(opt_data) {
|
|
81
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
82
|
+
};
|
|
83
|
+
goog.inherits(proto.supervisor.CreateSSHKeyPairRequest, jspb.Message);
|
|
84
|
+
if (goog.DEBUG && !COMPILED) {
|
|
85
|
+
/**
|
|
86
|
+
* @public
|
|
87
|
+
* @override
|
|
88
|
+
*/
|
|
89
|
+
proto.supervisor.CreateSSHKeyPairRequest.displayName = 'proto.supervisor.CreateSSHKeyPairRequest';
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Generated by JsPbCodeGenerator.
|
|
93
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
94
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
95
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
96
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
97
|
+
* valid.
|
|
98
|
+
* @extends {jspb.Message}
|
|
99
|
+
* @constructor
|
|
100
|
+
*/
|
|
101
|
+
proto.supervisor.CreateSSHKeyPairResponse = function(opt_data) {
|
|
102
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
103
|
+
};
|
|
104
|
+
goog.inherits(proto.supervisor.CreateSSHKeyPairResponse, jspb.Message);
|
|
105
|
+
if (goog.DEBUG && !COMPILED) {
|
|
106
|
+
/**
|
|
107
|
+
* @public
|
|
108
|
+
* @override
|
|
109
|
+
*/
|
|
110
|
+
proto.supervisor.CreateSSHKeyPairResponse.displayName = 'proto.supervisor.CreateSSHKeyPairResponse';
|
|
111
|
+
}
|
|
58
112
|
|
|
59
113
|
|
|
60
114
|
|
|
61
115
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
62
116
|
/**
|
|
63
|
-
* Creates an object representation of this proto
|
|
117
|
+
* Creates an object representation of this proto.
|
|
64
118
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
119
|
+
* Optional fields that are not set will be set to undefined.
|
|
65
120
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
66
121
|
* For the list of reserved names please see:
|
|
67
|
-
*
|
|
68
|
-
* @param {boolean=} opt_includeInstance
|
|
69
|
-
* for transitional soy proto support:
|
|
122
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
123
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
124
|
+
* JSPB instance for transitional soy proto support:
|
|
125
|
+
* http://goto/soy-param-migration
|
|
70
126
|
* @return {!Object}
|
|
71
127
|
*/
|
|
72
128
|
proto.supervisor.ExposePortRequest.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -76,8 +132,8 @@ proto.supervisor.ExposePortRequest.prototype.toObject = function(opt_includeInst
|
|
|
76
132
|
|
|
77
133
|
/**
|
|
78
134
|
* Static version of the {@see toObject} method.
|
|
79
|
-
* @param {boolean|undefined} includeInstance Whether to include
|
|
80
|
-
* instance for transitional soy proto support:
|
|
135
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
136
|
+
* the JSPB instance for transitional soy proto support:
|
|
81
137
|
* http://goto/soy-param-migration
|
|
82
138
|
* @param {!proto.supervisor.ExposePortRequest} msg The msg instance to transform.
|
|
83
139
|
* @return {!Object}
|
|
@@ -85,8 +141,7 @@ proto.supervisor.ExposePortRequest.prototype.toObject = function(opt_includeInst
|
|
|
85
141
|
*/
|
|
86
142
|
proto.supervisor.ExposePortRequest.toObject = function(includeInstance, msg) {
|
|
87
143
|
var f, obj = {
|
|
88
|
-
port: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
89
|
-
targetPort: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
144
|
+
port: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
90
145
|
};
|
|
91
146
|
|
|
92
147
|
if (includeInstance) {
|
|
@@ -127,10 +182,6 @@ proto.supervisor.ExposePortRequest.deserializeBinaryFromReader = function(msg, r
|
|
|
127
182
|
var value = /** @type {number} */ (reader.readUint32());
|
|
128
183
|
msg.setPort(value);
|
|
129
184
|
break;
|
|
130
|
-
case 2:
|
|
131
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
132
|
-
msg.setTargetPort(value);
|
|
133
|
-
break;
|
|
134
185
|
default:
|
|
135
186
|
reader.skipField();
|
|
136
187
|
break;
|
|
@@ -167,13 +218,6 @@ proto.supervisor.ExposePortRequest.serializeBinaryToWriter = function(message, w
|
|
|
167
218
|
f
|
|
168
219
|
);
|
|
169
220
|
}
|
|
170
|
-
f = message.getTargetPort();
|
|
171
|
-
if (f !== 0) {
|
|
172
|
-
writer.writeUint32(
|
|
173
|
-
2,
|
|
174
|
-
f
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
221
|
};
|
|
178
222
|
|
|
179
223
|
|
|
@@ -186,24 +230,12 @@ proto.supervisor.ExposePortRequest.prototype.getPort = function() {
|
|
|
186
230
|
};
|
|
187
231
|
|
|
188
232
|
|
|
189
|
-
/** @param {number} value */
|
|
190
|
-
proto.supervisor.ExposePortRequest.prototype.setPort = function(value) {
|
|
191
|
-
jspb.Message.setProto3IntField(this, 1, value);
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
|
|
195
233
|
/**
|
|
196
|
-
*
|
|
197
|
-
* @return {
|
|
234
|
+
* @param {number} value
|
|
235
|
+
* @return {!proto.supervisor.ExposePortRequest} returns this
|
|
198
236
|
*/
|
|
199
|
-
proto.supervisor.ExposePortRequest.prototype.
|
|
200
|
-
return
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
/** @param {number} value */
|
|
205
|
-
proto.supervisor.ExposePortRequest.prototype.setTargetPort = function(value) {
|
|
206
|
-
jspb.Message.setProto3IntField(this, 2, value);
|
|
237
|
+
proto.supervisor.ExposePortRequest.prototype.setPort = function(value) {
|
|
238
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
207
239
|
};
|
|
208
240
|
|
|
209
241
|
|
|
@@ -212,13 +244,15 @@ proto.supervisor.ExposePortRequest.prototype.setTargetPort = function(value) {
|
|
|
212
244
|
|
|
213
245
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
214
246
|
/**
|
|
215
|
-
* Creates an object representation of this proto
|
|
247
|
+
* Creates an object representation of this proto.
|
|
216
248
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
249
|
+
* Optional fields that are not set will be set to undefined.
|
|
217
250
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
218
251
|
* For the list of reserved names please see:
|
|
219
|
-
*
|
|
220
|
-
* @param {boolean=} opt_includeInstance
|
|
221
|
-
* for transitional soy proto support:
|
|
252
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
253
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
254
|
+
* JSPB instance for transitional soy proto support:
|
|
255
|
+
* http://goto/soy-param-migration
|
|
222
256
|
* @return {!Object}
|
|
223
257
|
*/
|
|
224
258
|
proto.supervisor.ExposePortResponse.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -228,8 +262,8 @@ proto.supervisor.ExposePortResponse.prototype.toObject = function(opt_includeIns
|
|
|
228
262
|
|
|
229
263
|
/**
|
|
230
264
|
* Static version of the {@see toObject} method.
|
|
231
|
-
* @param {boolean|undefined} includeInstance Whether to include
|
|
232
|
-
* instance for transitional soy proto support:
|
|
265
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
266
|
+
* the JSPB instance for transitional soy proto support:
|
|
233
267
|
* http://goto/soy-param-migration
|
|
234
268
|
* @param {!proto.supervisor.ExposePortResponse} msg The msg instance to transform.
|
|
235
269
|
* @return {!Object}
|
|
@@ -306,4 +340,235 @@ proto.supervisor.ExposePortResponse.serializeBinaryToWriter = function(message,
|
|
|
306
340
|
};
|
|
307
341
|
|
|
308
342
|
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
347
|
+
/**
|
|
348
|
+
* Creates an object representation of this proto.
|
|
349
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
350
|
+
* Optional fields that are not set will be set to undefined.
|
|
351
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
352
|
+
* For the list of reserved names please see:
|
|
353
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
354
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
355
|
+
* JSPB instance for transitional soy proto support:
|
|
356
|
+
* http://goto/soy-param-migration
|
|
357
|
+
* @return {!Object}
|
|
358
|
+
*/
|
|
359
|
+
proto.supervisor.CreateSSHKeyPairRequest.prototype.toObject = function(opt_includeInstance) {
|
|
360
|
+
return proto.supervisor.CreateSSHKeyPairRequest.toObject(opt_includeInstance, this);
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Static version of the {@see toObject} method.
|
|
366
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
367
|
+
* the JSPB instance for transitional soy proto support:
|
|
368
|
+
* http://goto/soy-param-migration
|
|
369
|
+
* @param {!proto.supervisor.CreateSSHKeyPairRequest} msg The msg instance to transform.
|
|
370
|
+
* @return {!Object}
|
|
371
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
372
|
+
*/
|
|
373
|
+
proto.supervisor.CreateSSHKeyPairRequest.toObject = function(includeInstance, msg) {
|
|
374
|
+
var f, obj = {
|
|
375
|
+
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
if (includeInstance) {
|
|
379
|
+
obj.$jspbMessageInstance = msg;
|
|
380
|
+
}
|
|
381
|
+
return obj;
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Deserializes binary data (in protobuf wire format).
|
|
388
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
389
|
+
* @return {!proto.supervisor.CreateSSHKeyPairRequest}
|
|
390
|
+
*/
|
|
391
|
+
proto.supervisor.CreateSSHKeyPairRequest.deserializeBinary = function(bytes) {
|
|
392
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
393
|
+
var msg = new proto.supervisor.CreateSSHKeyPairRequest;
|
|
394
|
+
return proto.supervisor.CreateSSHKeyPairRequest.deserializeBinaryFromReader(msg, reader);
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
400
|
+
* given reader into the given message object.
|
|
401
|
+
* @param {!proto.supervisor.CreateSSHKeyPairRequest} msg The message object to deserialize into.
|
|
402
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
403
|
+
* @return {!proto.supervisor.CreateSSHKeyPairRequest}
|
|
404
|
+
*/
|
|
405
|
+
proto.supervisor.CreateSSHKeyPairRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
406
|
+
while (reader.nextField()) {
|
|
407
|
+
if (reader.isEndGroup()) {
|
|
408
|
+
break;
|
|
409
|
+
}
|
|
410
|
+
var field = reader.getFieldNumber();
|
|
411
|
+
switch (field) {
|
|
412
|
+
default:
|
|
413
|
+
reader.skipField();
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
return msg;
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
423
|
+
* @return {!Uint8Array}
|
|
424
|
+
*/
|
|
425
|
+
proto.supervisor.CreateSSHKeyPairRequest.prototype.serializeBinary = function() {
|
|
426
|
+
var writer = new jspb.BinaryWriter();
|
|
427
|
+
proto.supervisor.CreateSSHKeyPairRequest.serializeBinaryToWriter(this, writer);
|
|
428
|
+
return writer.getResultBuffer();
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
434
|
+
* format), writing to the given BinaryWriter.
|
|
435
|
+
* @param {!proto.supervisor.CreateSSHKeyPairRequest} message
|
|
436
|
+
* @param {!jspb.BinaryWriter} writer
|
|
437
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
438
|
+
*/
|
|
439
|
+
proto.supervisor.CreateSSHKeyPairRequest.serializeBinaryToWriter = function(message, writer) {
|
|
440
|
+
var f = undefined;
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
448
|
+
/**
|
|
449
|
+
* Creates an object representation of this proto.
|
|
450
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
451
|
+
* Optional fields that are not set will be set to undefined.
|
|
452
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
453
|
+
* For the list of reserved names please see:
|
|
454
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
455
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
456
|
+
* JSPB instance for transitional soy proto support:
|
|
457
|
+
* http://goto/soy-param-migration
|
|
458
|
+
* @return {!Object}
|
|
459
|
+
*/
|
|
460
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.toObject = function(opt_includeInstance) {
|
|
461
|
+
return proto.supervisor.CreateSSHKeyPairResponse.toObject(opt_includeInstance, this);
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Static version of the {@see toObject} method.
|
|
467
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
468
|
+
* the JSPB instance for transitional soy proto support:
|
|
469
|
+
* http://goto/soy-param-migration
|
|
470
|
+
* @param {!proto.supervisor.CreateSSHKeyPairResponse} msg The msg instance to transform.
|
|
471
|
+
* @return {!Object}
|
|
472
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
473
|
+
*/
|
|
474
|
+
proto.supervisor.CreateSSHKeyPairResponse.toObject = function(includeInstance, msg) {
|
|
475
|
+
var f, obj = {
|
|
476
|
+
privateKey: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
if (includeInstance) {
|
|
480
|
+
obj.$jspbMessageInstance = msg;
|
|
481
|
+
}
|
|
482
|
+
return obj;
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Deserializes binary data (in protobuf wire format).
|
|
489
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
490
|
+
* @return {!proto.supervisor.CreateSSHKeyPairResponse}
|
|
491
|
+
*/
|
|
492
|
+
proto.supervisor.CreateSSHKeyPairResponse.deserializeBinary = function(bytes) {
|
|
493
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
494
|
+
var msg = new proto.supervisor.CreateSSHKeyPairResponse;
|
|
495
|
+
return proto.supervisor.CreateSSHKeyPairResponse.deserializeBinaryFromReader(msg, reader);
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
501
|
+
* given reader into the given message object.
|
|
502
|
+
* @param {!proto.supervisor.CreateSSHKeyPairResponse} msg The message object to deserialize into.
|
|
503
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
504
|
+
* @return {!proto.supervisor.CreateSSHKeyPairResponse}
|
|
505
|
+
*/
|
|
506
|
+
proto.supervisor.CreateSSHKeyPairResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
507
|
+
while (reader.nextField()) {
|
|
508
|
+
if (reader.isEndGroup()) {
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
var field = reader.getFieldNumber();
|
|
512
|
+
switch (field) {
|
|
513
|
+
case 1:
|
|
514
|
+
var value = /** @type {string} */ (reader.readString());
|
|
515
|
+
msg.setPrivateKey(value);
|
|
516
|
+
break;
|
|
517
|
+
default:
|
|
518
|
+
reader.skipField();
|
|
519
|
+
break;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
return msg;
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
528
|
+
* @return {!Uint8Array}
|
|
529
|
+
*/
|
|
530
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.serializeBinary = function() {
|
|
531
|
+
var writer = new jspb.BinaryWriter();
|
|
532
|
+
proto.supervisor.CreateSSHKeyPairResponse.serializeBinaryToWriter(this, writer);
|
|
533
|
+
return writer.getResultBuffer();
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
539
|
+
* format), writing to the given BinaryWriter.
|
|
540
|
+
* @param {!proto.supervisor.CreateSSHKeyPairResponse} message
|
|
541
|
+
* @param {!jspb.BinaryWriter} writer
|
|
542
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
543
|
+
*/
|
|
544
|
+
proto.supervisor.CreateSSHKeyPairResponse.serializeBinaryToWriter = function(message, writer) {
|
|
545
|
+
var f = undefined;
|
|
546
|
+
f = message.getPrivateKey();
|
|
547
|
+
if (f.length > 0) {
|
|
548
|
+
writer.writeString(
|
|
549
|
+
1,
|
|
550
|
+
f
|
|
551
|
+
);
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* optional string private_key = 1;
|
|
558
|
+
* @return {string}
|
|
559
|
+
*/
|
|
560
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.getPrivateKey = function() {
|
|
561
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* @param {string} value
|
|
567
|
+
* @return {!proto.supervisor.CreateSSHKeyPairResponse} returns this
|
|
568
|
+
*/
|
|
569
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.setPrivateKey = function(value) {
|
|
570
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
571
|
+
};
|
|
572
|
+
|
|
573
|
+
|
|
309
574
|
goog.object.extend(exports, proto.supervisor);
|
package/lib/info_grpc_pb.d.ts
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
/* eslint-disable */
|
|
6
6
|
|
|
7
7
|
import * as grpc from "@grpc/grpc-js";
|
|
8
|
-
import {handleClientStreamingCall} from "@grpc/grpc-js/build/src/server-call";
|
|
9
8
|
import * as info_pb from "./info_pb";
|
|
10
9
|
|
|
11
10
|
interface IInfoServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|