// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package v1api20180501

import (
	"encoding/json"
	storage "github.com/Azure/azure-service-operator/v2/api/network/v1api20180501/storage"
	"github.com/google/go-cmp/cmp"
	"github.com/google/go-cmp/cmp/cmpopts"
	"github.com/kr/pretty"
	"github.com/kylelemons/godebug/diff"
	"github.com/leanovate/gopter"
	"github.com/leanovate/gopter/gen"
	"github.com/leanovate/gopter/prop"
	"os"
	"reflect"
	"testing"
)

func Test_DnsZonesTXTRecord_WhenConvertedToHub_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	parameters.MinSuccessfulTests = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from DnsZonesTXTRecord to hub returns original",
		prop.ForAll(RunResourceConversionTestForDnsZonesTXTRecord, DnsZonesTXTRecordGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunResourceConversionTestForDnsZonesTXTRecord tests if a specific instance of DnsZonesTXTRecord round trips to the hub storage version and back losslessly
func RunResourceConversionTestForDnsZonesTXTRecord(subject DnsZonesTXTRecord) string {
	// Copy subject to make sure conversion doesn't modify it
	copied := subject.DeepCopy()

	// Convert to our hub version
	var hub storage.DnsZonesTXTRecord
	err := copied.ConvertTo(&hub)
	if err != nil {
		return err.Error()
	}

	// Convert from our hub version
	var actual DnsZonesTXTRecord
	err = actual.ConvertFrom(&hub)
	if err != nil {
		return err.Error()
	}

	// Compare actual with what we started with
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_DnsZonesTXTRecord_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from DnsZonesTXTRecord to DnsZonesTXTRecord via AssignProperties_To_DnsZonesTXTRecord & AssignProperties_From_DnsZonesTXTRecord returns original",
		prop.ForAll(RunPropertyAssignmentTestForDnsZonesTXTRecord, DnsZonesTXTRecordGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForDnsZonesTXTRecord tests if a specific instance of DnsZonesTXTRecord can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForDnsZonesTXTRecord(subject DnsZonesTXTRecord) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.DnsZonesTXTRecord
	err := copied.AssignProperties_To_DnsZonesTXTRecord(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual DnsZonesTXTRecord
	err = actual.AssignProperties_From_DnsZonesTXTRecord(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_DnsZonesTXTRecord_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 20
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of DnsZonesTXTRecord via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForDnsZonesTXTRecord, DnsZonesTXTRecordGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForDnsZonesTXTRecord runs a test to see if a specific instance of DnsZonesTXTRecord round trips to JSON and back losslessly
func RunJSONSerializationTestForDnsZonesTXTRecord(subject DnsZonesTXTRecord) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual DnsZonesTXTRecord
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of DnsZonesTXTRecord instances for property testing - lazily instantiated by DnsZonesTXTRecordGenerator()
var dnsZonesTXTRecordGenerator gopter.Gen

// DnsZonesTXTRecordGenerator returns a generator of DnsZonesTXTRecord instances for property testing.
func DnsZonesTXTRecordGenerator() gopter.Gen {
	if dnsZonesTXTRecordGenerator != nil {
		return dnsZonesTXTRecordGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddRelatedPropertyGeneratorsForDnsZonesTXTRecord(generators)
	dnsZonesTXTRecordGenerator = gen.Struct(reflect.TypeOf(DnsZonesTXTRecord{}), generators)

	return dnsZonesTXTRecordGenerator
}

// AddRelatedPropertyGeneratorsForDnsZonesTXTRecord is a factory method for creating gopter generators
func AddRelatedPropertyGeneratorsForDnsZonesTXTRecord(gens map[string]gopter.Gen) {
	gens["Spec"] = DnsZonesTXTRecord_SpecGenerator()
	gens["Status"] = DnsZonesTXTRecord_STATUSGenerator()
}

func Test_DnsZonesTXTRecordOperatorSpec_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from DnsZonesTXTRecordOperatorSpec to DnsZonesTXTRecordOperatorSpec via AssignProperties_To_DnsZonesTXTRecordOperatorSpec & AssignProperties_From_DnsZonesTXTRecordOperatorSpec returns original",
		prop.ForAll(RunPropertyAssignmentTestForDnsZonesTXTRecordOperatorSpec, DnsZonesTXTRecordOperatorSpecGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForDnsZonesTXTRecordOperatorSpec tests if a specific instance of DnsZonesTXTRecordOperatorSpec can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForDnsZonesTXTRecordOperatorSpec(subject DnsZonesTXTRecordOperatorSpec) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.DnsZonesTXTRecordOperatorSpec
	err := copied.AssignProperties_To_DnsZonesTXTRecordOperatorSpec(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual DnsZonesTXTRecordOperatorSpec
	err = actual.AssignProperties_From_DnsZonesTXTRecordOperatorSpec(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_DnsZonesTXTRecordOperatorSpec_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 100
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of DnsZonesTXTRecordOperatorSpec via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForDnsZonesTXTRecordOperatorSpec, DnsZonesTXTRecordOperatorSpecGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForDnsZonesTXTRecordOperatorSpec runs a test to see if a specific instance of DnsZonesTXTRecordOperatorSpec round trips to JSON and back losslessly
func RunJSONSerializationTestForDnsZonesTXTRecordOperatorSpec(subject DnsZonesTXTRecordOperatorSpec) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual DnsZonesTXTRecordOperatorSpec
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of DnsZonesTXTRecordOperatorSpec instances for property testing - lazily instantiated by
// DnsZonesTXTRecordOperatorSpecGenerator()
var dnsZonesTXTRecordOperatorSpecGenerator gopter.Gen

// DnsZonesTXTRecordOperatorSpecGenerator returns a generator of DnsZonesTXTRecordOperatorSpec instances for property testing.
func DnsZonesTXTRecordOperatorSpecGenerator() gopter.Gen {
	if dnsZonesTXTRecordOperatorSpecGenerator != nil {
		return dnsZonesTXTRecordOperatorSpecGenerator
	}

	generators := make(map[string]gopter.Gen)
	dnsZonesTXTRecordOperatorSpecGenerator = gen.Struct(reflect.TypeOf(DnsZonesTXTRecordOperatorSpec{}), generators)

	return dnsZonesTXTRecordOperatorSpecGenerator
}

func Test_DnsZonesTXTRecord_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from DnsZonesTXTRecord_STATUS to DnsZonesTXTRecord_STATUS via AssignProperties_To_DnsZonesTXTRecord_STATUS & AssignProperties_From_DnsZonesTXTRecord_STATUS returns original",
		prop.ForAll(RunPropertyAssignmentTestForDnsZonesTXTRecord_STATUS, DnsZonesTXTRecord_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForDnsZonesTXTRecord_STATUS tests if a specific instance of DnsZonesTXTRecord_STATUS can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForDnsZonesTXTRecord_STATUS(subject DnsZonesTXTRecord_STATUS) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.DnsZonesTXTRecord_STATUS
	err := copied.AssignProperties_To_DnsZonesTXTRecord_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual DnsZonesTXTRecord_STATUS
	err = actual.AssignProperties_From_DnsZonesTXTRecord_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_DnsZonesTXTRecord_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 80
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of DnsZonesTXTRecord_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForDnsZonesTXTRecord_STATUS, DnsZonesTXTRecord_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForDnsZonesTXTRecord_STATUS runs a test to see if a specific instance of DnsZonesTXTRecord_STATUS round trips to JSON and back losslessly
func RunJSONSerializationTestForDnsZonesTXTRecord_STATUS(subject DnsZonesTXTRecord_STATUS) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual DnsZonesTXTRecord_STATUS
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of DnsZonesTXTRecord_STATUS instances for property testing - lazily instantiated by
// DnsZonesTXTRecord_STATUSGenerator()
var dnsZonesTXTRecord_STATUSGenerator gopter.Gen

// DnsZonesTXTRecord_STATUSGenerator returns a generator of DnsZonesTXTRecord_STATUS instances for property testing.
// We first initialize dnsZonesTXTRecord_STATUSGenerator with a simplified generator based on the
// fields with primitive types then replacing it with a more complex one that also handles complex fields
// to ensure any cycles in the object graph properly terminate.
func DnsZonesTXTRecord_STATUSGenerator() gopter.Gen {
	if dnsZonesTXTRecord_STATUSGenerator != nil {
		return dnsZonesTXTRecord_STATUSGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForDnsZonesTXTRecord_STATUS(generators)
	dnsZonesTXTRecord_STATUSGenerator = gen.Struct(reflect.TypeOf(DnsZonesTXTRecord_STATUS{}), generators)

	// The above call to gen.Struct() captures the map, so create a new one
	generators = make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForDnsZonesTXTRecord_STATUS(generators)
	AddRelatedPropertyGeneratorsForDnsZonesTXTRecord_STATUS(generators)
	dnsZonesTXTRecord_STATUSGenerator = gen.Struct(reflect.TypeOf(DnsZonesTXTRecord_STATUS{}), generators)

	return dnsZonesTXTRecord_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForDnsZonesTXTRecord_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForDnsZonesTXTRecord_STATUS(gens map[string]gopter.Gen) {
	gens["Etag"] = gen.PtrOf(gen.AlphaString())
	gens["Fqdn"] = gen.PtrOf(gen.AlphaString())
	gens["Id"] = gen.PtrOf(gen.AlphaString())
	gens["Metadata"] = gen.MapOf(
		gen.AlphaString(),
		gen.AlphaString())
	gens["Name"] = gen.PtrOf(gen.AlphaString())
	gens["ProvisioningState"] = gen.PtrOf(gen.AlphaString())
	gens["TTL"] = gen.PtrOf(gen.Int())
	gens["Type"] = gen.PtrOf(gen.AlphaString())
}

// AddRelatedPropertyGeneratorsForDnsZonesTXTRecord_STATUS is a factory method for creating gopter generators
func AddRelatedPropertyGeneratorsForDnsZonesTXTRecord_STATUS(gens map[string]gopter.Gen) {
	gens["AAAARecords"] = gen.SliceOf(AaaaRecord_STATUSGenerator())
	gens["ARecords"] = gen.SliceOf(ARecord_STATUSGenerator())
	gens["CNAMERecord"] = gen.PtrOf(CnameRecord_STATUSGenerator())
	gens["CaaRecords"] = gen.SliceOf(CaaRecord_STATUSGenerator())
	gens["MXRecords"] = gen.SliceOf(MxRecord_STATUSGenerator())
	gens["NSRecords"] = gen.SliceOf(NsRecord_STATUSGenerator())
	gens["PTRRecords"] = gen.SliceOf(PtrRecord_STATUSGenerator())
	gens["SOARecord"] = gen.PtrOf(SoaRecord_STATUSGenerator())
	gens["SRVRecords"] = gen.SliceOf(SrvRecord_STATUSGenerator())
	gens["TXTRecords"] = gen.SliceOf(TxtRecord_STATUSGenerator())
	gens["TargetResource"] = gen.PtrOf(SubResource_STATUSGenerator())
}

func Test_DnsZonesTXTRecord_Spec_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from DnsZonesTXTRecord_Spec to DnsZonesTXTRecord_Spec via AssignProperties_To_DnsZonesTXTRecord_Spec & AssignProperties_From_DnsZonesTXTRecord_Spec returns original",
		prop.ForAll(RunPropertyAssignmentTestForDnsZonesTXTRecord_Spec, DnsZonesTXTRecord_SpecGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForDnsZonesTXTRecord_Spec tests if a specific instance of DnsZonesTXTRecord_Spec can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForDnsZonesTXTRecord_Spec(subject DnsZonesTXTRecord_Spec) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.DnsZonesTXTRecord_Spec
	err := copied.AssignProperties_To_DnsZonesTXTRecord_Spec(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual DnsZonesTXTRecord_Spec
	err = actual.AssignProperties_From_DnsZonesTXTRecord_Spec(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_DnsZonesTXTRecord_Spec_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 80
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of DnsZonesTXTRecord_Spec via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForDnsZonesTXTRecord_Spec, DnsZonesTXTRecord_SpecGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForDnsZonesTXTRecord_Spec runs a test to see if a specific instance of DnsZonesTXTRecord_Spec round trips to JSON and back losslessly
func RunJSONSerializationTestForDnsZonesTXTRecord_Spec(subject DnsZonesTXTRecord_Spec) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual DnsZonesTXTRecord_Spec
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of DnsZonesTXTRecord_Spec instances for property testing - lazily instantiated by
// DnsZonesTXTRecord_SpecGenerator()
var dnsZonesTXTRecord_SpecGenerator gopter.Gen

// DnsZonesTXTRecord_SpecGenerator returns a generator of DnsZonesTXTRecord_Spec instances for property testing.
// We first initialize dnsZonesTXTRecord_SpecGenerator with a simplified generator based on the
// fields with primitive types then replacing it with a more complex one that also handles complex fields
// to ensure any cycles in the object graph properly terminate.
func DnsZonesTXTRecord_SpecGenerator() gopter.Gen {
	if dnsZonesTXTRecord_SpecGenerator != nil {
		return dnsZonesTXTRecord_SpecGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForDnsZonesTXTRecord_Spec(generators)
	dnsZonesTXTRecord_SpecGenerator = gen.Struct(reflect.TypeOf(DnsZonesTXTRecord_Spec{}), generators)

	// The above call to gen.Struct() captures the map, so create a new one
	generators = make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForDnsZonesTXTRecord_Spec(generators)
	AddRelatedPropertyGeneratorsForDnsZonesTXTRecord_Spec(generators)
	dnsZonesTXTRecord_SpecGenerator = gen.Struct(reflect.TypeOf(DnsZonesTXTRecord_Spec{}), generators)

	return dnsZonesTXTRecord_SpecGenerator
}

// AddIndependentPropertyGeneratorsForDnsZonesTXTRecord_Spec is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForDnsZonesTXTRecord_Spec(gens map[string]gopter.Gen) {
	gens["AzureName"] = gen.AlphaString()
	gens["Metadata"] = gen.MapOf(
		gen.AlphaString(),
		gen.AlphaString())
	gens["TTL"] = gen.PtrOf(gen.Int())
}

// AddRelatedPropertyGeneratorsForDnsZonesTXTRecord_Spec is a factory method for creating gopter generators
func AddRelatedPropertyGeneratorsForDnsZonesTXTRecord_Spec(gens map[string]gopter.Gen) {
	gens["AAAARecords"] = gen.SliceOf(AaaaRecordGenerator())
	gens["ARecords"] = gen.SliceOf(ARecordGenerator())
	gens["CNAMERecord"] = gen.PtrOf(CnameRecordGenerator())
	gens["CaaRecords"] = gen.SliceOf(CaaRecordGenerator())
	gens["MXRecords"] = gen.SliceOf(MxRecordGenerator())
	gens["NSRecords"] = gen.SliceOf(NsRecordGenerator())
	gens["OperatorSpec"] = gen.PtrOf(DnsZonesTXTRecordOperatorSpecGenerator())
	gens["PTRRecords"] = gen.SliceOf(PtrRecordGenerator())
	gens["SOARecord"] = gen.PtrOf(SoaRecordGenerator())
	gens["SRVRecords"] = gen.SliceOf(SrvRecordGenerator())
	gens["TXTRecords"] = gen.SliceOf(TxtRecordGenerator())
	gens["TargetResource"] = gen.PtrOf(SubResourceGenerator())
}
