Service Client: Google::Cloud::Networksecurity::V1::DnsThreatDetector::DnsThreatDetectorServiceClient

Client stub representing the remote DnsThreatDetectorService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to networksecurity.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Networksecurity::V1::DnsThreatDetector - Compiled Protocol Buffers messages for google/cloud/networksecurity/v1/dns_threat_detector.proto

SYNOPSIS

use Google::Cloud::Networksecurity::V1::DnsThreatDetector;

my $msg = Google::Cloud::Networksecurity::V1::DnsThreatDetector::DnsThreatDetector->new({
    name => $name,
    create_time => $create_time,
    update_time => $update_time,
    labels => $labels,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Networksecurity::V1::DnsThreatDetector::DnsThreatDetector->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/networksecurity/v1/dns_threat_detector.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Networksecurity::V1::DnsThreatDetector::DnsThreatDetector

A DNS threat detector sends DNS query logs to a _provider_ that then analyzes the logs to identify threat events in the DNS queries. By default, all VPC networks in your projects are included. You can exclude specific networks by supplying `excluded_networks`.

Inherits from Protobuf::Message.

Accessors

Enum: DnsThreatDetector::Provider

  • PROVIDER_UNSPECIFIED => 0

  • INFOBLOX => 1

Google::Cloud::Networksecurity::V1::DnsThreatDetector::ListDnsThreatDetectorsRequest

The message for requesting a list of DnsThreatDetectors in the project.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent value for `ListDnsThreatDetectorsRequest`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The requested page size. The server may return fewer items than requested. If unspecified, the server picks an appropriate default.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A page token received from a previous `ListDnsThreatDetectorsRequest` call. Provide this to retrieve the subsequent page.

Google::Cloud::Networksecurity::V1::DnsThreatDetector::ListDnsThreatDetectorsResponse

The response message to requesting a list of DnsThreatDetectors.

Inherits from Protobuf::Message.

Accessors

  • $msg->dns_threat_detectors() / $msg->dns_threat_detectors($value)

    Type: Message (Google::Cloud::Networksecurity::V1::DnsThreatDetector::DnsThreatDetector)

    The list of DnsThreatDetector resources.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token, which can be sent as `page_token`, to retrieve the next page.

  • $msg->unreachable() / $msg->unreachable($value)

    Type: String

    Unordered list. Unreachable `DnsThreatDetector` resources.

Google::Cloud::Networksecurity::V1::DnsThreatDetector::GetDnsThreatDetectorRequest

The message sent to get a DnsThreatDetector.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the DnsThreatDetector resource.

Google::Cloud::Networksecurity::V1::DnsThreatDetector::CreateDnsThreatDetectorRequest

The message to create a DnsThreatDetector.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The value for the parent of the DnsThreatDetector resource.

  • $msg->dns_threat_detector_id() / $msg->dns_threat_detector_id($value)

    Type: String

    Optional. The ID of the requesting DnsThreatDetector object. If this field is not supplied, the service generates an identifier.

  • $msg->dns_threat_detector() / $msg->dns_threat_detector($value)

    Type: Message (Google::Cloud::Networksecurity::V1::DnsThreatDetector::DnsThreatDetector)

    Required. The `DnsThreatDetector` resource to create.

Google::Cloud::Networksecurity::V1::DnsThreatDetector::UpdateDnsThreatDetectorRequest

The message for updating a DnsThreatDetector.

Inherits from Protobuf::Message.

Accessors

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Optional. The field mask is used to specify the fields to be overwritten in the DnsThreatDetector resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the mask is not provided then all fields present in the request will be overwritten.

  • $msg->dns_threat_detector() / $msg->dns_threat_detector($value)

    Type: Message (Google::Cloud::Networksecurity::V1::DnsThreatDetector::DnsThreatDetector)

    Required. The DnsThreatDetector resource being updated.

Google::Cloud::Networksecurity::V1::DnsThreatDetector::DeleteDnsThreatDetectorRequest

The message for deleting a DnsThreatDetector.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the DnsThreatDetector resource.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Networksecurity::V1::DnsThreatDetector::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.