Class protos.google.cloud.networksecurity.v1beta1.DnsThreatDetectorService (4.1.1)

Represents a DnsThreatDetectorService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.networksecurity.v1beta1.DnsThreatDetectorService

Package

@google-cloud/network-security

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new DnsThreatDetectorService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DnsThreatDetectorService;

Creates new DnsThreatDetectorService service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
DnsThreatDetectorService

RPC service. Useful where requests and/or responses are streamed.

createDnsThreatDetector(request, callback)

public createDnsThreatDetector(request: google.cloud.networksecurity.v1beta1.ICreateDnsThreatDetectorRequest, callback: google.cloud.networksecurity.v1beta1.DnsThreatDetectorService.CreateDnsThreatDetectorCallback): void;

Calls CreateDnsThreatDetector.

Parameters
Name Description
request ICreateDnsThreatDetectorRequest

CreateDnsThreatDetectorRequest message or plain object

callback CreateDnsThreatDetectorCallback

Node-style callback called with the error, if any, and DnsThreatDetector

Returns
Type Description
void

createDnsThreatDetector(request)

public createDnsThreatDetector(request: google.cloud.networksecurity.v1beta1.ICreateDnsThreatDetectorRequest): Promise<google.cloud.networksecurity.v1beta1.DnsThreatDetector>;

Calls CreateDnsThreatDetector.

Parameter
Name Description
request ICreateDnsThreatDetectorRequest

CreateDnsThreatDetectorRequest message or plain object

Returns
Type Description
Promise<google.cloud.networksecurity.v1beta1.DnsThreatDetector>

Promise

deleteDnsThreatDetector(request, callback)

public deleteDnsThreatDetector(request: google.cloud.networksecurity.v1beta1.IDeleteDnsThreatDetectorRequest, callback: google.cloud.networksecurity.v1beta1.DnsThreatDetectorService.DeleteDnsThreatDetectorCallback): void;

Calls DeleteDnsThreatDetector.

Parameters
Name Description
request IDeleteDnsThreatDetectorRequest

DeleteDnsThreatDetectorRequest message or plain object

callback DeleteDnsThreatDetectorCallback

Node-style callback called with the error, if any, and Empty

Returns
Type Description
void

deleteDnsThreatDetector(request)

public deleteDnsThreatDetector(request: google.cloud.networksecurity.v1beta1.IDeleteDnsThreatDetectorRequest): Promise<google.protobuf.Empty>;

Calls DeleteDnsThreatDetector.

Parameter
Name Description
request IDeleteDnsThreatDetectorRequest

DeleteDnsThreatDetectorRequest message or plain object

Returns
Type Description
Promise<google.protobuf.Empty>

Promise

getDnsThreatDetector(request, callback)

public getDnsThreatDetector(request: google.cloud.networksecurity.v1beta1.IGetDnsThreatDetectorRequest, callback: google.cloud.networksecurity.v1beta1.DnsThreatDetectorService.GetDnsThreatDetectorCallback): void;

Calls GetDnsThreatDetector.

Parameters
Name Description
request IGetDnsThreatDetectorRequest

GetDnsThreatDetectorRequest message or plain object

callback GetDnsThreatDetectorCallback

Node-style callback called with the error, if any, and DnsThreatDetector

Returns
Type Description
void

getDnsThreatDetector(request)

public getDnsThreatDetector(request: google.cloud.networksecurity.v1beta1.IGetDnsThreatDetectorRequest): Promise<google.cloud.networksecurity.v1beta1.DnsThreatDetector>;

Calls GetDnsThreatDetector.

Parameter
Name Description
request IGetDnsThreatDetectorRequest

GetDnsThreatDetectorRequest message or plain object

Returns
Type Description
Promise<google.cloud.networksecurity.v1beta1.DnsThreatDetector>

Promise

listDnsThreatDetectors(request, callback)

public listDnsThreatDetectors(request: google.cloud.networksecurity.v1beta1.IListDnsThreatDetectorsRequest, callback: google.cloud.networksecurity.v1beta1.DnsThreatDetectorService.ListDnsThreatDetectorsCallback): void;

Calls ListDnsThreatDetectors.

Parameters
Name Description
request IListDnsThreatDetectorsRequest

ListDnsThreatDetectorsRequest message or plain object

callback ListDnsThreatDetectorsCallback

Node-style callback called with the error, if any, and ListDnsThreatDetectorsResponse

Returns
Type Description
void

listDnsThreatDetectors(request)

public listDnsThreatDetectors(request: google.cloud.networksecurity.v1beta1.IListDnsThreatDetectorsRequest): Promise<google.cloud.networksecurity.v1beta1.ListDnsThreatDetectorsResponse>;

Calls ListDnsThreatDetectors.

Parameter
Name Description
request IListDnsThreatDetectorsRequest

ListDnsThreatDetectorsRequest message or plain object

Returns
Type Description
Promise<google.cloud.networksecurity.v1beta1.ListDnsThreatDetectorsResponse>

Promise

updateDnsThreatDetector(request, callback)

public updateDnsThreatDetector(request: google.cloud.networksecurity.v1beta1.IUpdateDnsThreatDetectorRequest, callback: google.cloud.networksecurity.v1beta1.DnsThreatDetectorService.UpdateDnsThreatDetectorCallback): void;

Calls UpdateDnsThreatDetector.

Parameters
Name Description
request IUpdateDnsThreatDetectorRequest

UpdateDnsThreatDetectorRequest message or plain object

callback UpdateDnsThreatDetectorCallback

Node-style callback called with the error, if any, and DnsThreatDetector

Returns
Type Description
void

updateDnsThreatDetector(request)

public updateDnsThreatDetector(request: google.cloud.networksecurity.v1beta1.IUpdateDnsThreatDetectorRequest): Promise<google.cloud.networksecurity.v1beta1.DnsThreatDetector>;

Calls UpdateDnsThreatDetector.

Parameter
Name Description
request IUpdateDnsThreatDetectorRequest

UpdateDnsThreatDetectorRequest message or plain object

Returns
Type Description
Promise<google.cloud.networksecurity.v1beta1.DnsThreatDetector>

Promise