@lansweeper/discovery-cloud-proto 0.0.33 → 0.0.34
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/discovery_cloud_grpc_pb.d.ts +44 -0
- package/gen-proto/discovery_cloud_grpc_pb.js +49 -1
- package/gen-proto/discovery_cloud_pb.d.ts +98 -0
- package/gen-proto/discovery_cloud_pb.js +760 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/index.d.ts +1 -0
- package/package.json +2 -2
- package/proto/discovery_cloud.proto +41 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// package: com.lansweeper.discovery.cloud.api.v1
|
|
2
|
+
// file: discovery_cloud.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as grpc from "@grpc/grpc-js";
|
|
8
|
+
import * as discovery_cloud_pb from "./discovery_cloud_pb";
|
|
9
|
+
import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb";
|
|
10
|
+
import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
|
|
11
|
+
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
12
|
+
|
|
13
|
+
interface ICloudScanningSchedulerServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
14
|
+
getNextEnvironmentToScan: ICloudScanningSchedulerServiceService_IGetNextEnvironmentToScan;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface ICloudScanningSchedulerServiceService_IGetNextEnvironmentToScan extends grpc.MethodDefinition<discovery_cloud_pb.GetNextEnvironmentToScanRequest, discovery_cloud_pb.GetNextEnvironmentToScanResponse> {
|
|
18
|
+
path: "/com.lansweeper.discovery.cloud.api.v1.CloudScanningSchedulerService/GetNextEnvironmentToScan";
|
|
19
|
+
requestStream: false;
|
|
20
|
+
responseStream: false;
|
|
21
|
+
requestSerialize: grpc.serialize<discovery_cloud_pb.GetNextEnvironmentToScanRequest>;
|
|
22
|
+
requestDeserialize: grpc.deserialize<discovery_cloud_pb.GetNextEnvironmentToScanRequest>;
|
|
23
|
+
responseSerialize: grpc.serialize<discovery_cloud_pb.GetNextEnvironmentToScanResponse>;
|
|
24
|
+
responseDeserialize: grpc.deserialize<discovery_cloud_pb.GetNextEnvironmentToScanResponse>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const CloudScanningSchedulerServiceService: ICloudScanningSchedulerServiceService;
|
|
28
|
+
|
|
29
|
+
export interface ICloudScanningSchedulerServiceServer extends grpc.UntypedServiceImplementation {
|
|
30
|
+
getNextEnvironmentToScan: grpc.handleUnaryCall<discovery_cloud_pb.GetNextEnvironmentToScanRequest, discovery_cloud_pb.GetNextEnvironmentToScanResponse>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface ICloudScanningSchedulerServiceClient {
|
|
34
|
+
getNextEnvironmentToScan(request: discovery_cloud_pb.GetNextEnvironmentToScanRequest, callback: (error: grpc.ServiceError | null, response: discovery_cloud_pb.GetNextEnvironmentToScanResponse) => void): grpc.ClientUnaryCall;
|
|
35
|
+
getNextEnvironmentToScan(request: discovery_cloud_pb.GetNextEnvironmentToScanRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: discovery_cloud_pb.GetNextEnvironmentToScanResponse) => void): grpc.ClientUnaryCall;
|
|
36
|
+
getNextEnvironmentToScan(request: discovery_cloud_pb.GetNextEnvironmentToScanRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: discovery_cloud_pb.GetNextEnvironmentToScanResponse) => void): grpc.ClientUnaryCall;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class CloudScanningSchedulerServiceClient extends grpc.Client implements ICloudScanningSchedulerServiceClient {
|
|
40
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
41
|
+
public getNextEnvironmentToScan(request: discovery_cloud_pb.GetNextEnvironmentToScanRequest, callback: (error: grpc.ServiceError | null, response: discovery_cloud_pb.GetNextEnvironmentToScanResponse) => void): grpc.ClientUnaryCall;
|
|
42
|
+
public getNextEnvironmentToScan(request: discovery_cloud_pb.GetNextEnvironmentToScanRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: discovery_cloud_pb.GetNextEnvironmentToScanResponse) => void): grpc.ClientUnaryCall;
|
|
43
|
+
public getNextEnvironmentToScan(request: discovery_cloud_pb.GetNextEnvironmentToScanRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: discovery_cloud_pb.GetNextEnvironmentToScanResponse) => void): grpc.ClientUnaryCall;
|
|
44
|
+
}
|
|
@@ -1 +1,49 @@
|
|
|
1
|
-
// GENERATED CODE --
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var discovery_cloud_pb = require('./discovery_cloud_pb.js');
|
|
6
|
+
var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
|
|
7
|
+
var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
|
|
8
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
9
|
+
|
|
10
|
+
function serialize_com_lansweeper_discovery_cloud_api_v1_GetNextEnvironmentToScanRequest(arg) {
|
|
11
|
+
if (!(arg instanceof discovery_cloud_pb.GetNextEnvironmentToScanRequest)) {
|
|
12
|
+
throw new Error('Expected argument of type com.lansweeper.discovery.cloud.api.v1.GetNextEnvironmentToScanRequest');
|
|
13
|
+
}
|
|
14
|
+
return Buffer.from(arg.serializeBinary());
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function deserialize_com_lansweeper_discovery_cloud_api_v1_GetNextEnvironmentToScanRequest(buffer_arg) {
|
|
18
|
+
return discovery_cloud_pb.GetNextEnvironmentToScanRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function serialize_com_lansweeper_discovery_cloud_api_v1_GetNextEnvironmentToScanResponse(arg) {
|
|
22
|
+
if (!(arg instanceof discovery_cloud_pb.GetNextEnvironmentToScanResponse)) {
|
|
23
|
+
throw new Error('Expected argument of type com.lansweeper.discovery.cloud.api.v1.GetNextEnvironmentToScanResponse');
|
|
24
|
+
}
|
|
25
|
+
return Buffer.from(arg.serializeBinary());
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function deserialize_com_lansweeper_discovery_cloud_api_v1_GetNextEnvironmentToScanResponse(buffer_arg) {
|
|
29
|
+
return discovery_cloud_pb.GetNextEnvironmentToScanResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
// Cloud Scanning Scheduler Service
|
|
34
|
+
var CloudScanningSchedulerServiceService = exports.CloudScanningSchedulerServiceService = {
|
|
35
|
+
// Get the next environment to scan
|
|
36
|
+
getNextEnvironmentToScan: {
|
|
37
|
+
path: '/com.lansweeper.discovery.cloud.api.v1.CloudScanningSchedulerService/GetNextEnvironmentToScan',
|
|
38
|
+
requestStream: false,
|
|
39
|
+
responseStream: false,
|
|
40
|
+
requestType: discovery_cloud_pb.GetNextEnvironmentToScanRequest,
|
|
41
|
+
responseType: discovery_cloud_pb.GetNextEnvironmentToScanResponse,
|
|
42
|
+
requestSerialize: serialize_com_lansweeper_discovery_cloud_api_v1_GetNextEnvironmentToScanRequest,
|
|
43
|
+
requestDeserialize: deserialize_com_lansweeper_discovery_cloud_api_v1_GetNextEnvironmentToScanRequest,
|
|
44
|
+
responseSerialize: serialize_com_lansweeper_discovery_cloud_api_v1_GetNextEnvironmentToScanResponse,
|
|
45
|
+
responseDeserialize: deserialize_com_lansweeper_discovery_cloud_api_v1_GetNextEnvironmentToScanResponse,
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
exports.CloudScanningSchedulerServiceClient = grpc.makeGenericClientConstructor(CloudScanningSchedulerServiceService);
|
|
@@ -201,6 +201,96 @@ export namespace ScanError {
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
+
export class ScanInput extends jspb.Message {
|
|
205
|
+
getClientKey(): string;
|
|
206
|
+
setClientKey(value: string): ScanInput;
|
|
207
|
+
getInstallKey(): string;
|
|
208
|
+
setInstallKey(value: string): ScanInput;
|
|
209
|
+
getScanType(): ScanType;
|
|
210
|
+
setScanType(value: ScanType): ScanInput;
|
|
211
|
+
getSettings(): string;
|
|
212
|
+
setSettings(value: string): ScanInput;
|
|
213
|
+
getScanningTargetId(): string;
|
|
214
|
+
setScanningTargetId(value: string): ScanInput;
|
|
215
|
+
getScanAttemptsNb(): number;
|
|
216
|
+
setScanAttemptsNb(value: number): ScanInput;
|
|
217
|
+
getExecutionId(): string;
|
|
218
|
+
setExecutionId(value: string): ScanInput;
|
|
219
|
+
getTraceId(): string;
|
|
220
|
+
setTraceId(value: string): ScanInput;
|
|
221
|
+
getSpanId(): string;
|
|
222
|
+
setSpanId(value: string): ScanInput;
|
|
223
|
+
getQueuedTime(): number;
|
|
224
|
+
setQueuedTime(value: number): ScanInput;
|
|
225
|
+
|
|
226
|
+
serializeBinary(): Uint8Array;
|
|
227
|
+
toObject(includeInstance?: boolean): ScanInput.AsObject;
|
|
228
|
+
static toObject(includeInstance: boolean, msg: ScanInput): ScanInput.AsObject;
|
|
229
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
230
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
231
|
+
static serializeBinaryToWriter(message: ScanInput, writer: jspb.BinaryWriter): void;
|
|
232
|
+
static deserializeBinary(bytes: Uint8Array): ScanInput;
|
|
233
|
+
static deserializeBinaryFromReader(message: ScanInput, reader: jspb.BinaryReader): ScanInput;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export namespace ScanInput {
|
|
237
|
+
export type AsObject = {
|
|
238
|
+
clientKey: string,
|
|
239
|
+
installKey: string,
|
|
240
|
+
scanType: ScanType,
|
|
241
|
+
settings: string,
|
|
242
|
+
scanningTargetId: string,
|
|
243
|
+
scanAttemptsNb: number,
|
|
244
|
+
executionId: string,
|
|
245
|
+
traceId: string,
|
|
246
|
+
spanId: string,
|
|
247
|
+
queuedTime: number,
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export class GetNextEnvironmentToScanRequest extends jspb.Message {
|
|
252
|
+
|
|
253
|
+
serializeBinary(): Uint8Array;
|
|
254
|
+
toObject(includeInstance?: boolean): GetNextEnvironmentToScanRequest.AsObject;
|
|
255
|
+
static toObject(includeInstance: boolean, msg: GetNextEnvironmentToScanRequest): GetNextEnvironmentToScanRequest.AsObject;
|
|
256
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
257
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
258
|
+
static serializeBinaryToWriter(message: GetNextEnvironmentToScanRequest, writer: jspb.BinaryWriter): void;
|
|
259
|
+
static deserializeBinary(bytes: Uint8Array): GetNextEnvironmentToScanRequest;
|
|
260
|
+
static deserializeBinaryFromReader(message: GetNextEnvironmentToScanRequest, reader: jspb.BinaryReader): GetNextEnvironmentToScanRequest;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export namespace GetNextEnvironmentToScanRequest {
|
|
264
|
+
export type AsObject = {
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export class GetNextEnvironmentToScanResponse extends jspb.Message {
|
|
269
|
+
getHasScan(): boolean;
|
|
270
|
+
setHasScan(value: boolean): GetNextEnvironmentToScanResponse;
|
|
271
|
+
|
|
272
|
+
hasScanInput(): boolean;
|
|
273
|
+
clearScanInput(): void;
|
|
274
|
+
getScanInput(): ScanInput | undefined;
|
|
275
|
+
setScanInput(value?: ScanInput): GetNextEnvironmentToScanResponse;
|
|
276
|
+
|
|
277
|
+
serializeBinary(): Uint8Array;
|
|
278
|
+
toObject(includeInstance?: boolean): GetNextEnvironmentToScanResponse.AsObject;
|
|
279
|
+
static toObject(includeInstance: boolean, msg: GetNextEnvironmentToScanResponse): GetNextEnvironmentToScanResponse.AsObject;
|
|
280
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
281
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
282
|
+
static serializeBinaryToWriter(message: GetNextEnvironmentToScanResponse, writer: jspb.BinaryWriter): void;
|
|
283
|
+
static deserializeBinary(bytes: Uint8Array): GetNextEnvironmentToScanResponse;
|
|
284
|
+
static deserializeBinaryFromReader(message: GetNextEnvironmentToScanResponse, reader: jspb.BinaryReader): GetNextEnvironmentToScanResponse;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export namespace GetNextEnvironmentToScanResponse {
|
|
288
|
+
export type AsObject = {
|
|
289
|
+
hasScan: boolean,
|
|
290
|
+
scanInput?: ScanInput.AsObject,
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
204
294
|
export class GCPAppEngine extends jspb.Message {
|
|
205
295
|
|
|
206
296
|
hasADK_name(): boolean;
|
|
@@ -48179,3 +48269,11 @@ export namespace AmazonResource {
|
|
|
48179
48269
|
ADK_name?: google_protobuf_wrappers_pb.StringValue.AsObject,
|
|
48180
48270
|
}
|
|
48181
48271
|
}
|
|
48272
|
+
|
|
48273
|
+
export enum ScanType {
|
|
48274
|
+
SCAN_TYPE_AWS = 0,
|
|
48275
|
+
SCAN_TYPE_AZURE = 1,
|
|
48276
|
+
SCAN_TYPE_GCP = 2,
|
|
48277
|
+
SCAN_TYPE_INTUNE = 3,
|
|
48278
|
+
SCAN_TYPE_ENTRA_ID = 4,
|
|
48279
|
+
}
|