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

import (
	"encoding/json"
	"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_DeploymentCapacitySettings_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 DeploymentCapacitySettings_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForDeploymentCapacitySettings_STATUS, DeploymentCapacitySettings_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

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

	// Deserialize back into memory
	var actual DeploymentCapacitySettings_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 DeploymentCapacitySettings_STATUS instances for property testing - lazily instantiated by
// DeploymentCapacitySettings_STATUSGenerator()
var deploymentCapacitySettings_STATUSGenerator gopter.Gen

// DeploymentCapacitySettings_STATUSGenerator returns a generator of DeploymentCapacitySettings_STATUS instances for property testing.
func DeploymentCapacitySettings_STATUSGenerator() gopter.Gen {
	if deploymentCapacitySettings_STATUSGenerator != nil {
		return deploymentCapacitySettings_STATUSGenerator
	}

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

	return deploymentCapacitySettings_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForDeploymentCapacitySettings_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForDeploymentCapacitySettings_STATUS(gens map[string]gopter.Gen) {
	gens["DesignatedCapacity"] = gen.PtrOf(gen.Int())
	gens["Priority"] = gen.PtrOf(gen.Int())
}

func Test_DeploymentModel_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 DeploymentModel_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForDeploymentModel_STATUS, DeploymentModel_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

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

	// Deserialize back into memory
	var actual DeploymentModel_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 DeploymentModel_STATUS instances for property testing - lazily instantiated by
// DeploymentModel_STATUSGenerator()
var deploymentModel_STATUSGenerator gopter.Gen

// DeploymentModel_STATUSGenerator returns a generator of DeploymentModel_STATUS instances for property testing.
// We first initialize deploymentModel_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 DeploymentModel_STATUSGenerator() gopter.Gen {
	if deploymentModel_STATUSGenerator != nil {
		return deploymentModel_STATUSGenerator
	}

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

	// The above call to gen.Struct() captures the map, so create a new one
	generators = make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForDeploymentModel_STATUS(generators)
	AddRelatedPropertyGeneratorsForDeploymentModel_STATUS(generators)
	deploymentModel_STATUSGenerator = gen.Struct(reflect.TypeOf(DeploymentModel_STATUS{}), generators)

	return deploymentModel_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForDeploymentModel_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForDeploymentModel_STATUS(gens map[string]gopter.Gen) {
	gens["Format"] = gen.PtrOf(gen.AlphaString())
	gens["Name"] = gen.PtrOf(gen.AlphaString())
	gens["Publisher"] = gen.PtrOf(gen.AlphaString())
	gens["Source"] = gen.PtrOf(gen.AlphaString())
	gens["SourceAccount"] = gen.PtrOf(gen.AlphaString())
	gens["Version"] = gen.PtrOf(gen.AlphaString())
}

// AddRelatedPropertyGeneratorsForDeploymentModel_STATUS is a factory method for creating gopter generators
func AddRelatedPropertyGeneratorsForDeploymentModel_STATUS(gens map[string]gopter.Gen) {
	gens["CallRateLimit"] = gen.PtrOf(CallRateLimit_STATUSGenerator())
}

func Test_DeploymentProperties_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 DeploymentProperties_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForDeploymentProperties_STATUS, DeploymentProperties_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

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

	// Deserialize back into memory
	var actual DeploymentProperties_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 DeploymentProperties_STATUS instances for property testing - lazily instantiated by
// DeploymentProperties_STATUSGenerator()
var deploymentProperties_STATUSGenerator gopter.Gen

// DeploymentProperties_STATUSGenerator returns a generator of DeploymentProperties_STATUS instances for property testing.
// We first initialize deploymentProperties_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 DeploymentProperties_STATUSGenerator() gopter.Gen {
	if deploymentProperties_STATUSGenerator != nil {
		return deploymentProperties_STATUSGenerator
	}

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

	// The above call to gen.Struct() captures the map, so create a new one
	generators = make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForDeploymentProperties_STATUS(generators)
	AddRelatedPropertyGeneratorsForDeploymentProperties_STATUS(generators)
	deploymentProperties_STATUSGenerator = gen.Struct(reflect.TypeOf(DeploymentProperties_STATUS{}), generators)

	return deploymentProperties_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForDeploymentProperties_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForDeploymentProperties_STATUS(gens map[string]gopter.Gen) {
	gens["Capabilities"] = gen.MapOf(
		gen.AlphaString(),
		gen.AlphaString())
	gens["CurrentCapacity"] = gen.PtrOf(gen.Int())
	gens["DynamicThrottlingEnabled"] = gen.PtrOf(gen.Bool())
	gens["ParentDeploymentName"] = gen.PtrOf(gen.AlphaString())
	gens["ProvisioningState"] = gen.PtrOf(gen.OneConstOf(
		DeploymentProperties_ProvisioningState_STATUS_Accepted,
		DeploymentProperties_ProvisioningState_STATUS_Canceled,
		DeploymentProperties_ProvisioningState_STATUS_Creating,
		DeploymentProperties_ProvisioningState_STATUS_Deleting,
		DeploymentProperties_ProvisioningState_STATUS_Disabled,
		DeploymentProperties_ProvisioningState_STATUS_Failed,
		DeploymentProperties_ProvisioningState_STATUS_Moving,
		DeploymentProperties_ProvisioningState_STATUS_Succeeded))
	gens["RaiPolicyName"] = gen.PtrOf(gen.AlphaString())
	gens["SpilloverDeploymentName"] = gen.PtrOf(gen.AlphaString())
	gens["VersionUpgradeOption"] = gen.PtrOf(gen.OneConstOf(DeploymentProperties_VersionUpgradeOption_STATUS_NoAutoUpgrade, DeploymentProperties_VersionUpgradeOption_STATUS_OnceCurrentVersionExpired, DeploymentProperties_VersionUpgradeOption_STATUS_OnceNewDefaultVersionAvailable))
}

// AddRelatedPropertyGeneratorsForDeploymentProperties_STATUS is a factory method for creating gopter generators
func AddRelatedPropertyGeneratorsForDeploymentProperties_STATUS(gens map[string]gopter.Gen) {
	gens["CallRateLimit"] = gen.PtrOf(CallRateLimit_STATUSGenerator())
	gens["CapacitySettings"] = gen.PtrOf(DeploymentCapacitySettings_STATUSGenerator())
	gens["Model"] = gen.PtrOf(DeploymentModel_STATUSGenerator())
	gens["RateLimits"] = gen.SliceOf(ThrottlingRule_STATUSGenerator())
	gens["ScaleSettings"] = gen.PtrOf(DeploymentScaleSettings_STATUSGenerator())
}

func Test_DeploymentScaleSettings_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 DeploymentScaleSettings_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForDeploymentScaleSettings_STATUS, DeploymentScaleSettings_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

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

	// Deserialize back into memory
	var actual DeploymentScaleSettings_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 DeploymentScaleSettings_STATUS instances for property testing - lazily instantiated by
// DeploymentScaleSettings_STATUSGenerator()
var deploymentScaleSettings_STATUSGenerator gopter.Gen

// DeploymentScaleSettings_STATUSGenerator returns a generator of DeploymentScaleSettings_STATUS instances for property testing.
func DeploymentScaleSettings_STATUSGenerator() gopter.Gen {
	if deploymentScaleSettings_STATUSGenerator != nil {
		return deploymentScaleSettings_STATUSGenerator
	}

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

	return deploymentScaleSettings_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForDeploymentScaleSettings_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForDeploymentScaleSettings_STATUS(gens map[string]gopter.Gen) {
	gens["ActiveCapacity"] = gen.PtrOf(gen.Int())
	gens["Capacity"] = gen.PtrOf(gen.Int())
	gens["ScaleType"] = gen.PtrOf(gen.OneConstOf(DeploymentScaleSettings_ScaleType_STATUS_Manual, DeploymentScaleSettings_ScaleType_STATUS_Standard))
}

func Test_Deployment_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 Deployment_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForDeployment_STATUS, Deployment_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

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

	// Deserialize back into memory
	var actual Deployment_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 Deployment_STATUS instances for property testing - lazily instantiated by Deployment_STATUSGenerator()
var deployment_STATUSGenerator gopter.Gen

// Deployment_STATUSGenerator returns a generator of Deployment_STATUS instances for property testing.
// We first initialize deployment_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 Deployment_STATUSGenerator() gopter.Gen {
	if deployment_STATUSGenerator != nil {
		return deployment_STATUSGenerator
	}

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

	// The above call to gen.Struct() captures the map, so create a new one
	generators = make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForDeployment_STATUS(generators)
	AddRelatedPropertyGeneratorsForDeployment_STATUS(generators)
	deployment_STATUSGenerator = gen.Struct(reflect.TypeOf(Deployment_STATUS{}), generators)

	return deployment_STATUSGenerator
}

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

// AddRelatedPropertyGeneratorsForDeployment_STATUS is a factory method for creating gopter generators
func AddRelatedPropertyGeneratorsForDeployment_STATUS(gens map[string]gopter.Gen) {
	gens["Properties"] = gen.PtrOf(DeploymentProperties_STATUSGenerator())
	gens["Sku"] = gen.PtrOf(Sku_STATUSGenerator())
	gens["SystemData"] = gen.PtrOf(SystemData_STATUSGenerator())
}

func Test_RequestMatchPattern_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 RequestMatchPattern_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForRequestMatchPattern_STATUS, RequestMatchPattern_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

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

	// Deserialize back into memory
	var actual RequestMatchPattern_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 RequestMatchPattern_STATUS instances for property testing - lazily instantiated by
// RequestMatchPattern_STATUSGenerator()
var requestMatchPattern_STATUSGenerator gopter.Gen

// RequestMatchPattern_STATUSGenerator returns a generator of RequestMatchPattern_STATUS instances for property testing.
func RequestMatchPattern_STATUSGenerator() gopter.Gen {
	if requestMatchPattern_STATUSGenerator != nil {
		return requestMatchPattern_STATUSGenerator
	}

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

	return requestMatchPattern_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForRequestMatchPattern_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForRequestMatchPattern_STATUS(gens map[string]gopter.Gen) {
	gens["Method"] = gen.PtrOf(gen.AlphaString())
	gens["Path"] = gen.PtrOf(gen.AlphaString())
}

func Test_ThrottlingRule_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 ThrottlingRule_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForThrottlingRule_STATUS, ThrottlingRule_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

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

	// Deserialize back into memory
	var actual ThrottlingRule_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 ThrottlingRule_STATUS instances for property testing - lazily instantiated by
// ThrottlingRule_STATUSGenerator()
var throttlingRule_STATUSGenerator gopter.Gen

// ThrottlingRule_STATUSGenerator returns a generator of ThrottlingRule_STATUS instances for property testing.
// We first initialize throttlingRule_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 ThrottlingRule_STATUSGenerator() gopter.Gen {
	if throttlingRule_STATUSGenerator != nil {
		return throttlingRule_STATUSGenerator
	}

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

	// The above call to gen.Struct() captures the map, so create a new one
	generators = make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForThrottlingRule_STATUS(generators)
	AddRelatedPropertyGeneratorsForThrottlingRule_STATUS(generators)
	throttlingRule_STATUSGenerator = gen.Struct(reflect.TypeOf(ThrottlingRule_STATUS{}), generators)

	return throttlingRule_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForThrottlingRule_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForThrottlingRule_STATUS(gens map[string]gopter.Gen) {
	gens["Count"] = gen.PtrOf(gen.Float64())
	gens["DynamicThrottlingEnabled"] = gen.PtrOf(gen.Bool())
	gens["Key"] = gen.PtrOf(gen.AlphaString())
	gens["MinCount"] = gen.PtrOf(gen.Float64())
	gens["RenewalPeriod"] = gen.PtrOf(gen.Float64())
}

// AddRelatedPropertyGeneratorsForThrottlingRule_STATUS is a factory method for creating gopter generators
func AddRelatedPropertyGeneratorsForThrottlingRule_STATUS(gens map[string]gopter.Gen) {
	gens["MatchPatterns"] = gen.SliceOf(RequestMatchPattern_STATUSGenerator())
}
