# Network Security V1beta1 API - Class Google::Cloud::NetworkSecurity::V1beta1::CreateDnsThreatDetectorRequest (v0.17.0)

0.17.0 (latest) 0.16.0 0.15.0 0.14.0 0.13.1 0.12.0 0.11.0 0.10.1 0.9.0 0.8.1 0.7.2 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Network Security V1beta1 API class Google::Cloud::NetworkSecurity::V1beta1::CreateDnsThreatDetectorRequest.

The message to create a DnsThreatDetector.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #dns_threat_detector

    def dns_threat_detector() -> ::Google::Cloud::NetworkSecurity::V1beta1::DnsThreatDetector

**Returns**

- ([::Google::Cloud::NetworkSecurity::V1beta1::DnsThreatDetector](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_security-v1beta1/latest/Google-Cloud-NetworkSecurity-V1beta1-DnsThreatDetector)) --- Required. The `DnsThreatDetector` resource to create.

### #dns_threat_detector=

    def dns_threat_detector=(value) -> ::Google::Cloud::NetworkSecurity::V1beta1::DnsThreatDetector

**Parameter**

- **value** ([::Google::Cloud::NetworkSecurity::V1beta1::DnsThreatDetector](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_security-v1beta1/latest/Google-Cloud-NetworkSecurity-V1beta1-DnsThreatDetector)) --- Required. The `DnsThreatDetector` resource to create.
**Returns**

- ([::Google::Cloud::NetworkSecurity::V1beta1::DnsThreatDetector](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_security-v1beta1/latest/Google-Cloud-NetworkSecurity-V1beta1-DnsThreatDetector)) --- Required. The `DnsThreatDetector` resource to create.

### #dns_threat_detector_id

    def dns_threat_detector_id() -> ::String

**Returns**

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

### #dns_threat_detector_id=

    def dns_threat_detector_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The ID of the requesting DnsThreatDetector object. If this field is not supplied, the service generates an identifier.
**Returns**

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

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The value for the parent of the DnsThreatDetector resource.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The value for the parent of the DnsThreatDetector resource.
**Returns**

- (::String) --- Required. The value for the parent of the DnsThreatDetector resource.