Network Security v1beta1 API - Class DnsThreatDetectorService.DnsThreatDetectorServiceClient (2.0.0-beta08)

public class DnsThreatDetectorService.DnsThreatDetectorServiceClient : ClientBase<DnsThreatDetectorService.DnsThreatDetectorServiceClient>

Reference documentation and code samples for the Network Security v1beta1 API class DnsThreatDetectorService.DnsThreatDetectorServiceClient.

Client for DnsThreatDetectorService

Inheritance

object > ClientBase > ClientBaseDnsThreatDetectorServiceDnsThreatDetectorServiceClient > DnsThreatDetectorService.DnsThreatDetectorServiceClient

Namespace

Google.Cloud.NetworkSecurity.V1Beta1

Assembly

Google.Cloud.NetworkSecurity.V1Beta1.dll

Constructors

DnsThreatDetectorServiceClient()

protected DnsThreatDetectorServiceClient()

Protected parameterless constructor to allow creation of test doubles.

DnsThreatDetectorServiceClient(CallInvoker)

public DnsThreatDetectorServiceClient(CallInvoker callInvoker)

Creates a new client for DnsThreatDetectorService that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

DnsThreatDetectorServiceClient(ChannelBase)

public DnsThreatDetectorServiceClient(ChannelBase channel)

Creates a new client for DnsThreatDetectorService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

DnsThreatDetectorServiceClient(ClientBaseConfiguration)

protected DnsThreatDetectorServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateDnsThreatDetector(CreateDnsThreatDetectorRequest, CallOptions)

public virtual DnsThreatDetector CreateDnsThreatDetector(CreateDnsThreatDetectorRequest request, CallOptions options)

Creates a new DnsThreatDetector in a given project and location.

Parameters
Name Description
request CreateDnsThreatDetectorRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
DnsThreatDetector

The response received from the server.

CreateDnsThreatDetector(CreateDnsThreatDetectorRequest, Metadata, DateTime?, CancellationToken)

public virtual DnsThreatDetector CreateDnsThreatDetector(CreateDnsThreatDetectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new DnsThreatDetector in a given project and location.

Parameters
Name Description
request CreateDnsThreatDetectorRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
DnsThreatDetector

The response received from the server.

CreateDnsThreatDetectorAsync(CreateDnsThreatDetectorRequest, CallOptions)

public virtual AsyncUnaryCall<DnsThreatDetector> CreateDnsThreatDetectorAsync(CreateDnsThreatDetectorRequest request, CallOptions options)

Creates a new DnsThreatDetector in a given project and location.

Parameters
Name Description
request CreateDnsThreatDetectorRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallDnsThreatDetector

The call object.

CreateDnsThreatDetectorAsync(CreateDnsThreatDetectorRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<DnsThreatDetector> CreateDnsThreatDetectorAsync(CreateDnsThreatDetectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new DnsThreatDetector in a given project and location.

Parameters
Name Description
request CreateDnsThreatDetectorRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallDnsThreatDetector

The call object.

CreateIAMPolicyClient()

public virtual IAMPolicy.IAMPolicyClient CreateIAMPolicyClient()

Creates a new instance of IAMPolicy.IAMPolicyClient using the same call invoker as this client.

Returns
Type Description
IAMPolicyIAMPolicyClient

A new IAMPolicy.IAMPolicyClient for the same target as this client.

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

DeleteDnsThreatDetector(DeleteDnsThreatDetectorRequest, CallOptions)

public virtual Empty DeleteDnsThreatDetector(DeleteDnsThreatDetectorRequest request, CallOptions options)

Deletes a single DnsThreatDetector.

Parameters
Name Description
request DeleteDnsThreatDetectorRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteDnsThreatDetector(DeleteDnsThreatDetectorRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteDnsThreatDetector(DeleteDnsThreatDetectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a single DnsThreatDetector.

Parameters
Name Description
request DeleteDnsThreatDetectorRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteDnsThreatDetectorAsync(DeleteDnsThreatDetectorRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteDnsThreatDetectorAsync(DeleteDnsThreatDetectorRequest request, CallOptions options)

Deletes a single DnsThreatDetector.

Parameters
Name Description
request DeleteDnsThreatDetectorRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteDnsThreatDetectorAsync(DeleteDnsThreatDetectorRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteDnsThreatDetectorAsync(DeleteDnsThreatDetectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a single DnsThreatDetector.

Parameters
Name Description
request DeleteDnsThreatDetectorRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

GetDnsThreatDetector(GetDnsThreatDetectorRequest, CallOptions)

public virtual DnsThreatDetector GetDnsThreatDetector(GetDnsThreatDetectorRequest request, CallOptions options)

Gets the details of a single DnsThreatDetector.

Parameters
Name Description
request GetDnsThreatDetectorRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
DnsThreatDetector

The response received from the server.

GetDnsThreatDetector(GetDnsThreatDetectorRequest, Metadata, DateTime?, CancellationToken)

public virtual DnsThreatDetector GetDnsThreatDetector(GetDnsThreatDetectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the details of a single DnsThreatDetector.

Parameters
Name Description
request GetDnsThreatDetectorRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
DnsThreatDetector

The response received from the server.

GetDnsThreatDetectorAsync(GetDnsThreatDetectorRequest, CallOptions)

public virtual AsyncUnaryCall<DnsThreatDetector> GetDnsThreatDetectorAsync(GetDnsThreatDetectorRequest request, CallOptions options)

Gets the details of a single DnsThreatDetector.

Parameters
Name Description
request GetDnsThreatDetectorRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallDnsThreatDetector

The call object.

GetDnsThreatDetectorAsync(GetDnsThreatDetectorRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<DnsThreatDetector> GetDnsThreatDetectorAsync(GetDnsThreatDetectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the details of a single DnsThreatDetector.

Parameters
Name Description
request GetDnsThreatDetectorRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallDnsThreatDetector

The call object.

ListDnsThreatDetectors(ListDnsThreatDetectorsRequest, CallOptions)

public virtual ListDnsThreatDetectorsResponse ListDnsThreatDetectors(ListDnsThreatDetectorsRequest request, CallOptions options)

Lists DnsThreatDetectors in a given project and location.

Parameters
Name Description
request ListDnsThreatDetectorsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListDnsThreatDetectorsResponse

The response received from the server.

ListDnsThreatDetectors(ListDnsThreatDetectorsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListDnsThreatDetectorsResponse ListDnsThreatDetectors(ListDnsThreatDetectorsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists DnsThreatDetectors in a given project and location.

Parameters
Name Description
request ListDnsThreatDetectorsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListDnsThreatDetectorsResponse

The response received from the server.

ListDnsThreatDetectorsAsync(ListDnsThreatDetectorsRequest, CallOptions)

public virtual AsyncUnaryCall<ListDnsThreatDetectorsResponse> ListDnsThreatDetectorsAsync(ListDnsThreatDetectorsRequest request, CallOptions options)

Lists DnsThreatDetectors in a given project and location.

Parameters
Name Description
request ListDnsThreatDetectorsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListDnsThreatDetectorsResponse

The call object.

ListDnsThreatDetectorsAsync(ListDnsThreatDetectorsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListDnsThreatDetectorsResponse> ListDnsThreatDetectorsAsync(ListDnsThreatDetectorsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists DnsThreatDetectors in a given project and location.

Parameters
Name Description
request ListDnsThreatDetectorsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListDnsThreatDetectorsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override DnsThreatDetectorService.DnsThreatDetectorServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
DnsThreatDetectorServiceDnsThreatDetectorServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.NetworkSecurity.V1Beta1.DnsThreatDetectorService.DnsThreatDetectorServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateDnsThreatDetector(UpdateDnsThreatDetectorRequest, CallOptions)

public virtual DnsThreatDetector UpdateDnsThreatDetector(UpdateDnsThreatDetectorRequest request, CallOptions options)

Updates a single DnsThreatDetector.

Parameters
Name Description
request UpdateDnsThreatDetectorRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
DnsThreatDetector

The response received from the server.

UpdateDnsThreatDetector(UpdateDnsThreatDetectorRequest, Metadata, DateTime?, CancellationToken)

public virtual DnsThreatDetector UpdateDnsThreatDetector(UpdateDnsThreatDetectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a single DnsThreatDetector.

Parameters
Name Description
request UpdateDnsThreatDetectorRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
DnsThreatDetector

The response received from the server.

UpdateDnsThreatDetectorAsync(UpdateDnsThreatDetectorRequest, CallOptions)

public virtual AsyncUnaryCall<DnsThreatDetector> UpdateDnsThreatDetectorAsync(UpdateDnsThreatDetectorRequest request, CallOptions options)

Updates a single DnsThreatDetector.

Parameters
Name Description
request UpdateDnsThreatDetectorRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallDnsThreatDetector

The call object.

UpdateDnsThreatDetectorAsync(UpdateDnsThreatDetectorRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<DnsThreatDetector> UpdateDnsThreatDetectorAsync(UpdateDnsThreatDetectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a single DnsThreatDetector.

Parameters
Name Description
request UpdateDnsThreatDetectorRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallDnsThreatDetector

The call object.