@lansweeper/install-api-grpc 0.0.4 → 0.0.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/gen-proto/image.json +1 -1
- package/gen-proto/install_grpc_pb.d.ts +17 -0
- package/gen-proto/install_grpc_pb.js +33 -0
- package/gen-proto/install_pb.d.ts +70 -0
- package/gen-proto/install_pb.js +572 -0
- package/package.json +2 -2
- package/proto/install.proto +17 -0
package/gen-proto/image.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":[{"name":"proto/install.proto","package":"lansweeper.install.v1","messageType":[{"name":"SetPublicKeyRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"public_key","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"publicKey"},{"name":"signed_identity","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"signedIdentity"}]},{"name":"SetPublicKeyResponse"},{"name":"SetHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]},{"name":"SetHubCertificateResponse"}],"service":[{"name":"InstallService","method":[{"name":"SetPublicKey","inputType":".lansweeper.install.v1.SetPublicKeyRequest","outputType":".lansweeper.install.v1.SetPublicKeyResponse","options":{}},{"name":"SetHubCertificate","inputType":".lansweeper.install.v1.SetHubCertificateRequest","outputType":".lansweeper.install.v1.SetHubCertificateResponse","options":{}}]}],"sourceCodeInfo":{"location":[{"span":[0,0,
|
|
1
|
+
{"file":[{"name":"proto/install.proto","package":"lansweeper.install.v1","messageType":[{"name":"SetPublicKeyRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"public_key","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"publicKey"},{"name":"signed_identity","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"signedIdentity"}]},{"name":"SetPublicKeyResponse"},{"name":"SetHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]},{"name":"SetHubCertificateResponse"},{"name":"GetHubCertificatesRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_keys","number":2,"label":"LABEL_REPEATED","type":"TYPE_STRING","jsonName":"installKeys"}]},{"name":"GetHubCertificatesResponse","field":[{"name":"hub_certificates","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.HubCertificateInstallation","jsonName":"hubCertificates"}]},{"name":"HubCertificateInstallation","field":[{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]}],"service":[{"name":"InstallService","method":[{"name":"GetHubCertificates","inputType":".lansweeper.install.v1.GetHubCertificatesRequest","outputType":".lansweeper.install.v1.GetHubCertificatesResponse","options":{}},{"name":"SetPublicKey","inputType":".lansweeper.install.v1.SetPublicKeyRequest","outputType":".lansweeper.install.v1.SetPublicKeyResponse","options":{}},{"name":"SetHubCertificate","inputType":".lansweeper.install.v1.SetHubCertificateRequest","outputType":".lansweeper.install.v1.SetHubCertificateResponse","options":{}}]}],"options":{"goPackage":"./generated-go"},"sourceCodeInfo":{"location":[{"span":[0,0,43,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,30]},{"path":[8],"span":[4,0,37]},{"path":[8,11],"span":[4,0,37]},{"path":[4,0],"span":[6,0,11,1]},{"path":[4,0,1],"span":[6,8,27]},{"path":[4,0,2,0],"span":[7,2,21]},{"path":[4,0,2,0,5],"span":[7,2,8]},{"path":[4,0,2,0,1],"span":[7,9,16]},{"path":[4,0,2,0,3],"span":[7,19,20]},{"path":[4,0,2,1],"span":[8,2,25]},{"path":[4,0,2,1,5],"span":[8,2,8]},{"path":[4,0,2,1,1],"span":[8,9,20]},{"path":[4,0,2,1,3],"span":[8,23,24]},{"path":[4,0,2,2],"span":[9,2,24]},{"path":[4,0,2,2,5],"span":[9,2,8]},{"path":[4,0,2,2,1],"span":[9,9,19]},{"path":[4,0,2,2,3],"span":[9,22,23]},{"path":[4,0,2,3],"span":[10,2,29]},{"path":[4,0,2,3,5],"span":[10,2,8]},{"path":[4,0,2,3,1],"span":[10,9,24]},{"path":[4,0,2,3,3],"span":[10,27,28]},{"path":[4,1],"span":[13,0,14,1]},{"path":[4,1,1],"span":[13,8,28]},{"path":[4,2],"span":[16,0,20,1]},{"path":[4,2,1],"span":[16,8,32]},{"path":[4,2,2,0],"span":[17,2,21]},{"path":[4,2,2,0,5],"span":[17,2,8]},{"path":[4,2,2,0,1],"span":[17,9,16]},{"path":[4,2,2,0,3],"span":[17,19,20]},{"path":[4,2,2,1],"span":[18,2,25]},{"path":[4,2,2,1,5],"span":[18,2,8]},{"path":[4,2,2,1,1],"span":[18,9,20]},{"path":[4,2,2,1,3],"span":[18,23,24]},{"path":[4,2,2,2],"span":[19,2,29]},{"path":[4,2,2,2,5],"span":[19,2,8]},{"path":[4,2,2,2,1],"span":[19,9,24]},{"path":[4,2,2,2,3],"span":[19,27,28]},{"path":[4,3],"span":[22,0,23,1]},{"path":[4,3,1],"span":[22,8,33]},{"path":[4,4],"span":[25,0,28,1]},{"path":[4,4,1],"span":[25,8,33]},{"path":[4,4,2,0],"span":[26,2,21]},{"path":[4,4,2,0,5],"span":[26,2,8]},{"path":[4,4,2,0,1],"span":[26,9,16]},{"path":[4,4,2,0,3],"span":[26,19,20]},{"path":[4,4,2,1],"span":[27,2,35]},{"path":[4,4,2,1,4],"span":[27,2,10]},{"path":[4,4,2,1,5],"span":[27,11,17]},{"path":[4,4,2,1,1],"span":[27,18,30]},{"path":[4,4,2,1,3],"span":[27,33,34]},{"path":[4,5],"span":[30,0,32,1]},{"path":[4,5,1],"span":[30,8,34]},{"path":[4,5,2,0],"span":[31,2,59]},{"path":[4,5,2,0,4],"span":[31,2,10]},{"path":[4,5,2,0,6],"span":[31,11,37]},{"path":[4,5,2,0,1],"span":[31,38,54]},{"path":[4,5,2,0,3],"span":[31,57,58]},{"path":[4,6],"span":[34,0,37,1]},{"path":[4,6,1],"span":[34,8,34]},{"path":[4,6,2,0],"span":[35,2,25]},{"path":[4,6,2,0,5],"span":[35,2,8]},{"path":[4,6,2,0,1],"span":[35,9,20]},{"path":[4,6,2,0,3],"span":[35,23,24]},{"path":[4,6,2,1],"span":[36,2,29]},{"path":[4,6,2,1,5],"span":[36,2,8]},{"path":[4,6,2,1,1],"span":[36,9,24]},{"path":[4,6,2,1,3],"span":[36,27,28]},{"path":[6,0],"span":[39,0,43,1]},{"path":[6,0,1],"span":[39,8,22]},{"path":[6,0,2,0],"span":[40,2,91]},{"path":[6,0,2,0,1],"span":[40,6,24]},{"path":[6,0,2,0,2],"span":[40,25,50]},{"path":[6,0,2,0,3],"span":[40,61,87]},{"path":[6,0,2,1],"span":[41,2,73]},{"path":[6,0,2,1,1],"span":[41,6,18]},{"path":[6,0,2,1,2],"span":[41,19,38]},{"path":[6,0,2,1,3],"span":[41,49,69]},{"path":[6,0,2,2],"span":[42,2,88]},{"path":[6,0,2,2,1],"span":[42,6,23]},{"path":[6,0,2,2,2],"span":[42,24,48]},{"path":[6,0,2,2,3],"span":[42,59,84]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
|
|
@@ -8,10 +8,20 @@ import * as grpc from "@grpc/grpc-js";
|
|
|
8
8
|
import * as install_pb from "./install_pb";
|
|
9
9
|
|
|
10
10
|
interface IInstallServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
11
|
+
getHubCertificates: IInstallServiceService_IGetHubCertificates;
|
|
11
12
|
setPublicKey: IInstallServiceService_ISetPublicKey;
|
|
12
13
|
setHubCertificate: IInstallServiceService_ISetHubCertificate;
|
|
13
14
|
}
|
|
14
15
|
|
|
16
|
+
interface IInstallServiceService_IGetHubCertificates extends grpc.MethodDefinition<install_pb.GetHubCertificatesRequest, install_pb.GetHubCertificatesResponse> {
|
|
17
|
+
path: "/lansweeper.install.v1.InstallService/GetHubCertificates";
|
|
18
|
+
requestStream: false;
|
|
19
|
+
responseStream: false;
|
|
20
|
+
requestSerialize: grpc.serialize<install_pb.GetHubCertificatesRequest>;
|
|
21
|
+
requestDeserialize: grpc.deserialize<install_pb.GetHubCertificatesRequest>;
|
|
22
|
+
responseSerialize: grpc.serialize<install_pb.GetHubCertificatesResponse>;
|
|
23
|
+
responseDeserialize: grpc.deserialize<install_pb.GetHubCertificatesResponse>;
|
|
24
|
+
}
|
|
15
25
|
interface IInstallServiceService_ISetPublicKey extends grpc.MethodDefinition<install_pb.SetPublicKeyRequest, install_pb.SetPublicKeyResponse> {
|
|
16
26
|
path: "/lansweeper.install.v1.InstallService/SetPublicKey";
|
|
17
27
|
requestStream: false;
|
|
@@ -34,11 +44,15 @@ interface IInstallServiceService_ISetHubCertificate extends grpc.MethodDefinitio
|
|
|
34
44
|
export const InstallServiceService: IInstallServiceService;
|
|
35
45
|
|
|
36
46
|
export interface IInstallServiceServer extends grpc.UntypedServiceImplementation {
|
|
47
|
+
getHubCertificates: grpc.handleUnaryCall<install_pb.GetHubCertificatesRequest, install_pb.GetHubCertificatesResponse>;
|
|
37
48
|
setPublicKey: grpc.handleUnaryCall<install_pb.SetPublicKeyRequest, install_pb.SetPublicKeyResponse>;
|
|
38
49
|
setHubCertificate: grpc.handleUnaryCall<install_pb.SetHubCertificateRequest, install_pb.SetHubCertificateResponse>;
|
|
39
50
|
}
|
|
40
51
|
|
|
41
52
|
export interface IInstallServiceClient {
|
|
53
|
+
getHubCertificates(request: install_pb.GetHubCertificatesRequest, callback: (error: grpc.ServiceError | null, response: install_pb.GetHubCertificatesResponse) => void): grpc.ClientUnaryCall;
|
|
54
|
+
getHubCertificates(request: install_pb.GetHubCertificatesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.GetHubCertificatesResponse) => void): grpc.ClientUnaryCall;
|
|
55
|
+
getHubCertificates(request: install_pb.GetHubCertificatesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.GetHubCertificatesResponse) => void): grpc.ClientUnaryCall;
|
|
42
56
|
setPublicKey(request: install_pb.SetPublicKeyRequest, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
43
57
|
setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
44
58
|
setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -49,6 +63,9 @@ export interface IInstallServiceClient {
|
|
|
49
63
|
|
|
50
64
|
export class InstallServiceClient extends grpc.Client implements IInstallServiceClient {
|
|
51
65
|
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
66
|
+
public getHubCertificates(request: install_pb.GetHubCertificatesRequest, callback: (error: grpc.ServiceError | null, response: install_pb.GetHubCertificatesResponse) => void): grpc.ClientUnaryCall;
|
|
67
|
+
public getHubCertificates(request: install_pb.GetHubCertificatesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.GetHubCertificatesResponse) => void): grpc.ClientUnaryCall;
|
|
68
|
+
public getHubCertificates(request: install_pb.GetHubCertificatesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.GetHubCertificatesResponse) => void): grpc.ClientUnaryCall;
|
|
52
69
|
public setPublicKey(request: install_pb.SetPublicKeyRequest, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
53
70
|
public setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
54
71
|
public setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -4,6 +4,28 @@
|
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var install_pb = require('./install_pb.js');
|
|
6
6
|
|
|
7
|
+
function serialize_lansweeper_install_v1_GetHubCertificatesRequest(arg) {
|
|
8
|
+
if (!(arg instanceof install_pb.GetHubCertificatesRequest)) {
|
|
9
|
+
throw new Error('Expected argument of type lansweeper.install.v1.GetHubCertificatesRequest');
|
|
10
|
+
}
|
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function deserialize_lansweeper_install_v1_GetHubCertificatesRequest(buffer_arg) {
|
|
15
|
+
return install_pb.GetHubCertificatesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function serialize_lansweeper_install_v1_GetHubCertificatesResponse(arg) {
|
|
19
|
+
if (!(arg instanceof install_pb.GetHubCertificatesResponse)) {
|
|
20
|
+
throw new Error('Expected argument of type lansweeper.install.v1.GetHubCertificatesResponse');
|
|
21
|
+
}
|
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function deserialize_lansweeper_install_v1_GetHubCertificatesResponse(buffer_arg) {
|
|
26
|
+
return install_pb.GetHubCertificatesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
|
+
}
|
|
28
|
+
|
|
7
29
|
function serialize_lansweeper_install_v1_SetHubCertificateRequest(arg) {
|
|
8
30
|
if (!(arg instanceof install_pb.SetHubCertificateRequest)) {
|
|
9
31
|
throw new Error('Expected argument of type lansweeper.install.v1.SetHubCertificateRequest');
|
|
@@ -50,6 +72,17 @@ function deserialize_lansweeper_install_v1_SetPublicKeyResponse(buffer_arg) {
|
|
|
50
72
|
|
|
51
73
|
|
|
52
74
|
var InstallServiceService = exports.InstallServiceService = {
|
|
75
|
+
getHubCertificates: {
|
|
76
|
+
path: '/lansweeper.install.v1.InstallService/GetHubCertificates',
|
|
77
|
+
requestStream: false,
|
|
78
|
+
responseStream: false,
|
|
79
|
+
requestType: install_pb.GetHubCertificatesRequest,
|
|
80
|
+
responseType: install_pb.GetHubCertificatesResponse,
|
|
81
|
+
requestSerialize: serialize_lansweeper_install_v1_GetHubCertificatesRequest,
|
|
82
|
+
requestDeserialize: deserialize_lansweeper_install_v1_GetHubCertificatesRequest,
|
|
83
|
+
responseSerialize: serialize_lansweeper_install_v1_GetHubCertificatesResponse,
|
|
84
|
+
responseDeserialize: deserialize_lansweeper_install_v1_GetHubCertificatesResponse,
|
|
85
|
+
},
|
|
53
86
|
setPublicKey: {
|
|
54
87
|
path: '/lansweeper.install.v1.InstallService/SetPublicKey',
|
|
55
88
|
requestStream: false,
|
|
@@ -94,3 +94,73 @@ export namespace SetHubCertificateResponse {
|
|
|
94
94
|
export type AsObject = {
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
+
|
|
98
|
+
export class GetHubCertificatesRequest extends jspb.Message {
|
|
99
|
+
getSiteId(): string;
|
|
100
|
+
setSiteId(value: string): GetHubCertificatesRequest;
|
|
101
|
+
clearInstallKeysList(): void;
|
|
102
|
+
getInstallKeysList(): Array<string>;
|
|
103
|
+
setInstallKeysList(value: Array<string>): GetHubCertificatesRequest;
|
|
104
|
+
addInstallKeys(value: string, index?: number): string;
|
|
105
|
+
|
|
106
|
+
serializeBinary(): Uint8Array;
|
|
107
|
+
toObject(includeInstance?: boolean): GetHubCertificatesRequest.AsObject;
|
|
108
|
+
static toObject(includeInstance: boolean, msg: GetHubCertificatesRequest): GetHubCertificatesRequest.AsObject;
|
|
109
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
110
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
111
|
+
static serializeBinaryToWriter(message: GetHubCertificatesRequest, writer: jspb.BinaryWriter): void;
|
|
112
|
+
static deserializeBinary(bytes: Uint8Array): GetHubCertificatesRequest;
|
|
113
|
+
static deserializeBinaryFromReader(message: GetHubCertificatesRequest, reader: jspb.BinaryReader): GetHubCertificatesRequest;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export namespace GetHubCertificatesRequest {
|
|
117
|
+
export type AsObject = {
|
|
118
|
+
siteId: string,
|
|
119
|
+
installKeysList: Array<string>,
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export class GetHubCertificatesResponse extends jspb.Message {
|
|
124
|
+
clearHubCertificatesList(): void;
|
|
125
|
+
getHubCertificatesList(): Array<HubCertificateInstallation>;
|
|
126
|
+
setHubCertificatesList(value: Array<HubCertificateInstallation>): GetHubCertificatesResponse;
|
|
127
|
+
addHubCertificates(value?: HubCertificateInstallation, index?: number): HubCertificateInstallation;
|
|
128
|
+
|
|
129
|
+
serializeBinary(): Uint8Array;
|
|
130
|
+
toObject(includeInstance?: boolean): GetHubCertificatesResponse.AsObject;
|
|
131
|
+
static toObject(includeInstance: boolean, msg: GetHubCertificatesResponse): GetHubCertificatesResponse.AsObject;
|
|
132
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
133
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
134
|
+
static serializeBinaryToWriter(message: GetHubCertificatesResponse, writer: jspb.BinaryWriter): void;
|
|
135
|
+
static deserializeBinary(bytes: Uint8Array): GetHubCertificatesResponse;
|
|
136
|
+
static deserializeBinaryFromReader(message: GetHubCertificatesResponse, reader: jspb.BinaryReader): GetHubCertificatesResponse;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export namespace GetHubCertificatesResponse {
|
|
140
|
+
export type AsObject = {
|
|
141
|
+
hubCertificatesList: Array<HubCertificateInstallation.AsObject>,
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export class HubCertificateInstallation extends jspb.Message {
|
|
146
|
+
getInstallKey(): string;
|
|
147
|
+
setInstallKey(value: string): HubCertificateInstallation;
|
|
148
|
+
getHubCertificate(): string;
|
|
149
|
+
setHubCertificate(value: string): HubCertificateInstallation;
|
|
150
|
+
|
|
151
|
+
serializeBinary(): Uint8Array;
|
|
152
|
+
toObject(includeInstance?: boolean): HubCertificateInstallation.AsObject;
|
|
153
|
+
static toObject(includeInstance: boolean, msg: HubCertificateInstallation): HubCertificateInstallation.AsObject;
|
|
154
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
155
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
156
|
+
static serializeBinaryToWriter(message: HubCertificateInstallation, writer: jspb.BinaryWriter): void;
|
|
157
|
+
static deserializeBinary(bytes: Uint8Array): HubCertificateInstallation;
|
|
158
|
+
static deserializeBinaryFromReader(message: HubCertificateInstallation, reader: jspb.BinaryReader): HubCertificateInstallation;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export namespace HubCertificateInstallation {
|
|
162
|
+
export type AsObject = {
|
|
163
|
+
installKey: string,
|
|
164
|
+
hubCertificate: string,
|
|
165
|
+
}
|
|
166
|
+
}
|
package/gen-proto/install_pb.js
CHANGED
|
@@ -21,6 +21,9 @@ var global = (function() {
|
|
|
21
21
|
return Function('return this')();
|
|
22
22
|
}.call(null));
|
|
23
23
|
|
|
24
|
+
goog.exportSymbol('proto.lansweeper.install.v1.GetHubCertificatesRequest', null, global);
|
|
25
|
+
goog.exportSymbol('proto.lansweeper.install.v1.GetHubCertificatesResponse', null, global);
|
|
26
|
+
goog.exportSymbol('proto.lansweeper.install.v1.HubCertificateInstallation', null, global);
|
|
24
27
|
goog.exportSymbol('proto.lansweeper.install.v1.SetHubCertificateRequest', null, global);
|
|
25
28
|
goog.exportSymbol('proto.lansweeper.install.v1.SetHubCertificateResponse', null, global);
|
|
26
29
|
goog.exportSymbol('proto.lansweeper.install.v1.SetPublicKeyRequest', null, global);
|
|
@@ -109,6 +112,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
109
112
|
*/
|
|
110
113
|
proto.lansweeper.install.v1.SetHubCertificateResponse.displayName = 'proto.lansweeper.install.v1.SetHubCertificateResponse';
|
|
111
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* Generated by JsPbCodeGenerator.
|
|
117
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
118
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
119
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
120
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
121
|
+
* valid.
|
|
122
|
+
* @extends {jspb.Message}
|
|
123
|
+
* @constructor
|
|
124
|
+
*/
|
|
125
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest = function(opt_data) {
|
|
126
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.install.v1.GetHubCertificatesRequest.repeatedFields_, null);
|
|
127
|
+
};
|
|
128
|
+
goog.inherits(proto.lansweeper.install.v1.GetHubCertificatesRequest, jspb.Message);
|
|
129
|
+
if (goog.DEBUG && !COMPILED) {
|
|
130
|
+
/**
|
|
131
|
+
* @public
|
|
132
|
+
* @override
|
|
133
|
+
*/
|
|
134
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.displayName = 'proto.lansweeper.install.v1.GetHubCertificatesRequest';
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Generated by JsPbCodeGenerator.
|
|
138
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
139
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
140
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
141
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
142
|
+
* valid.
|
|
143
|
+
* @extends {jspb.Message}
|
|
144
|
+
* @constructor
|
|
145
|
+
*/
|
|
146
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse = function(opt_data) {
|
|
147
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.install.v1.GetHubCertificatesResponse.repeatedFields_, null);
|
|
148
|
+
};
|
|
149
|
+
goog.inherits(proto.lansweeper.install.v1.GetHubCertificatesResponse, jspb.Message);
|
|
150
|
+
if (goog.DEBUG && !COMPILED) {
|
|
151
|
+
/**
|
|
152
|
+
* @public
|
|
153
|
+
* @override
|
|
154
|
+
*/
|
|
155
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.displayName = 'proto.lansweeper.install.v1.GetHubCertificatesResponse';
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Generated by JsPbCodeGenerator.
|
|
159
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
160
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
161
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
162
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
163
|
+
* valid.
|
|
164
|
+
* @extends {jspb.Message}
|
|
165
|
+
* @constructor
|
|
166
|
+
*/
|
|
167
|
+
proto.lansweeper.install.v1.HubCertificateInstallation = function(opt_data) {
|
|
168
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
169
|
+
};
|
|
170
|
+
goog.inherits(proto.lansweeper.install.v1.HubCertificateInstallation, jspb.Message);
|
|
171
|
+
if (goog.DEBUG && !COMPILED) {
|
|
172
|
+
/**
|
|
173
|
+
* @public
|
|
174
|
+
* @override
|
|
175
|
+
*/
|
|
176
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.displayName = 'proto.lansweeper.install.v1.HubCertificateInstallation';
|
|
177
|
+
}
|
|
112
178
|
|
|
113
179
|
|
|
114
180
|
|
|
@@ -721,4 +787,510 @@ proto.lansweeper.install.v1.SetHubCertificateResponse.serializeBinaryToWriter =
|
|
|
721
787
|
};
|
|
722
788
|
|
|
723
789
|
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* List of repeated fields within this message type.
|
|
793
|
+
* @private {!Array<number>}
|
|
794
|
+
* @const
|
|
795
|
+
*/
|
|
796
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.repeatedFields_ = [2];
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
801
|
+
/**
|
|
802
|
+
* Creates an object representation of this proto.
|
|
803
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
804
|
+
* Optional fields that are not set will be set to undefined.
|
|
805
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
806
|
+
* For the list of reserved names please see:
|
|
807
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
808
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
809
|
+
* JSPB instance for transitional soy proto support:
|
|
810
|
+
* http://goto/soy-param-migration
|
|
811
|
+
* @return {!Object}
|
|
812
|
+
*/
|
|
813
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
814
|
+
return proto.lansweeper.install.v1.GetHubCertificatesRequest.toObject(opt_includeInstance, this);
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* Static version of the {@see toObject} method.
|
|
820
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
821
|
+
* the JSPB instance for transitional soy proto support:
|
|
822
|
+
* http://goto/soy-param-migration
|
|
823
|
+
* @param {!proto.lansweeper.install.v1.GetHubCertificatesRequest} msg The msg instance to transform.
|
|
824
|
+
* @return {!Object}
|
|
825
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
826
|
+
*/
|
|
827
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.toObject = function(includeInstance, msg) {
|
|
828
|
+
var f, obj = {
|
|
829
|
+
siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
830
|
+
installKeysList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
if (includeInstance) {
|
|
834
|
+
obj.$jspbMessageInstance = msg;
|
|
835
|
+
}
|
|
836
|
+
return obj;
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Deserializes binary data (in protobuf wire format).
|
|
843
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
844
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest}
|
|
845
|
+
*/
|
|
846
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.deserializeBinary = function(bytes) {
|
|
847
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
848
|
+
var msg = new proto.lansweeper.install.v1.GetHubCertificatesRequest;
|
|
849
|
+
return proto.lansweeper.install.v1.GetHubCertificatesRequest.deserializeBinaryFromReader(msg, reader);
|
|
850
|
+
};
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
855
|
+
* given reader into the given message object.
|
|
856
|
+
* @param {!proto.lansweeper.install.v1.GetHubCertificatesRequest} msg The message object to deserialize into.
|
|
857
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
858
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest}
|
|
859
|
+
*/
|
|
860
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
861
|
+
while (reader.nextField()) {
|
|
862
|
+
if (reader.isEndGroup()) {
|
|
863
|
+
break;
|
|
864
|
+
}
|
|
865
|
+
var field = reader.getFieldNumber();
|
|
866
|
+
switch (field) {
|
|
867
|
+
case 1:
|
|
868
|
+
var value = /** @type {string} */ (reader.readString());
|
|
869
|
+
msg.setSiteId(value);
|
|
870
|
+
break;
|
|
871
|
+
case 2:
|
|
872
|
+
var value = /** @type {string} */ (reader.readString());
|
|
873
|
+
msg.addInstallKeys(value);
|
|
874
|
+
break;
|
|
875
|
+
default:
|
|
876
|
+
reader.skipField();
|
|
877
|
+
break;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
return msg;
|
|
881
|
+
};
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
886
|
+
* @return {!Uint8Array}
|
|
887
|
+
*/
|
|
888
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.serializeBinary = function() {
|
|
889
|
+
var writer = new jspb.BinaryWriter();
|
|
890
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.serializeBinaryToWriter(this, writer);
|
|
891
|
+
return writer.getResultBuffer();
|
|
892
|
+
};
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
897
|
+
* format), writing to the given BinaryWriter.
|
|
898
|
+
* @param {!proto.lansweeper.install.v1.GetHubCertificatesRequest} message
|
|
899
|
+
* @param {!jspb.BinaryWriter} writer
|
|
900
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
901
|
+
*/
|
|
902
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
903
|
+
var f = undefined;
|
|
904
|
+
f = message.getSiteId();
|
|
905
|
+
if (f.length > 0) {
|
|
906
|
+
writer.writeString(
|
|
907
|
+
1,
|
|
908
|
+
f
|
|
909
|
+
);
|
|
910
|
+
}
|
|
911
|
+
f = message.getInstallKeysList();
|
|
912
|
+
if (f.length > 0) {
|
|
913
|
+
writer.writeRepeatedString(
|
|
914
|
+
2,
|
|
915
|
+
f
|
|
916
|
+
);
|
|
917
|
+
}
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* optional string site_id = 1;
|
|
923
|
+
* @return {string}
|
|
924
|
+
*/
|
|
925
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.getSiteId = function() {
|
|
926
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
927
|
+
};
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* @param {string} value
|
|
932
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest} returns this
|
|
933
|
+
*/
|
|
934
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.setSiteId = function(value) {
|
|
935
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
936
|
+
};
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* repeated string install_keys = 2;
|
|
941
|
+
* @return {!Array<string>}
|
|
942
|
+
*/
|
|
943
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.getInstallKeysList = function() {
|
|
944
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* @param {!Array<string>} value
|
|
950
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest} returns this
|
|
951
|
+
*/
|
|
952
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.setInstallKeysList = function(value) {
|
|
953
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
954
|
+
};
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* @param {string} value
|
|
959
|
+
* @param {number=} opt_index
|
|
960
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest} returns this
|
|
961
|
+
*/
|
|
962
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.addInstallKeys = function(value, opt_index) {
|
|
963
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* Clears the list making it empty but non-null.
|
|
969
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest} returns this
|
|
970
|
+
*/
|
|
971
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.clearInstallKeysList = function() {
|
|
972
|
+
return this.setInstallKeysList([]);
|
|
973
|
+
};
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* List of repeated fields within this message type.
|
|
979
|
+
* @private {!Array<number>}
|
|
980
|
+
* @const
|
|
981
|
+
*/
|
|
982
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.repeatedFields_ = [1];
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
987
|
+
/**
|
|
988
|
+
* Creates an object representation of this proto.
|
|
989
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
990
|
+
* Optional fields that are not set will be set to undefined.
|
|
991
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
992
|
+
* For the list of reserved names please see:
|
|
993
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
994
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
995
|
+
* JSPB instance for transitional soy proto support:
|
|
996
|
+
* http://goto/soy-param-migration
|
|
997
|
+
* @return {!Object}
|
|
998
|
+
*/
|
|
999
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1000
|
+
return proto.lansweeper.install.v1.GetHubCertificatesResponse.toObject(opt_includeInstance, this);
|
|
1001
|
+
};
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* Static version of the {@see toObject} method.
|
|
1006
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1007
|
+
* the JSPB instance for transitional soy proto support:
|
|
1008
|
+
* http://goto/soy-param-migration
|
|
1009
|
+
* @param {!proto.lansweeper.install.v1.GetHubCertificatesResponse} msg The msg instance to transform.
|
|
1010
|
+
* @return {!Object}
|
|
1011
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1012
|
+
*/
|
|
1013
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.toObject = function(includeInstance, msg) {
|
|
1014
|
+
var f, obj = {
|
|
1015
|
+
hubCertificatesList: jspb.Message.toObjectList(msg.getHubCertificatesList(),
|
|
1016
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.toObject, includeInstance)
|
|
1017
|
+
};
|
|
1018
|
+
|
|
1019
|
+
if (includeInstance) {
|
|
1020
|
+
obj.$jspbMessageInstance = msg;
|
|
1021
|
+
}
|
|
1022
|
+
return obj;
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1029
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1030
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesResponse}
|
|
1031
|
+
*/
|
|
1032
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.deserializeBinary = function(bytes) {
|
|
1033
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1034
|
+
var msg = new proto.lansweeper.install.v1.GetHubCertificatesResponse;
|
|
1035
|
+
return proto.lansweeper.install.v1.GetHubCertificatesResponse.deserializeBinaryFromReader(msg, reader);
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1041
|
+
* given reader into the given message object.
|
|
1042
|
+
* @param {!proto.lansweeper.install.v1.GetHubCertificatesResponse} msg The message object to deserialize into.
|
|
1043
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1044
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesResponse}
|
|
1045
|
+
*/
|
|
1046
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1047
|
+
while (reader.nextField()) {
|
|
1048
|
+
if (reader.isEndGroup()) {
|
|
1049
|
+
break;
|
|
1050
|
+
}
|
|
1051
|
+
var field = reader.getFieldNumber();
|
|
1052
|
+
switch (field) {
|
|
1053
|
+
case 1:
|
|
1054
|
+
var value = new proto.lansweeper.install.v1.HubCertificateInstallation;
|
|
1055
|
+
reader.readMessage(value,proto.lansweeper.install.v1.HubCertificateInstallation.deserializeBinaryFromReader);
|
|
1056
|
+
msg.addHubCertificates(value);
|
|
1057
|
+
break;
|
|
1058
|
+
default:
|
|
1059
|
+
reader.skipField();
|
|
1060
|
+
break;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
return msg;
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1069
|
+
* @return {!Uint8Array}
|
|
1070
|
+
*/
|
|
1071
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.serializeBinary = function() {
|
|
1072
|
+
var writer = new jspb.BinaryWriter();
|
|
1073
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.serializeBinaryToWriter(this, writer);
|
|
1074
|
+
return writer.getResultBuffer();
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1080
|
+
* format), writing to the given BinaryWriter.
|
|
1081
|
+
* @param {!proto.lansweeper.install.v1.GetHubCertificatesResponse} message
|
|
1082
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1083
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1084
|
+
*/
|
|
1085
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1086
|
+
var f = undefined;
|
|
1087
|
+
f = message.getHubCertificatesList();
|
|
1088
|
+
if (f.length > 0) {
|
|
1089
|
+
writer.writeRepeatedMessage(
|
|
1090
|
+
1,
|
|
1091
|
+
f,
|
|
1092
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.serializeBinaryToWriter
|
|
1093
|
+
);
|
|
1094
|
+
}
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* repeated HubCertificateInstallation hub_certificates = 1;
|
|
1100
|
+
* @return {!Array<!proto.lansweeper.install.v1.HubCertificateInstallation>}
|
|
1101
|
+
*/
|
|
1102
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.getHubCertificatesList = function() {
|
|
1103
|
+
return /** @type{!Array<!proto.lansweeper.install.v1.HubCertificateInstallation>} */ (
|
|
1104
|
+
jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.install.v1.HubCertificateInstallation, 1));
|
|
1105
|
+
};
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* @param {!Array<!proto.lansweeper.install.v1.HubCertificateInstallation>} value
|
|
1110
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesResponse} returns this
|
|
1111
|
+
*/
|
|
1112
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.setHubCertificatesList = function(value) {
|
|
1113
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* @param {!proto.lansweeper.install.v1.HubCertificateInstallation=} opt_value
|
|
1119
|
+
* @param {number=} opt_index
|
|
1120
|
+
* @return {!proto.lansweeper.install.v1.HubCertificateInstallation}
|
|
1121
|
+
*/
|
|
1122
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.addHubCertificates = function(opt_value, opt_index) {
|
|
1123
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.install.v1.HubCertificateInstallation, opt_index);
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* Clears the list making it empty but non-null.
|
|
1129
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesResponse} returns this
|
|
1130
|
+
*/
|
|
1131
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.clearHubCertificatesList = function() {
|
|
1132
|
+
return this.setHubCertificatesList([]);
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1140
|
+
/**
|
|
1141
|
+
* Creates an object representation of this proto.
|
|
1142
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1143
|
+
* Optional fields that are not set will be set to undefined.
|
|
1144
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1145
|
+
* For the list of reserved names please see:
|
|
1146
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1147
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1148
|
+
* JSPB instance for transitional soy proto support:
|
|
1149
|
+
* http://goto/soy-param-migration
|
|
1150
|
+
* @return {!Object}
|
|
1151
|
+
*/
|
|
1152
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.prototype.toObject = function(opt_includeInstance) {
|
|
1153
|
+
return proto.lansweeper.install.v1.HubCertificateInstallation.toObject(opt_includeInstance, this);
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* Static version of the {@see toObject} method.
|
|
1159
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1160
|
+
* the JSPB instance for transitional soy proto support:
|
|
1161
|
+
* http://goto/soy-param-migration
|
|
1162
|
+
* @param {!proto.lansweeper.install.v1.HubCertificateInstallation} msg The msg instance to transform.
|
|
1163
|
+
* @return {!Object}
|
|
1164
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1165
|
+
*/
|
|
1166
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.toObject = function(includeInstance, msg) {
|
|
1167
|
+
var f, obj = {
|
|
1168
|
+
installKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1169
|
+
hubCertificate: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1172
|
+
if (includeInstance) {
|
|
1173
|
+
obj.$jspbMessageInstance = msg;
|
|
1174
|
+
}
|
|
1175
|
+
return obj;
|
|
1176
|
+
};
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1182
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1183
|
+
* @return {!proto.lansweeper.install.v1.HubCertificateInstallation}
|
|
1184
|
+
*/
|
|
1185
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.deserializeBinary = function(bytes) {
|
|
1186
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1187
|
+
var msg = new proto.lansweeper.install.v1.HubCertificateInstallation;
|
|
1188
|
+
return proto.lansweeper.install.v1.HubCertificateInstallation.deserializeBinaryFromReader(msg, reader);
|
|
1189
|
+
};
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1194
|
+
* given reader into the given message object.
|
|
1195
|
+
* @param {!proto.lansweeper.install.v1.HubCertificateInstallation} msg The message object to deserialize into.
|
|
1196
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1197
|
+
* @return {!proto.lansweeper.install.v1.HubCertificateInstallation}
|
|
1198
|
+
*/
|
|
1199
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.deserializeBinaryFromReader = function(msg, reader) {
|
|
1200
|
+
while (reader.nextField()) {
|
|
1201
|
+
if (reader.isEndGroup()) {
|
|
1202
|
+
break;
|
|
1203
|
+
}
|
|
1204
|
+
var field = reader.getFieldNumber();
|
|
1205
|
+
switch (field) {
|
|
1206
|
+
case 2:
|
|
1207
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1208
|
+
msg.setInstallKey(value);
|
|
1209
|
+
break;
|
|
1210
|
+
case 3:
|
|
1211
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1212
|
+
msg.setHubCertificate(value);
|
|
1213
|
+
break;
|
|
1214
|
+
default:
|
|
1215
|
+
reader.skipField();
|
|
1216
|
+
break;
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
return msg;
|
|
1220
|
+
};
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1225
|
+
* @return {!Uint8Array}
|
|
1226
|
+
*/
|
|
1227
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.prototype.serializeBinary = function() {
|
|
1228
|
+
var writer = new jspb.BinaryWriter();
|
|
1229
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.serializeBinaryToWriter(this, writer);
|
|
1230
|
+
return writer.getResultBuffer();
|
|
1231
|
+
};
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1236
|
+
* format), writing to the given BinaryWriter.
|
|
1237
|
+
* @param {!proto.lansweeper.install.v1.HubCertificateInstallation} message
|
|
1238
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1239
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1240
|
+
*/
|
|
1241
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.serializeBinaryToWriter = function(message, writer) {
|
|
1242
|
+
var f = undefined;
|
|
1243
|
+
f = message.getInstallKey();
|
|
1244
|
+
if (f.length > 0) {
|
|
1245
|
+
writer.writeString(
|
|
1246
|
+
2,
|
|
1247
|
+
f
|
|
1248
|
+
);
|
|
1249
|
+
}
|
|
1250
|
+
f = message.getHubCertificate();
|
|
1251
|
+
if (f.length > 0) {
|
|
1252
|
+
writer.writeString(
|
|
1253
|
+
3,
|
|
1254
|
+
f
|
|
1255
|
+
);
|
|
1256
|
+
}
|
|
1257
|
+
};
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* optional string install_key = 2;
|
|
1262
|
+
* @return {string}
|
|
1263
|
+
*/
|
|
1264
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.prototype.getInstallKey = function() {
|
|
1265
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* @param {string} value
|
|
1271
|
+
* @return {!proto.lansweeper.install.v1.HubCertificateInstallation} returns this
|
|
1272
|
+
*/
|
|
1273
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.prototype.setInstallKey = function(value) {
|
|
1274
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1275
|
+
};
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* optional string hub_certificate = 3;
|
|
1280
|
+
* @return {string}
|
|
1281
|
+
*/
|
|
1282
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.prototype.getHubCertificate = function() {
|
|
1283
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* @param {string} value
|
|
1289
|
+
* @return {!proto.lansweeper.install.v1.HubCertificateInstallation} returns this
|
|
1290
|
+
*/
|
|
1291
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.prototype.setHubCertificate = function(value) {
|
|
1292
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
|
|
724
1296
|
goog.object.extend(exports, proto.lansweeper.install.v1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/install-api-grpc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "install api grpc",
|
|
5
5
|
"main": "gen-proto/index.js",
|
|
6
6
|
"types": "gen-proto/index.d.ts",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/google-protobuf": "^3.15.5"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "5c8681f8433f35f1114bdcb65687a172c31aeba5"
|
|
20
20
|
}
|
package/proto/install.proto
CHANGED
|
@@ -2,6 +2,8 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package lansweeper.install.v1;
|
|
4
4
|
|
|
5
|
+
option go_package = "./generated-go";
|
|
6
|
+
|
|
5
7
|
message SetPublicKeyRequest {
|
|
6
8
|
string site_id = 1;
|
|
7
9
|
string install_key = 2;
|
|
@@ -21,7 +23,22 @@ message SetHubCertificateRequest {
|
|
|
21
23
|
message SetHubCertificateResponse {
|
|
22
24
|
}
|
|
23
25
|
|
|
26
|
+
message GetHubCertificatesRequest {
|
|
27
|
+
string site_id = 1;
|
|
28
|
+
repeated string install_keys = 2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message GetHubCertificatesResponse {
|
|
32
|
+
repeated HubCertificateInstallation hub_certificates = 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message HubCertificateInstallation {
|
|
36
|
+
string install_key = 2;
|
|
37
|
+
string hub_certificate = 3;
|
|
38
|
+
}
|
|
39
|
+
|
|
24
40
|
service InstallService {
|
|
41
|
+
rpc GetHubCertificates(GetHubCertificatesRequest) returns (GetHubCertificatesResponse) {}
|
|
25
42
|
rpc SetPublicKey(SetPublicKeyRequest) returns (SetPublicKeyResponse) {}
|
|
26
43
|
rpc SetHubCertificate(SetHubCertificateRequest) returns (SetHubCertificateResponse) {}
|
|
27
44
|
}
|