@lansweeper/install-api-grpc 0.0.5 → 0.0.6
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
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"},{"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,
|
|
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":"RemoveHubCertificateRequest","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":"RemoveHubCertificateResponse"},{"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":{}},{"name":"RemoveHubCertificate","inputType":".lansweeper.install.v1.RemoveHubCertificateRequest","outputType":".lansweeper.install.v1.RemoveHubCertificateResponse","options":{}}]}],"options":{"goPackage":"./generated-go"},"sourceCodeInfo":{"location":[{"span":[0,0,52,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,35]},{"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,25]},{"path":[4,4,2,1,5],"span":[27,2,8]},{"path":[4,4,2,1,1],"span":[27,9,20]},{"path":[4,4,2,1,3],"span":[27,23,24]},{"path":[4,5],"span":[30,0,31,1]},{"path":[4,5,1],"span":[30,8,36]},{"path":[4,6],"span":[33,0,36,1]},{"path":[4,6,1],"span":[33,8,33]},{"path":[4,6,2,0],"span":[34,2,21]},{"path":[4,6,2,0,5],"span":[34,2,8]},{"path":[4,6,2,0,1],"span":[34,9,16]},{"path":[4,6,2,0,3],"span":[34,19,20]},{"path":[4,6,2,1],"span":[35,2,35]},{"path":[4,6,2,1,4],"span":[35,2,10]},{"path":[4,6,2,1,5],"span":[35,11,17]},{"path":[4,6,2,1,1],"span":[35,18,30]},{"path":[4,6,2,1,3],"span":[35,33,34]},{"path":[4,7],"span":[38,0,40,1]},{"path":[4,7,1],"span":[38,8,34]},{"path":[4,7,2,0],"span":[39,2,59]},{"path":[4,7,2,0,4],"span":[39,2,10]},{"path":[4,7,2,0,6],"span":[39,11,37]},{"path":[4,7,2,0,1],"span":[39,38,54]},{"path":[4,7,2,0,3],"span":[39,57,58]},{"path":[4,8],"span":[42,0,45,1]},{"path":[4,8,1],"span":[42,8,34]},{"path":[4,8,2,0],"span":[43,2,25]},{"path":[4,8,2,0,5],"span":[43,2,8]},{"path":[4,8,2,0,1],"span":[43,9,20]},{"path":[4,8,2,0,3],"span":[43,23,24]},{"path":[4,8,2,1],"span":[44,2,29]},{"path":[4,8,2,1,5],"span":[44,2,8]},{"path":[4,8,2,1,1],"span":[44,9,24]},{"path":[4,8,2,1,3],"span":[44,27,28]},{"path":[6,0],"span":[47,0,52,1]},{"path":[6,0,1],"span":[47,8,22]},{"path":[6,0,2,0],"span":[48,2,91]},{"path":[6,0,2,0,1],"span":[48,6,24]},{"path":[6,0,2,0,2],"span":[48,25,50]},{"path":[6,0,2,0,3],"span":[48,61,87]},{"path":[6,0,2,1],"span":[49,2,73]},{"path":[6,0,2,1,1],"span":[49,6,18]},{"path":[6,0,2,1,2],"span":[49,19,38]},{"path":[6,0,2,1,3],"span":[49,49,69]},{"path":[6,0,2,2],"span":[50,2,88]},{"path":[6,0,2,2,1],"span":[50,6,23]},{"path":[6,0,2,2,2],"span":[50,24,48]},{"path":[6,0,2,2,3],"span":[50,59,84]},{"path":[6,0,2,3],"span":[51,2,97]},{"path":[6,0,2,3,1],"span":[51,6,26]},{"path":[6,0,2,3,2],"span":[51,27,54]},{"path":[6,0,2,3,3],"span":[51,65,93]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
|
|
@@ -11,6 +11,7 @@ interface IInstallServiceService extends grpc.ServiceDefinition<grpc.UntypedServ
|
|
|
11
11
|
getHubCertificates: IInstallServiceService_IGetHubCertificates;
|
|
12
12
|
setPublicKey: IInstallServiceService_ISetPublicKey;
|
|
13
13
|
setHubCertificate: IInstallServiceService_ISetHubCertificate;
|
|
14
|
+
removeHubCertificate: IInstallServiceService_IRemoveHubCertificate;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
interface IInstallServiceService_IGetHubCertificates extends grpc.MethodDefinition<install_pb.GetHubCertificatesRequest, install_pb.GetHubCertificatesResponse> {
|
|
@@ -40,6 +41,15 @@ interface IInstallServiceService_ISetHubCertificate extends grpc.MethodDefinitio
|
|
|
40
41
|
responseSerialize: grpc.serialize<install_pb.SetHubCertificateResponse>;
|
|
41
42
|
responseDeserialize: grpc.deserialize<install_pb.SetHubCertificateResponse>;
|
|
42
43
|
}
|
|
44
|
+
interface IInstallServiceService_IRemoveHubCertificate extends grpc.MethodDefinition<install_pb.RemoveHubCertificateRequest, install_pb.RemoveHubCertificateResponse> {
|
|
45
|
+
path: "/lansweeper.install.v1.InstallService/RemoveHubCertificate";
|
|
46
|
+
requestStream: false;
|
|
47
|
+
responseStream: false;
|
|
48
|
+
requestSerialize: grpc.serialize<install_pb.RemoveHubCertificateRequest>;
|
|
49
|
+
requestDeserialize: grpc.deserialize<install_pb.RemoveHubCertificateRequest>;
|
|
50
|
+
responseSerialize: grpc.serialize<install_pb.RemoveHubCertificateResponse>;
|
|
51
|
+
responseDeserialize: grpc.deserialize<install_pb.RemoveHubCertificateResponse>;
|
|
52
|
+
}
|
|
43
53
|
|
|
44
54
|
export const InstallServiceService: IInstallServiceService;
|
|
45
55
|
|
|
@@ -47,6 +57,7 @@ export interface IInstallServiceServer extends grpc.UntypedServiceImplementation
|
|
|
47
57
|
getHubCertificates: grpc.handleUnaryCall<install_pb.GetHubCertificatesRequest, install_pb.GetHubCertificatesResponse>;
|
|
48
58
|
setPublicKey: grpc.handleUnaryCall<install_pb.SetPublicKeyRequest, install_pb.SetPublicKeyResponse>;
|
|
49
59
|
setHubCertificate: grpc.handleUnaryCall<install_pb.SetHubCertificateRequest, install_pb.SetHubCertificateResponse>;
|
|
60
|
+
removeHubCertificate: grpc.handleUnaryCall<install_pb.RemoveHubCertificateRequest, install_pb.RemoveHubCertificateResponse>;
|
|
50
61
|
}
|
|
51
62
|
|
|
52
63
|
export interface IInstallServiceClient {
|
|
@@ -59,6 +70,9 @@ export interface IInstallServiceClient {
|
|
|
59
70
|
setHubCertificate(request: install_pb.SetHubCertificateRequest, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
60
71
|
setHubCertificate(request: install_pb.SetHubCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
61
72
|
setHubCertificate(request: install_pb.SetHubCertificateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
73
|
+
removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
74
|
+
removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
75
|
+
removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
62
76
|
}
|
|
63
77
|
|
|
64
78
|
export class InstallServiceClient extends grpc.Client implements IInstallServiceClient {
|
|
@@ -72,4 +86,7 @@ export class InstallServiceClient extends grpc.Client implements IInstallService
|
|
|
72
86
|
public setHubCertificate(request: install_pb.SetHubCertificateRequest, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
73
87
|
public setHubCertificate(request: install_pb.SetHubCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
74
88
|
public setHubCertificate(request: install_pb.SetHubCertificateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
89
|
+
public removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
90
|
+
public removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
91
|
+
public removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
75
92
|
}
|
|
@@ -26,6 +26,28 @@ function deserialize_lansweeper_install_v1_GetHubCertificatesResponse(buffer_arg
|
|
|
26
26
|
return install_pb.GetHubCertificatesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
function serialize_lansweeper_install_v1_RemoveHubCertificateRequest(arg) {
|
|
30
|
+
if (!(arg instanceof install_pb.RemoveHubCertificateRequest)) {
|
|
31
|
+
throw new Error('Expected argument of type lansweeper.install.v1.RemoveHubCertificateRequest');
|
|
32
|
+
}
|
|
33
|
+
return Buffer.from(arg.serializeBinary());
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function deserialize_lansweeper_install_v1_RemoveHubCertificateRequest(buffer_arg) {
|
|
37
|
+
return install_pb.RemoveHubCertificateRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function serialize_lansweeper_install_v1_RemoveHubCertificateResponse(arg) {
|
|
41
|
+
if (!(arg instanceof install_pb.RemoveHubCertificateResponse)) {
|
|
42
|
+
throw new Error('Expected argument of type lansweeper.install.v1.RemoveHubCertificateResponse');
|
|
43
|
+
}
|
|
44
|
+
return Buffer.from(arg.serializeBinary());
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function deserialize_lansweeper_install_v1_RemoveHubCertificateResponse(buffer_arg) {
|
|
48
|
+
return install_pb.RemoveHubCertificateResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
49
|
+
}
|
|
50
|
+
|
|
29
51
|
function serialize_lansweeper_install_v1_SetHubCertificateRequest(arg) {
|
|
30
52
|
if (!(arg instanceof install_pb.SetHubCertificateRequest)) {
|
|
31
53
|
throw new Error('Expected argument of type lansweeper.install.v1.SetHubCertificateRequest');
|
|
@@ -105,6 +127,17 @@ var InstallServiceService = exports.InstallServiceService = {
|
|
|
105
127
|
responseSerialize: serialize_lansweeper_install_v1_SetHubCertificateResponse,
|
|
106
128
|
responseDeserialize: deserialize_lansweeper_install_v1_SetHubCertificateResponse,
|
|
107
129
|
},
|
|
130
|
+
removeHubCertificate: {
|
|
131
|
+
path: '/lansweeper.install.v1.InstallService/RemoveHubCertificate',
|
|
132
|
+
requestStream: false,
|
|
133
|
+
responseStream: false,
|
|
134
|
+
requestType: install_pb.RemoveHubCertificateRequest,
|
|
135
|
+
responseType: install_pb.RemoveHubCertificateResponse,
|
|
136
|
+
requestSerialize: serialize_lansweeper_install_v1_RemoveHubCertificateRequest,
|
|
137
|
+
requestDeserialize: deserialize_lansweeper_install_v1_RemoveHubCertificateRequest,
|
|
138
|
+
responseSerialize: serialize_lansweeper_install_v1_RemoveHubCertificateResponse,
|
|
139
|
+
responseDeserialize: deserialize_lansweeper_install_v1_RemoveHubCertificateResponse,
|
|
140
|
+
},
|
|
108
141
|
};
|
|
109
142
|
|
|
110
143
|
exports.InstallServiceClient = grpc.makeGenericClientConstructor(InstallServiceService);
|
|
@@ -95,6 +95,46 @@ export namespace SetHubCertificateResponse {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
export class RemoveHubCertificateRequest extends jspb.Message {
|
|
99
|
+
getSiteId(): string;
|
|
100
|
+
setSiteId(value: string): RemoveHubCertificateRequest;
|
|
101
|
+
getInstallKey(): string;
|
|
102
|
+
setInstallKey(value: string): RemoveHubCertificateRequest;
|
|
103
|
+
|
|
104
|
+
serializeBinary(): Uint8Array;
|
|
105
|
+
toObject(includeInstance?: boolean): RemoveHubCertificateRequest.AsObject;
|
|
106
|
+
static toObject(includeInstance: boolean, msg: RemoveHubCertificateRequest): RemoveHubCertificateRequest.AsObject;
|
|
107
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
108
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
109
|
+
static serializeBinaryToWriter(message: RemoveHubCertificateRequest, writer: jspb.BinaryWriter): void;
|
|
110
|
+
static deserializeBinary(bytes: Uint8Array): RemoveHubCertificateRequest;
|
|
111
|
+
static deserializeBinaryFromReader(message: RemoveHubCertificateRequest, reader: jspb.BinaryReader): RemoveHubCertificateRequest;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export namespace RemoveHubCertificateRequest {
|
|
115
|
+
export type AsObject = {
|
|
116
|
+
siteId: string,
|
|
117
|
+
installKey: string,
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export class RemoveHubCertificateResponse extends jspb.Message {
|
|
122
|
+
|
|
123
|
+
serializeBinary(): Uint8Array;
|
|
124
|
+
toObject(includeInstance?: boolean): RemoveHubCertificateResponse.AsObject;
|
|
125
|
+
static toObject(includeInstance: boolean, msg: RemoveHubCertificateResponse): RemoveHubCertificateResponse.AsObject;
|
|
126
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
127
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
128
|
+
static serializeBinaryToWriter(message: RemoveHubCertificateResponse, writer: jspb.BinaryWriter): void;
|
|
129
|
+
static deserializeBinary(bytes: Uint8Array): RemoveHubCertificateResponse;
|
|
130
|
+
static deserializeBinaryFromReader(message: RemoveHubCertificateResponse, reader: jspb.BinaryReader): RemoveHubCertificateResponse;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export namespace RemoveHubCertificateResponse {
|
|
134
|
+
export type AsObject = {
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
98
138
|
export class GetHubCertificatesRequest extends jspb.Message {
|
|
99
139
|
getSiteId(): string;
|
|
100
140
|
setSiteId(value: string): GetHubCertificatesRequest;
|
package/gen-proto/install_pb.js
CHANGED
|
@@ -24,6 +24,8 @@ var global = (function() {
|
|
|
24
24
|
goog.exportSymbol('proto.lansweeper.install.v1.GetHubCertificatesRequest', null, global);
|
|
25
25
|
goog.exportSymbol('proto.lansweeper.install.v1.GetHubCertificatesResponse', null, global);
|
|
26
26
|
goog.exportSymbol('proto.lansweeper.install.v1.HubCertificateInstallation', null, global);
|
|
27
|
+
goog.exportSymbol('proto.lansweeper.install.v1.RemoveHubCertificateRequest', null, global);
|
|
28
|
+
goog.exportSymbol('proto.lansweeper.install.v1.RemoveHubCertificateResponse', null, global);
|
|
27
29
|
goog.exportSymbol('proto.lansweeper.install.v1.SetHubCertificateRequest', null, global);
|
|
28
30
|
goog.exportSymbol('proto.lansweeper.install.v1.SetHubCertificateResponse', null, global);
|
|
29
31
|
goog.exportSymbol('proto.lansweeper.install.v1.SetPublicKeyRequest', null, global);
|
|
@@ -112,6 +114,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
112
114
|
*/
|
|
113
115
|
proto.lansweeper.install.v1.SetHubCertificateResponse.displayName = 'proto.lansweeper.install.v1.SetHubCertificateResponse';
|
|
114
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Generated by JsPbCodeGenerator.
|
|
119
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
120
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
121
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
122
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
123
|
+
* valid.
|
|
124
|
+
* @extends {jspb.Message}
|
|
125
|
+
* @constructor
|
|
126
|
+
*/
|
|
127
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest = function(opt_data) {
|
|
128
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
129
|
+
};
|
|
130
|
+
goog.inherits(proto.lansweeper.install.v1.RemoveHubCertificateRequest, jspb.Message);
|
|
131
|
+
if (goog.DEBUG && !COMPILED) {
|
|
132
|
+
/**
|
|
133
|
+
* @public
|
|
134
|
+
* @override
|
|
135
|
+
*/
|
|
136
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.displayName = 'proto.lansweeper.install.v1.RemoveHubCertificateRequest';
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Generated by JsPbCodeGenerator.
|
|
140
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
141
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
142
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
143
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
144
|
+
* valid.
|
|
145
|
+
* @extends {jspb.Message}
|
|
146
|
+
* @constructor
|
|
147
|
+
*/
|
|
148
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse = function(opt_data) {
|
|
149
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
150
|
+
};
|
|
151
|
+
goog.inherits(proto.lansweeper.install.v1.RemoveHubCertificateResponse, jspb.Message);
|
|
152
|
+
if (goog.DEBUG && !COMPILED) {
|
|
153
|
+
/**
|
|
154
|
+
* @public
|
|
155
|
+
* @override
|
|
156
|
+
*/
|
|
157
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.displayName = 'proto.lansweeper.install.v1.RemoveHubCertificateResponse';
|
|
158
|
+
}
|
|
115
159
|
/**
|
|
116
160
|
* Generated by JsPbCodeGenerator.
|
|
117
161
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -788,6 +832,267 @@ proto.lansweeper.install.v1.SetHubCertificateResponse.serializeBinaryToWriter =
|
|
|
788
832
|
|
|
789
833
|
|
|
790
834
|
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
838
|
+
/**
|
|
839
|
+
* Creates an object representation of this proto.
|
|
840
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
841
|
+
* Optional fields that are not set will be set to undefined.
|
|
842
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
843
|
+
* For the list of reserved names please see:
|
|
844
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
845
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
846
|
+
* JSPB instance for transitional soy proto support:
|
|
847
|
+
* http://goto/soy-param-migration
|
|
848
|
+
* @return {!Object}
|
|
849
|
+
*/
|
|
850
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.toObject = function(opt_includeInstance) {
|
|
851
|
+
return proto.lansweeper.install.v1.RemoveHubCertificateRequest.toObject(opt_includeInstance, this);
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* Static version of the {@see toObject} method.
|
|
857
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
858
|
+
* the JSPB instance for transitional soy proto support:
|
|
859
|
+
* http://goto/soy-param-migration
|
|
860
|
+
* @param {!proto.lansweeper.install.v1.RemoveHubCertificateRequest} msg The msg instance to transform.
|
|
861
|
+
* @return {!Object}
|
|
862
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
863
|
+
*/
|
|
864
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.toObject = function(includeInstance, msg) {
|
|
865
|
+
var f, obj = {
|
|
866
|
+
siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
867
|
+
installKey: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
868
|
+
};
|
|
869
|
+
|
|
870
|
+
if (includeInstance) {
|
|
871
|
+
obj.$jspbMessageInstance = msg;
|
|
872
|
+
}
|
|
873
|
+
return obj;
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* Deserializes binary data (in protobuf wire format).
|
|
880
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
881
|
+
* @return {!proto.lansweeper.install.v1.RemoveHubCertificateRequest}
|
|
882
|
+
*/
|
|
883
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.deserializeBinary = function(bytes) {
|
|
884
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
885
|
+
var msg = new proto.lansweeper.install.v1.RemoveHubCertificateRequest;
|
|
886
|
+
return proto.lansweeper.install.v1.RemoveHubCertificateRequest.deserializeBinaryFromReader(msg, reader);
|
|
887
|
+
};
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
892
|
+
* given reader into the given message object.
|
|
893
|
+
* @param {!proto.lansweeper.install.v1.RemoveHubCertificateRequest} msg The message object to deserialize into.
|
|
894
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
895
|
+
* @return {!proto.lansweeper.install.v1.RemoveHubCertificateRequest}
|
|
896
|
+
*/
|
|
897
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
898
|
+
while (reader.nextField()) {
|
|
899
|
+
if (reader.isEndGroup()) {
|
|
900
|
+
break;
|
|
901
|
+
}
|
|
902
|
+
var field = reader.getFieldNumber();
|
|
903
|
+
switch (field) {
|
|
904
|
+
case 1:
|
|
905
|
+
var value = /** @type {string} */ (reader.readString());
|
|
906
|
+
msg.setSiteId(value);
|
|
907
|
+
break;
|
|
908
|
+
case 2:
|
|
909
|
+
var value = /** @type {string} */ (reader.readString());
|
|
910
|
+
msg.setInstallKey(value);
|
|
911
|
+
break;
|
|
912
|
+
default:
|
|
913
|
+
reader.skipField();
|
|
914
|
+
break;
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
return msg;
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
923
|
+
* @return {!Uint8Array}
|
|
924
|
+
*/
|
|
925
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.serializeBinary = function() {
|
|
926
|
+
var writer = new jspb.BinaryWriter();
|
|
927
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.serializeBinaryToWriter(this, writer);
|
|
928
|
+
return writer.getResultBuffer();
|
|
929
|
+
};
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
934
|
+
* format), writing to the given BinaryWriter.
|
|
935
|
+
* @param {!proto.lansweeper.install.v1.RemoveHubCertificateRequest} message
|
|
936
|
+
* @param {!jspb.BinaryWriter} writer
|
|
937
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
938
|
+
*/
|
|
939
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
940
|
+
var f = undefined;
|
|
941
|
+
f = message.getSiteId();
|
|
942
|
+
if (f.length > 0) {
|
|
943
|
+
writer.writeString(
|
|
944
|
+
1,
|
|
945
|
+
f
|
|
946
|
+
);
|
|
947
|
+
}
|
|
948
|
+
f = message.getInstallKey();
|
|
949
|
+
if (f.length > 0) {
|
|
950
|
+
writer.writeString(
|
|
951
|
+
2,
|
|
952
|
+
f
|
|
953
|
+
);
|
|
954
|
+
}
|
|
955
|
+
};
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* optional string site_id = 1;
|
|
960
|
+
* @return {string}
|
|
961
|
+
*/
|
|
962
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.getSiteId = function() {
|
|
963
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* @param {string} value
|
|
969
|
+
* @return {!proto.lansweeper.install.v1.RemoveHubCertificateRequest} returns this
|
|
970
|
+
*/
|
|
971
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.setSiteId = function(value) {
|
|
972
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
973
|
+
};
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* optional string install_key = 2;
|
|
978
|
+
* @return {string}
|
|
979
|
+
*/
|
|
980
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.getInstallKey = function() {
|
|
981
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* @param {string} value
|
|
987
|
+
* @return {!proto.lansweeper.install.v1.RemoveHubCertificateRequest} returns this
|
|
988
|
+
*/
|
|
989
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.setInstallKey = function(value) {
|
|
990
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
991
|
+
};
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
998
|
+
/**
|
|
999
|
+
* Creates an object representation of this proto.
|
|
1000
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1001
|
+
* Optional fields that are not set will be set to undefined.
|
|
1002
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1003
|
+
* For the list of reserved names please see:
|
|
1004
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1005
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1006
|
+
* JSPB instance for transitional soy proto support:
|
|
1007
|
+
* http://goto/soy-param-migration
|
|
1008
|
+
* @return {!Object}
|
|
1009
|
+
*/
|
|
1010
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1011
|
+
return proto.lansweeper.install.v1.RemoveHubCertificateResponse.toObject(opt_includeInstance, this);
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Static version of the {@see toObject} method.
|
|
1017
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1018
|
+
* the JSPB instance for transitional soy proto support:
|
|
1019
|
+
* http://goto/soy-param-migration
|
|
1020
|
+
* @param {!proto.lansweeper.install.v1.RemoveHubCertificateResponse} msg The msg instance to transform.
|
|
1021
|
+
* @return {!Object}
|
|
1022
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1023
|
+
*/
|
|
1024
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.toObject = function(includeInstance, msg) {
|
|
1025
|
+
var f, obj = {
|
|
1026
|
+
|
|
1027
|
+
};
|
|
1028
|
+
|
|
1029
|
+
if (includeInstance) {
|
|
1030
|
+
obj.$jspbMessageInstance = msg;
|
|
1031
|
+
}
|
|
1032
|
+
return obj;
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1039
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1040
|
+
* @return {!proto.lansweeper.install.v1.RemoveHubCertificateResponse}
|
|
1041
|
+
*/
|
|
1042
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.deserializeBinary = function(bytes) {
|
|
1043
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1044
|
+
var msg = new proto.lansweeper.install.v1.RemoveHubCertificateResponse;
|
|
1045
|
+
return proto.lansweeper.install.v1.RemoveHubCertificateResponse.deserializeBinaryFromReader(msg, reader);
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1051
|
+
* given reader into the given message object.
|
|
1052
|
+
* @param {!proto.lansweeper.install.v1.RemoveHubCertificateResponse} msg The message object to deserialize into.
|
|
1053
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1054
|
+
* @return {!proto.lansweeper.install.v1.RemoveHubCertificateResponse}
|
|
1055
|
+
*/
|
|
1056
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1057
|
+
while (reader.nextField()) {
|
|
1058
|
+
if (reader.isEndGroup()) {
|
|
1059
|
+
break;
|
|
1060
|
+
}
|
|
1061
|
+
var field = reader.getFieldNumber();
|
|
1062
|
+
switch (field) {
|
|
1063
|
+
default:
|
|
1064
|
+
reader.skipField();
|
|
1065
|
+
break;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
return msg;
|
|
1069
|
+
};
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1074
|
+
* @return {!Uint8Array}
|
|
1075
|
+
*/
|
|
1076
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.prototype.serializeBinary = function() {
|
|
1077
|
+
var writer = new jspb.BinaryWriter();
|
|
1078
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.serializeBinaryToWriter(this, writer);
|
|
1079
|
+
return writer.getResultBuffer();
|
|
1080
|
+
};
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1085
|
+
* format), writing to the given BinaryWriter.
|
|
1086
|
+
* @param {!proto.lansweeper.install.v1.RemoveHubCertificateResponse} message
|
|
1087
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1088
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1089
|
+
*/
|
|
1090
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1091
|
+
var f = undefined;
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
|
|
791
1096
|
/**
|
|
792
1097
|
* List of repeated fields within this message type.
|
|
793
1098
|
* @private {!Array<number>}
|
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.6",
|
|
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": "1b8cb0bdaf7fcb4f1f20fa1e7508edd112b76a9e"
|
|
20
20
|
}
|
package/proto/install.proto
CHANGED
|
@@ -23,6 +23,14 @@ message SetHubCertificateRequest {
|
|
|
23
23
|
message SetHubCertificateResponse {
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
message RemoveHubCertificateRequest {
|
|
27
|
+
string site_id = 1;
|
|
28
|
+
string install_key = 2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message RemoveHubCertificateResponse {
|
|
32
|
+
}
|
|
33
|
+
|
|
26
34
|
message GetHubCertificatesRequest {
|
|
27
35
|
string site_id = 1;
|
|
28
36
|
repeated string install_keys = 2;
|
|
@@ -41,4 +49,5 @@ service InstallService {
|
|
|
41
49
|
rpc GetHubCertificates(GetHubCertificatesRequest) returns (GetHubCertificatesResponse) {}
|
|
42
50
|
rpc SetPublicKey(SetPublicKeyRequest) returns (SetPublicKeyResponse) {}
|
|
43
51
|
rpc SetHubCertificate(SetHubCertificateRequest) returns (SetHubCertificateResponse) {}
|
|
52
|
+
rpc RemoveHubCertificate(RemoveHubCertificateRequest) returns (RemoveHubCertificateResponse) {}
|
|
44
53
|
}
|