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

import (
	"fmt"
	v20201101s "github.com/Azure/azure-service-operator/v2/api/network/v1api20201101/storage"
	v20220701s "github.com/Azure/azure-service-operator/v2/api/network/v1api20220701/storage"
	v20240101s "github.com/Azure/azure-service-operator/v2/api/network/v1api20240101/storage"
	v20240301s "github.com/Azure/azure-service-operator/v2/api/network/v1api20240301/storage"
	v20240601s "github.com/Azure/azure-service-operator/v2/api/network/v1api20240601/storage"
	"github.com/Azure/azure-service-operator/v2/pkg/genruntime"
	"github.com/Azure/azure-service-operator/v2/pkg/genruntime/conditions"
	"github.com/Azure/azure-service-operator/v2/pkg/genruntime/configmaps"
	"github.com/Azure/azure-service-operator/v2/pkg/genruntime/core"
	"github.com/Azure/azure-service-operator/v2/pkg/genruntime/secrets"
	"github.com/rotisserie/eris"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/runtime/schema"
	"sigs.k8s.io/controller-runtime/pkg/conversion"
)

// +kubebuilder:object:root=true
// +kubebuilder:resource:categories={azure,network}
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="Severity",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].severity"
// +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message"
// Storage version of v1api20200601.PrivateDnsZonesVirtualNetworkLink
// Generator information:
// - Generated from: /privatedns/resource-manager/Microsoft.Network/PrivateDns/stable/2020-06-01/privatedns.json
// - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}
type PrivateDnsZonesVirtualNetworkLink struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PrivateDnsZonesVirtualNetworkLink_Spec   `json:"spec,omitempty"`
	Status            PrivateDnsZonesVirtualNetworkLink_STATUS `json:"status,omitempty"`
}

var _ conditions.Conditioner = &PrivateDnsZonesVirtualNetworkLink{}

// GetConditions returns the conditions of the resource
func (link *PrivateDnsZonesVirtualNetworkLink) GetConditions() conditions.Conditions {
	return link.Status.Conditions
}

// SetConditions sets the conditions on the resource status
func (link *PrivateDnsZonesVirtualNetworkLink) SetConditions(conditions conditions.Conditions) {
	link.Status.Conditions = conditions
}

var _ conversion.Convertible = &PrivateDnsZonesVirtualNetworkLink{}

// ConvertFrom populates our PrivateDnsZonesVirtualNetworkLink from the provided hub PrivateDnsZonesVirtualNetworkLink
func (link *PrivateDnsZonesVirtualNetworkLink) ConvertFrom(hub conversion.Hub) error {
	source, ok := hub.(*v20240601s.PrivateDnsZonesVirtualNetworkLink)
	if !ok {
		return fmt.Errorf("expected network/v1api20240601/storage/PrivateDnsZonesVirtualNetworkLink but received %T instead", hub)
	}

	return link.AssignProperties_From_PrivateDnsZonesVirtualNetworkLink(source)
}

// ConvertTo populates the provided hub PrivateDnsZonesVirtualNetworkLink from our PrivateDnsZonesVirtualNetworkLink
func (link *PrivateDnsZonesVirtualNetworkLink) ConvertTo(hub conversion.Hub) error {
	destination, ok := hub.(*v20240601s.PrivateDnsZonesVirtualNetworkLink)
	if !ok {
		return fmt.Errorf("expected network/v1api20240601/storage/PrivateDnsZonesVirtualNetworkLink but received %T instead", hub)
	}

	return link.AssignProperties_To_PrivateDnsZonesVirtualNetworkLink(destination)
}

var _ configmaps.Exporter = &PrivateDnsZonesVirtualNetworkLink{}

// ConfigMapDestinationExpressions returns the Spec.OperatorSpec.ConfigMapExpressions property
func (link *PrivateDnsZonesVirtualNetworkLink) ConfigMapDestinationExpressions() []*core.DestinationExpression {
	if link.Spec.OperatorSpec == nil {
		return nil
	}
	return link.Spec.OperatorSpec.ConfigMapExpressions
}

var _ secrets.Exporter = &PrivateDnsZonesVirtualNetworkLink{}

// SecretDestinationExpressions returns the Spec.OperatorSpec.SecretExpressions property
func (link *PrivateDnsZonesVirtualNetworkLink) SecretDestinationExpressions() []*core.DestinationExpression {
	if link.Spec.OperatorSpec == nil {
		return nil
	}
	return link.Spec.OperatorSpec.SecretExpressions
}

var _ genruntime.KubernetesResource = &PrivateDnsZonesVirtualNetworkLink{}

// AzureName returns the Azure name of the resource
func (link *PrivateDnsZonesVirtualNetworkLink) AzureName() string {
	return link.Spec.AzureName
}

// GetAPIVersion returns the ARM API version of the resource. This is always "2020-06-01"
func (link PrivateDnsZonesVirtualNetworkLink) GetAPIVersion() string {
	return "2020-06-01"
}

// GetResourceScope returns the scope of the resource
func (link *PrivateDnsZonesVirtualNetworkLink) GetResourceScope() genruntime.ResourceScope {
	return genruntime.ResourceScopeResourceGroup
}

// GetSpec returns the specification of this resource
func (link *PrivateDnsZonesVirtualNetworkLink) GetSpec() genruntime.ConvertibleSpec {
	return &link.Spec
}

// GetStatus returns the status of this resource
func (link *PrivateDnsZonesVirtualNetworkLink) GetStatus() genruntime.ConvertibleStatus {
	return &link.Status
}

// GetSupportedOperations returns the operations supported by the resource
func (link *PrivateDnsZonesVirtualNetworkLink) GetSupportedOperations() []genruntime.ResourceOperation {
	return []genruntime.ResourceOperation{
		genruntime.ResourceOperationDelete,
		genruntime.ResourceOperationGet,
		genruntime.ResourceOperationPut,
	}
}

// GetType returns the ARM Type of the resource. This is always "Microsoft.Network/privateDnsZones/virtualNetworkLinks"
func (link *PrivateDnsZonesVirtualNetworkLink) GetType() string {
	return "Microsoft.Network/privateDnsZones/virtualNetworkLinks"
}

// NewEmptyStatus returns a new empty (blank) status
func (link *PrivateDnsZonesVirtualNetworkLink) NewEmptyStatus() genruntime.ConvertibleStatus {
	return &PrivateDnsZonesVirtualNetworkLink_STATUS{}
}

// Owner returns the ResourceReference of the owner
func (link *PrivateDnsZonesVirtualNetworkLink) Owner() *genruntime.ResourceReference {
	if link.Spec.Owner == nil {
		return nil
	}

	group, kind := genruntime.LookupOwnerGroupKind(link.Spec)
	return link.Spec.Owner.AsResourceReference(group, kind)
}

// SetStatus sets the status of this resource
func (link *PrivateDnsZonesVirtualNetworkLink) SetStatus(status genruntime.ConvertibleStatus) error {
	// If we have exactly the right type of status, assign it
	if st, ok := status.(*PrivateDnsZonesVirtualNetworkLink_STATUS); ok {
		link.Status = *st
		return nil
	}

	// Convert status to required version
	var st PrivateDnsZonesVirtualNetworkLink_STATUS
	err := status.ConvertStatusTo(&st)
	if err != nil {
		return eris.Wrap(err, "failed to convert status")
	}

	link.Status = st
	return nil
}

// AssignProperties_From_PrivateDnsZonesVirtualNetworkLink populates our PrivateDnsZonesVirtualNetworkLink from the provided source PrivateDnsZonesVirtualNetworkLink
func (link *PrivateDnsZonesVirtualNetworkLink) AssignProperties_From_PrivateDnsZonesVirtualNetworkLink(source *v20240601s.PrivateDnsZonesVirtualNetworkLink) error {

	// ObjectMeta
	link.ObjectMeta = *source.ObjectMeta.DeepCopy()

	// Spec
	var spec PrivateDnsZonesVirtualNetworkLink_Spec
	err := spec.AssignProperties_From_PrivateDnsZonesVirtualNetworkLink_Spec(&source.Spec)
	if err != nil {
		return eris.Wrap(err, "calling AssignProperties_From_PrivateDnsZonesVirtualNetworkLink_Spec() to populate field Spec")
	}
	link.Spec = spec

	// Status
	var status PrivateDnsZonesVirtualNetworkLink_STATUS
	err = status.AssignProperties_From_PrivateDnsZonesVirtualNetworkLink_STATUS(&source.Status)
	if err != nil {
		return eris.Wrap(err, "calling AssignProperties_From_PrivateDnsZonesVirtualNetworkLink_STATUS() to populate field Status")
	}
	link.Status = status

	// Invoke the augmentConversionForPrivateDnsZonesVirtualNetworkLink interface (if implemented) to customize the conversion
	var linkAsAny any = link
	if augmentedLink, ok := linkAsAny.(augmentConversionForPrivateDnsZonesVirtualNetworkLink); ok {
		err := augmentedLink.AssignPropertiesFrom(source)
		if err != nil {
			return eris.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion")
		}
	}

	// No error
	return nil
}

// AssignProperties_To_PrivateDnsZonesVirtualNetworkLink populates the provided destination PrivateDnsZonesVirtualNetworkLink from our PrivateDnsZonesVirtualNetworkLink
func (link *PrivateDnsZonesVirtualNetworkLink) AssignProperties_To_PrivateDnsZonesVirtualNetworkLink(destination *v20240601s.PrivateDnsZonesVirtualNetworkLink) error {

	// ObjectMeta
	destination.ObjectMeta = *link.ObjectMeta.DeepCopy()

	// Spec
	var spec v20240601s.PrivateDnsZonesVirtualNetworkLink_Spec
	err := link.Spec.AssignProperties_To_PrivateDnsZonesVirtualNetworkLink_Spec(&spec)
	if err != nil {
		return eris.Wrap(err, "calling AssignProperties_To_PrivateDnsZonesVirtualNetworkLink_Spec() to populate field Spec")
	}
	destination.Spec = spec

	// Status
	var status v20240601s.PrivateDnsZonesVirtualNetworkLink_STATUS
	err = link.Status.AssignProperties_To_PrivateDnsZonesVirtualNetworkLink_STATUS(&status)
	if err != nil {
		return eris.Wrap(err, "calling AssignProperties_To_PrivateDnsZonesVirtualNetworkLink_STATUS() to populate field Status")
	}
	destination.Status = status

	// Invoke the augmentConversionForPrivateDnsZonesVirtualNetworkLink interface (if implemented) to customize the conversion
	var linkAsAny any = link
	if augmentedLink, ok := linkAsAny.(augmentConversionForPrivateDnsZonesVirtualNetworkLink); ok {
		err := augmentedLink.AssignPropertiesTo(destination)
		if err != nil {
			return eris.Wrap(err, "calling augmented AssignPropertiesTo() for conversion")
		}
	}

	// No error
	return nil
}

// OriginalGVK returns a GroupValueKind for the original API version used to create the resource
func (link *PrivateDnsZonesVirtualNetworkLink) OriginalGVK() *schema.GroupVersionKind {
	return &schema.GroupVersionKind{
		Group:   GroupVersion.Group,
		Version: link.Spec.OriginalVersion,
		Kind:    "PrivateDnsZonesVirtualNetworkLink",
	}
}

// +kubebuilder:object:root=true
// Storage version of v1api20200601.PrivateDnsZonesVirtualNetworkLink
// Generator information:
// - Generated from: /privatedns/resource-manager/Microsoft.Network/PrivateDns/stable/2020-06-01/privatedns.json
// - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}
type PrivateDnsZonesVirtualNetworkLinkList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PrivateDnsZonesVirtualNetworkLink `json:"items"`
}

type augmentConversionForPrivateDnsZonesVirtualNetworkLink interface {
	AssignPropertiesFrom(src *v20240601s.PrivateDnsZonesVirtualNetworkLink) error
	AssignPropertiesTo(dst *v20240601s.PrivateDnsZonesVirtualNetworkLink) error
}

// Storage version of v1api20200601.PrivateDnsZonesVirtualNetworkLink_Spec
type PrivateDnsZonesVirtualNetworkLink_Spec struct {
	// AzureName: The name of the resource in Azure. This is often the same as the name of the resource in Kubernetes but it
	// doesn't have to be.
	AzureName       string                                         `json:"azureName,omitempty"`
	Etag            *string                                        `json:"etag,omitempty"`
	Location        *string                                        `json:"location,omitempty"`
	OperatorSpec    *PrivateDnsZonesVirtualNetworkLinkOperatorSpec `json:"operatorSpec,omitempty"`
	OriginalVersion string                                         `json:"originalVersion,omitempty"`

	// +kubebuilder:validation:Required
	// Owner: The owner of the resource. The owner controls where the resource goes when it is deployed. The owner also
	// controls the resources lifecycle. When the owner is deleted the resource will also be deleted. Owner is expected to be a
	// reference to a network.azure.com/PrivateDnsZone resource
	Owner               *genruntime.KnownResourceReference `group:"network.azure.com" json:"owner,omitempty" kind:"PrivateDnsZone"`
	PropertyBag         genruntime.PropertyBag             `json:"$propertyBag,omitempty"`
	RegistrationEnabled *bool                              `json:"registrationEnabled,omitempty"`
	Tags                map[string]string                  `json:"tags,omitempty"`
	VirtualNetwork      *SubResource                       `json:"virtualNetwork,omitempty"`
}

var _ genruntime.ConvertibleSpec = &PrivateDnsZonesVirtualNetworkLink_Spec{}

// ConvertSpecFrom populates our PrivateDnsZonesVirtualNetworkLink_Spec from the provided source
func (link *PrivateDnsZonesVirtualNetworkLink_Spec) ConvertSpecFrom(source genruntime.ConvertibleSpec) error {
	src, ok := source.(*v20240601s.PrivateDnsZonesVirtualNetworkLink_Spec)
	if ok {
		// Populate our instance from source
		return link.AssignProperties_From_PrivateDnsZonesVirtualNetworkLink_Spec(src)
	}

	// Convert to an intermediate form
	src = &v20240601s.PrivateDnsZonesVirtualNetworkLink_Spec{}
	err := src.ConvertSpecFrom(source)
	if err != nil {
		return eris.Wrap(err, "initial step of conversion in ConvertSpecFrom()")
	}

	// Update our instance from src
	err = link.AssignProperties_From_PrivateDnsZonesVirtualNetworkLink_Spec(src)
	if err != nil {
		return eris.Wrap(err, "final step of conversion in ConvertSpecFrom()")
	}

	return nil
}

// ConvertSpecTo populates the provided destination from our PrivateDnsZonesVirtualNetworkLink_Spec
func (link *PrivateDnsZonesVirtualNetworkLink_Spec) ConvertSpecTo(destination genruntime.ConvertibleSpec) error {
	dst, ok := destination.(*v20240601s.PrivateDnsZonesVirtualNetworkLink_Spec)
	if ok {
		// Populate destination from our instance
		return link.AssignProperties_To_PrivateDnsZonesVirtualNetworkLink_Spec(dst)
	}

	// Convert to an intermediate form
	dst = &v20240601s.PrivateDnsZonesVirtualNetworkLink_Spec{}
	err := link.AssignProperties_To_PrivateDnsZonesVirtualNetworkLink_Spec(dst)
	if err != nil {
		return eris.Wrap(err, "initial step of conversion in ConvertSpecTo()")
	}

	// Update dst from our instance
	err = dst.ConvertSpecTo(destination)
	if err != nil {
		return eris.Wrap(err, "final step of conversion in ConvertSpecTo()")
	}

	return nil
}

// AssignProperties_From_PrivateDnsZonesVirtualNetworkLink_Spec populates our PrivateDnsZonesVirtualNetworkLink_Spec from the provided source PrivateDnsZonesVirtualNetworkLink_Spec
func (link *PrivateDnsZonesVirtualNetworkLink_Spec) AssignProperties_From_PrivateDnsZonesVirtualNetworkLink_Spec(source *v20240601s.PrivateDnsZonesVirtualNetworkLink_Spec) error {
	// Clone the existing property bag
	propertyBag := genruntime.NewPropertyBag(source.PropertyBag)

	// AzureName
	link.AzureName = source.AzureName

	// Etag
	link.Etag = genruntime.ClonePointerToString(source.Etag)

	// Location
	link.Location = genruntime.ClonePointerToString(source.Location)

	// OperatorSpec
	if source.OperatorSpec != nil {
		var operatorSpec PrivateDnsZonesVirtualNetworkLinkOperatorSpec
		err := operatorSpec.AssignProperties_From_PrivateDnsZonesVirtualNetworkLinkOperatorSpec(source.OperatorSpec)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_From_PrivateDnsZonesVirtualNetworkLinkOperatorSpec() to populate field OperatorSpec")
		}
		link.OperatorSpec = &operatorSpec
	} else {
		link.OperatorSpec = nil
	}

	// OriginalVersion
	link.OriginalVersion = source.OriginalVersion

	// Owner
	if source.Owner != nil {
		owner := source.Owner.Copy()
		link.Owner = &owner
	} else {
		link.Owner = nil
	}

	// RegistrationEnabled
	if source.RegistrationEnabled != nil {
		registrationEnabled := *source.RegistrationEnabled
		link.RegistrationEnabled = &registrationEnabled
	} else {
		link.RegistrationEnabled = nil
	}

	// ResolutionPolicy
	if source.ResolutionPolicy != nil {
		propertyBag.Add("ResolutionPolicy", *source.ResolutionPolicy)
	} else {
		propertyBag.Remove("ResolutionPolicy")
	}

	// Tags
	link.Tags = genruntime.CloneMapOfStringToString(source.Tags)

	// VirtualNetwork
	if source.VirtualNetwork != nil {
		var subResourceStash v20240301s.SubResource
		err := subResourceStash.AssignProperties_From_SubResource(source.VirtualNetwork)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_From_SubResource() to populate field SubResourceStash from VirtualNetwork")
		}
		var subResourceStashLocal v20220701s.SubResource
		err = subResourceStashLocal.AssignProperties_From_SubResource(&subResourceStash)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_From_SubResource() to populate field SubResourceStash")
		}
		var subResourceStashCopy v20201101s.SubResource
		err = subResourceStashCopy.AssignProperties_From_SubResource(&subResourceStashLocal)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_From_SubResource() to populate field SubResourceStash")
		}
		var virtualNetwork SubResource
		err = virtualNetwork.AssignProperties_From_SubResource(&subResourceStashCopy)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_From_SubResource() to populate field VirtualNetwork from SubResourceStash")
		}
		link.VirtualNetwork = &virtualNetwork
	} else {
		link.VirtualNetwork = nil
	}

	// Update the property bag
	if len(propertyBag) > 0 {
		link.PropertyBag = propertyBag
	} else {
		link.PropertyBag = nil
	}

	// Invoke the augmentConversionForPrivateDnsZonesVirtualNetworkLink_Spec interface (if implemented) to customize the conversion
	var linkAsAny any = link
	if augmentedLink, ok := linkAsAny.(augmentConversionForPrivateDnsZonesVirtualNetworkLink_Spec); ok {
		err := augmentedLink.AssignPropertiesFrom(source)
		if err != nil {
			return eris.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion")
		}
	}

	// No error
	return nil
}

// AssignProperties_To_PrivateDnsZonesVirtualNetworkLink_Spec populates the provided destination PrivateDnsZonesVirtualNetworkLink_Spec from our PrivateDnsZonesVirtualNetworkLink_Spec
func (link *PrivateDnsZonesVirtualNetworkLink_Spec) AssignProperties_To_PrivateDnsZonesVirtualNetworkLink_Spec(destination *v20240601s.PrivateDnsZonesVirtualNetworkLink_Spec) error {
	// Clone the existing property bag
	propertyBag := genruntime.NewPropertyBag(link.PropertyBag)

	// AzureName
	destination.AzureName = link.AzureName

	// Etag
	destination.Etag = genruntime.ClonePointerToString(link.Etag)

	// Location
	destination.Location = genruntime.ClonePointerToString(link.Location)

	// OperatorSpec
	if link.OperatorSpec != nil {
		var operatorSpec v20240601s.PrivateDnsZonesVirtualNetworkLinkOperatorSpec
		err := link.OperatorSpec.AssignProperties_To_PrivateDnsZonesVirtualNetworkLinkOperatorSpec(&operatorSpec)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_To_PrivateDnsZonesVirtualNetworkLinkOperatorSpec() to populate field OperatorSpec")
		}
		destination.OperatorSpec = &operatorSpec
	} else {
		destination.OperatorSpec = nil
	}

	// OriginalVersion
	destination.OriginalVersion = link.OriginalVersion

	// Owner
	if link.Owner != nil {
		owner := link.Owner.Copy()
		destination.Owner = &owner
	} else {
		destination.Owner = nil
	}

	// RegistrationEnabled
	if link.RegistrationEnabled != nil {
		registrationEnabled := *link.RegistrationEnabled
		destination.RegistrationEnabled = &registrationEnabled
	} else {
		destination.RegistrationEnabled = nil
	}

	// ResolutionPolicy
	if propertyBag.Contains("ResolutionPolicy") {
		var resolutionPolicy string
		err := propertyBag.Pull("ResolutionPolicy", &resolutionPolicy)
		if err != nil {
			return eris.Wrap(err, "pulling 'ResolutionPolicy' from propertyBag")
		}

		destination.ResolutionPolicy = &resolutionPolicy
	} else {
		destination.ResolutionPolicy = nil
	}

	// Tags
	destination.Tags = genruntime.CloneMapOfStringToString(link.Tags)

	// VirtualNetwork
	if link.VirtualNetwork != nil {
		var subResourceStash v20201101s.SubResource
		err := link.VirtualNetwork.AssignProperties_To_SubResource(&subResourceStash)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_To_SubResource() to populate field SubResourceStash from VirtualNetwork")
		}
		var subResourceStashLocal v20220701s.SubResource
		err = subResourceStash.AssignProperties_To_SubResource(&subResourceStashLocal)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_To_SubResource() to populate field SubResourceStash")
		}
		var subResourceStashCopy v20240301s.SubResource
		err = subResourceStashLocal.AssignProperties_To_SubResource(&subResourceStashCopy)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_To_SubResource() to populate field SubResourceStash")
		}
		var virtualNetwork v20240601s.SubResource
		err = subResourceStashCopy.AssignProperties_To_SubResource(&virtualNetwork)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_To_SubResource() to populate field VirtualNetwork from SubResourceStash")
		}
		destination.VirtualNetwork = &virtualNetwork
	} else {
		destination.VirtualNetwork = nil
	}

	// Update the property bag
	if len(propertyBag) > 0 {
		destination.PropertyBag = propertyBag
	} else {
		destination.PropertyBag = nil
	}

	// Invoke the augmentConversionForPrivateDnsZonesVirtualNetworkLink_Spec interface (if implemented) to customize the conversion
	var linkAsAny any = link
	if augmentedLink, ok := linkAsAny.(augmentConversionForPrivateDnsZonesVirtualNetworkLink_Spec); ok {
		err := augmentedLink.AssignPropertiesTo(destination)
		if err != nil {
			return eris.Wrap(err, "calling augmented AssignPropertiesTo() for conversion")
		}
	}

	// No error
	return nil
}

// Storage version of v1api20200601.PrivateDnsZonesVirtualNetworkLink_STATUS
type PrivateDnsZonesVirtualNetworkLink_STATUS struct {
	Conditions              []conditions.Condition `json:"conditions,omitempty"`
	Etag                    *string                `json:"etag,omitempty"`
	Id                      *string                `json:"id,omitempty"`
	Location                *string                `json:"location,omitempty"`
	Name                    *string                `json:"name,omitempty"`
	PropertyBag             genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	ProvisioningState       *string                `json:"provisioningState,omitempty"`
	RegistrationEnabled     *bool                  `json:"registrationEnabled,omitempty"`
	Tags                    map[string]string      `json:"tags,omitempty"`
	Type                    *string                `json:"type,omitempty"`
	VirtualNetwork          *SubResource_STATUS    `json:"virtualNetwork,omitempty"`
	VirtualNetworkLinkState *string                `json:"virtualNetworkLinkState,omitempty"`
}

var _ genruntime.ConvertibleStatus = &PrivateDnsZonesVirtualNetworkLink_STATUS{}

// ConvertStatusFrom populates our PrivateDnsZonesVirtualNetworkLink_STATUS from the provided source
func (link *PrivateDnsZonesVirtualNetworkLink_STATUS) ConvertStatusFrom(source genruntime.ConvertibleStatus) error {
	src, ok := source.(*v20240601s.PrivateDnsZonesVirtualNetworkLink_STATUS)
	if ok {
		// Populate our instance from source
		return link.AssignProperties_From_PrivateDnsZonesVirtualNetworkLink_STATUS(src)
	}

	// Convert to an intermediate form
	src = &v20240601s.PrivateDnsZonesVirtualNetworkLink_STATUS{}
	err := src.ConvertStatusFrom(source)
	if err != nil {
		return eris.Wrap(err, "initial step of conversion in ConvertStatusFrom()")
	}

	// Update our instance from src
	err = link.AssignProperties_From_PrivateDnsZonesVirtualNetworkLink_STATUS(src)
	if err != nil {
		return eris.Wrap(err, "final step of conversion in ConvertStatusFrom()")
	}

	return nil
}

// ConvertStatusTo populates the provided destination from our PrivateDnsZonesVirtualNetworkLink_STATUS
func (link *PrivateDnsZonesVirtualNetworkLink_STATUS) ConvertStatusTo(destination genruntime.ConvertibleStatus) error {
	dst, ok := destination.(*v20240601s.PrivateDnsZonesVirtualNetworkLink_STATUS)
	if ok {
		// Populate destination from our instance
		return link.AssignProperties_To_PrivateDnsZonesVirtualNetworkLink_STATUS(dst)
	}

	// Convert to an intermediate form
	dst = &v20240601s.PrivateDnsZonesVirtualNetworkLink_STATUS{}
	err := link.AssignProperties_To_PrivateDnsZonesVirtualNetworkLink_STATUS(dst)
	if err != nil {
		return eris.Wrap(err, "initial step of conversion in ConvertStatusTo()")
	}

	// Update dst from our instance
	err = dst.ConvertStatusTo(destination)
	if err != nil {
		return eris.Wrap(err, "final step of conversion in ConvertStatusTo()")
	}

	return nil
}

// AssignProperties_From_PrivateDnsZonesVirtualNetworkLink_STATUS populates our PrivateDnsZonesVirtualNetworkLink_STATUS from the provided source PrivateDnsZonesVirtualNetworkLink_STATUS
func (link *PrivateDnsZonesVirtualNetworkLink_STATUS) AssignProperties_From_PrivateDnsZonesVirtualNetworkLink_STATUS(source *v20240601s.PrivateDnsZonesVirtualNetworkLink_STATUS) error {
	// Clone the existing property bag
	propertyBag := genruntime.NewPropertyBag(source.PropertyBag)

	// Conditions
	link.Conditions = genruntime.CloneSliceOfCondition(source.Conditions)

	// Etag
	link.Etag = genruntime.ClonePointerToString(source.Etag)

	// Id
	link.Id = genruntime.ClonePointerToString(source.Id)

	// Location
	link.Location = genruntime.ClonePointerToString(source.Location)

	// Name
	link.Name = genruntime.ClonePointerToString(source.Name)

	// ProvisioningState
	link.ProvisioningState = genruntime.ClonePointerToString(source.ProvisioningState)

	// RegistrationEnabled
	if source.RegistrationEnabled != nil {
		registrationEnabled := *source.RegistrationEnabled
		link.RegistrationEnabled = &registrationEnabled
	} else {
		link.RegistrationEnabled = nil
	}

	// ResolutionPolicy
	if source.ResolutionPolicy != nil {
		propertyBag.Add("ResolutionPolicy", *source.ResolutionPolicy)
	} else {
		propertyBag.Remove("ResolutionPolicy")
	}

	// SystemData
	if source.SystemData != nil {
		propertyBag.Add("SystemData", *source.SystemData)
	} else {
		propertyBag.Remove("SystemData")
	}

	// Tags
	link.Tags = genruntime.CloneMapOfStringToString(source.Tags)

	// Type
	link.Type = genruntime.ClonePointerToString(source.Type)

	// VirtualNetwork
	if source.VirtualNetwork != nil {
		var subResourceSTATUSStash v20240301s.SubResource_STATUS
		err := subResourceSTATUSStash.AssignProperties_From_SubResource_STATUS(source.VirtualNetwork)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_From_SubResource_STATUS() to populate field SubResource_STATUSStash from VirtualNetwork")
		}
		var subResourceSTATUSStashLocal v20240101s.SubResource_STATUS
		err = subResourceSTATUSStashLocal.AssignProperties_From_SubResource_STATUS(&subResourceSTATUSStash)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_From_SubResource_STATUS() to populate field SubResource_STATUSStash")
		}
		var subResourceSTATUSStashCopy v20220701s.SubResource_STATUS
		err = subResourceSTATUSStashCopy.AssignProperties_From_SubResource_STATUS(&subResourceSTATUSStashLocal)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_From_SubResource_STATUS() to populate field SubResource_STATUSStash")
		}
		var subResourceSTATUSStashTemp v20201101s.SubResource_STATUS
		err = subResourceSTATUSStashTemp.AssignProperties_From_SubResource_STATUS(&subResourceSTATUSStashCopy)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_From_SubResource_STATUS() to populate field SubResource_STATUSStash")
		}
		var virtualNetwork SubResource_STATUS
		err = virtualNetwork.AssignProperties_From_SubResource_STATUS(&subResourceSTATUSStashTemp)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_From_SubResource_STATUS() to populate field VirtualNetwork from SubResource_STATUSStash")
		}
		link.VirtualNetwork = &virtualNetwork
	} else {
		link.VirtualNetwork = nil
	}

	// VirtualNetworkLinkState
	link.VirtualNetworkLinkState = genruntime.ClonePointerToString(source.VirtualNetworkLinkState)

	// Update the property bag
	if len(propertyBag) > 0 {
		link.PropertyBag = propertyBag
	} else {
		link.PropertyBag = nil
	}

	// Invoke the augmentConversionForPrivateDnsZonesVirtualNetworkLink_STATUS interface (if implemented) to customize the conversion
	var linkAsAny any = link
	if augmentedLink, ok := linkAsAny.(augmentConversionForPrivateDnsZonesVirtualNetworkLink_STATUS); ok {
		err := augmentedLink.AssignPropertiesFrom(source)
		if err != nil {
			return eris.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion")
		}
	}

	// No error
	return nil
}

// AssignProperties_To_PrivateDnsZonesVirtualNetworkLink_STATUS populates the provided destination PrivateDnsZonesVirtualNetworkLink_STATUS from our PrivateDnsZonesVirtualNetworkLink_STATUS
func (link *PrivateDnsZonesVirtualNetworkLink_STATUS) AssignProperties_To_PrivateDnsZonesVirtualNetworkLink_STATUS(destination *v20240601s.PrivateDnsZonesVirtualNetworkLink_STATUS) error {
	// Clone the existing property bag
	propertyBag := genruntime.NewPropertyBag(link.PropertyBag)

	// Conditions
	destination.Conditions = genruntime.CloneSliceOfCondition(link.Conditions)

	// Etag
	destination.Etag = genruntime.ClonePointerToString(link.Etag)

	// Id
	destination.Id = genruntime.ClonePointerToString(link.Id)

	// Location
	destination.Location = genruntime.ClonePointerToString(link.Location)

	// Name
	destination.Name = genruntime.ClonePointerToString(link.Name)

	// ProvisioningState
	destination.ProvisioningState = genruntime.ClonePointerToString(link.ProvisioningState)

	// RegistrationEnabled
	if link.RegistrationEnabled != nil {
		registrationEnabled := *link.RegistrationEnabled
		destination.RegistrationEnabled = &registrationEnabled
	} else {
		destination.RegistrationEnabled = nil
	}

	// ResolutionPolicy
	if propertyBag.Contains("ResolutionPolicy") {
		var resolutionPolicy string
		err := propertyBag.Pull("ResolutionPolicy", &resolutionPolicy)
		if err != nil {
			return eris.Wrap(err, "pulling 'ResolutionPolicy' from propertyBag")
		}

		destination.ResolutionPolicy = &resolutionPolicy
	} else {
		destination.ResolutionPolicy = nil
	}

	// SystemData
	if propertyBag.Contains("SystemData") {
		var systemDatum v20240601s.SystemData_STATUS
		err := propertyBag.Pull("SystemData", &systemDatum)
		if err != nil {
			return eris.Wrap(err, "pulling 'SystemData' from propertyBag")
		}

		destination.SystemData = &systemDatum
	} else {
		destination.SystemData = nil
	}

	// Tags
	destination.Tags = genruntime.CloneMapOfStringToString(link.Tags)

	// Type
	destination.Type = genruntime.ClonePointerToString(link.Type)

	// VirtualNetwork
	if link.VirtualNetwork != nil {
		var subResourceSTATUSStash v20201101s.SubResource_STATUS
		err := link.VirtualNetwork.AssignProperties_To_SubResource_STATUS(&subResourceSTATUSStash)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_To_SubResource_STATUS() to populate field SubResource_STATUSStash from VirtualNetwork")
		}
		var subResourceSTATUSStashLocal v20220701s.SubResource_STATUS
		err = subResourceSTATUSStash.AssignProperties_To_SubResource_STATUS(&subResourceSTATUSStashLocal)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_To_SubResource_STATUS() to populate field SubResource_STATUSStash")
		}
		var subResourceSTATUSStashCopy v20240101s.SubResource_STATUS
		err = subResourceSTATUSStashLocal.AssignProperties_To_SubResource_STATUS(&subResourceSTATUSStashCopy)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_To_SubResource_STATUS() to populate field SubResource_STATUSStash")
		}
		var subResourceSTATUSStashTemp v20240301s.SubResource_STATUS
		err = subResourceSTATUSStashCopy.AssignProperties_To_SubResource_STATUS(&subResourceSTATUSStashTemp)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_To_SubResource_STATUS() to populate field SubResource_STATUSStash")
		}
		var virtualNetwork v20240601s.SubResource_STATUS
		err = subResourceSTATUSStashTemp.AssignProperties_To_SubResource_STATUS(&virtualNetwork)
		if err != nil {
			return eris.Wrap(err, "calling AssignProperties_To_SubResource_STATUS() to populate field VirtualNetwork from SubResource_STATUSStash")
		}
		destination.VirtualNetwork = &virtualNetwork
	} else {
		destination.VirtualNetwork = nil
	}

	// VirtualNetworkLinkState
	destination.VirtualNetworkLinkState = genruntime.ClonePointerToString(link.VirtualNetworkLinkState)

	// Update the property bag
	if len(propertyBag) > 0 {
		destination.PropertyBag = propertyBag
	} else {
		destination.PropertyBag = nil
	}

	// Invoke the augmentConversionForPrivateDnsZonesVirtualNetworkLink_STATUS interface (if implemented) to customize the conversion
	var linkAsAny any = link
	if augmentedLink, ok := linkAsAny.(augmentConversionForPrivateDnsZonesVirtualNetworkLink_STATUS); ok {
		err := augmentedLink.AssignPropertiesTo(destination)
		if err != nil {
			return eris.Wrap(err, "calling augmented AssignPropertiesTo() for conversion")
		}
	}

	// No error
	return nil
}

type augmentConversionForPrivateDnsZonesVirtualNetworkLink_Spec interface {
	AssignPropertiesFrom(src *v20240601s.PrivateDnsZonesVirtualNetworkLink_Spec) error
	AssignPropertiesTo(dst *v20240601s.PrivateDnsZonesVirtualNetworkLink_Spec) error
}

type augmentConversionForPrivateDnsZonesVirtualNetworkLink_STATUS interface {
	AssignPropertiesFrom(src *v20240601s.PrivateDnsZonesVirtualNetworkLink_STATUS) error
	AssignPropertiesTo(dst *v20240601s.PrivateDnsZonesVirtualNetworkLink_STATUS) error
}

// Storage version of v1api20200601.PrivateDnsZonesVirtualNetworkLinkOperatorSpec
// Details for configuring operator behavior. Fields in this struct are interpreted by the operator directly rather than being passed to Azure
type PrivateDnsZonesVirtualNetworkLinkOperatorSpec struct {
	ConfigMapExpressions []*core.DestinationExpression `json:"configMapExpressions,omitempty"`
	PropertyBag          genruntime.PropertyBag        `json:"$propertyBag,omitempty"`
	SecretExpressions    []*core.DestinationExpression `json:"secretExpressions,omitempty"`
}

// AssignProperties_From_PrivateDnsZonesVirtualNetworkLinkOperatorSpec populates our PrivateDnsZonesVirtualNetworkLinkOperatorSpec from the provided source PrivateDnsZonesVirtualNetworkLinkOperatorSpec
func (operator *PrivateDnsZonesVirtualNetworkLinkOperatorSpec) AssignProperties_From_PrivateDnsZonesVirtualNetworkLinkOperatorSpec(source *v20240601s.PrivateDnsZonesVirtualNetworkLinkOperatorSpec) error {
	// Clone the existing property bag
	propertyBag := genruntime.NewPropertyBag(source.PropertyBag)

	// ConfigMapExpressions
	if source.ConfigMapExpressions != nil {
		configMapExpressionList := make([]*core.DestinationExpression, len(source.ConfigMapExpressions))
		for configMapExpressionIndex, configMapExpressionItem := range source.ConfigMapExpressions {
			if configMapExpressionItem != nil {
				configMapExpression := *configMapExpressionItem.DeepCopy()
				configMapExpressionList[configMapExpressionIndex] = &configMapExpression
			} else {
				configMapExpressionList[configMapExpressionIndex] = nil
			}
		}
		operator.ConfigMapExpressions = configMapExpressionList
	} else {
		operator.ConfigMapExpressions = nil
	}

	// SecretExpressions
	if source.SecretExpressions != nil {
		secretExpressionList := make([]*core.DestinationExpression, len(source.SecretExpressions))
		for secretExpressionIndex, secretExpressionItem := range source.SecretExpressions {
			if secretExpressionItem != nil {
				secretExpression := *secretExpressionItem.DeepCopy()
				secretExpressionList[secretExpressionIndex] = &secretExpression
			} else {
				secretExpressionList[secretExpressionIndex] = nil
			}
		}
		operator.SecretExpressions = secretExpressionList
	} else {
		operator.SecretExpressions = nil
	}

	// Update the property bag
	if len(propertyBag) > 0 {
		operator.PropertyBag = propertyBag
	} else {
		operator.PropertyBag = nil
	}

	// Invoke the augmentConversionForPrivateDnsZonesVirtualNetworkLinkOperatorSpec interface (if implemented) to customize the conversion
	var operatorAsAny any = operator
	if augmentedOperator, ok := operatorAsAny.(augmentConversionForPrivateDnsZonesVirtualNetworkLinkOperatorSpec); ok {
		err := augmentedOperator.AssignPropertiesFrom(source)
		if err != nil {
			return eris.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion")
		}
	}

	// No error
	return nil
}

// AssignProperties_To_PrivateDnsZonesVirtualNetworkLinkOperatorSpec populates the provided destination PrivateDnsZonesVirtualNetworkLinkOperatorSpec from our PrivateDnsZonesVirtualNetworkLinkOperatorSpec
func (operator *PrivateDnsZonesVirtualNetworkLinkOperatorSpec) AssignProperties_To_PrivateDnsZonesVirtualNetworkLinkOperatorSpec(destination *v20240601s.PrivateDnsZonesVirtualNetworkLinkOperatorSpec) error {
	// Clone the existing property bag
	propertyBag := genruntime.NewPropertyBag(operator.PropertyBag)

	// ConfigMapExpressions
	if operator.ConfigMapExpressions != nil {
		configMapExpressionList := make([]*core.DestinationExpression, len(operator.ConfigMapExpressions))
		for configMapExpressionIndex, configMapExpressionItem := range operator.ConfigMapExpressions {
			if configMapExpressionItem != nil {
				configMapExpression := *configMapExpressionItem.DeepCopy()
				configMapExpressionList[configMapExpressionIndex] = &configMapExpression
			} else {
				configMapExpressionList[configMapExpressionIndex] = nil
			}
		}
		destination.ConfigMapExpressions = configMapExpressionList
	} else {
		destination.ConfigMapExpressions = nil
	}

	// SecretExpressions
	if operator.SecretExpressions != nil {
		secretExpressionList := make([]*core.DestinationExpression, len(operator.SecretExpressions))
		for secretExpressionIndex, secretExpressionItem := range operator.SecretExpressions {
			if secretExpressionItem != nil {
				secretExpression := *secretExpressionItem.DeepCopy()
				secretExpressionList[secretExpressionIndex] = &secretExpression
			} else {
				secretExpressionList[secretExpressionIndex] = nil
			}
		}
		destination.SecretExpressions = secretExpressionList
	} else {
		destination.SecretExpressions = nil
	}

	// Update the property bag
	if len(propertyBag) > 0 {
		destination.PropertyBag = propertyBag
	} else {
		destination.PropertyBag = nil
	}

	// Invoke the augmentConversionForPrivateDnsZonesVirtualNetworkLinkOperatorSpec interface (if implemented) to customize the conversion
	var operatorAsAny any = operator
	if augmentedOperator, ok := operatorAsAny.(augmentConversionForPrivateDnsZonesVirtualNetworkLinkOperatorSpec); ok {
		err := augmentedOperator.AssignPropertiesTo(destination)
		if err != nil {
			return eris.Wrap(err, "calling augmented AssignPropertiesTo() for conversion")
		}
	}

	// No error
	return nil
}

// Storage version of v1api20200601.SubResource
// Reference to another subresource.
type SubResource struct {
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`

	// Reference: Resource ID.
	Reference *genruntime.ResourceReference `armReference:"Id" json:"reference,omitempty"`
}

// AssignProperties_From_SubResource populates our SubResource from the provided source SubResource
func (resource *SubResource) AssignProperties_From_SubResource(source *v20201101s.SubResource) error {
	// Clone the existing property bag
	propertyBag := genruntime.NewPropertyBag(source.PropertyBag)

	// Reference
	if source.Reference != nil {
		reference := source.Reference.Copy()
		resource.Reference = &reference
	} else {
		resource.Reference = nil
	}

	// Update the property bag
	if len(propertyBag) > 0 {
		resource.PropertyBag = propertyBag
	} else {
		resource.PropertyBag = nil
	}

	// Invoke the augmentConversionForSubResource interface (if implemented) to customize the conversion
	var resourceAsAny any = resource
	if augmentedResource, ok := resourceAsAny.(augmentConversionForSubResource); ok {
		err := augmentedResource.AssignPropertiesFrom(source)
		if err != nil {
			return eris.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion")
		}
	}

	// No error
	return nil
}

// AssignProperties_To_SubResource populates the provided destination SubResource from our SubResource
func (resource *SubResource) AssignProperties_To_SubResource(destination *v20201101s.SubResource) error {
	// Clone the existing property bag
	propertyBag := genruntime.NewPropertyBag(resource.PropertyBag)

	// Reference
	if resource.Reference != nil {
		reference := resource.Reference.Copy()
		destination.Reference = &reference
	} else {
		destination.Reference = nil
	}

	// Update the property bag
	if len(propertyBag) > 0 {
		destination.PropertyBag = propertyBag
	} else {
		destination.PropertyBag = nil
	}

	// Invoke the augmentConversionForSubResource interface (if implemented) to customize the conversion
	var resourceAsAny any = resource
	if augmentedResource, ok := resourceAsAny.(augmentConversionForSubResource); ok {
		err := augmentedResource.AssignPropertiesTo(destination)
		if err != nil {
			return eris.Wrap(err, "calling augmented AssignPropertiesTo() for conversion")
		}
	}

	// No error
	return nil
}

// Storage version of v1api20200601.SubResource_STATUS
// Reference to another subresource.
type SubResource_STATUS struct {
	Id          *string                `json:"id,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// AssignProperties_From_SubResource_STATUS populates our SubResource_STATUS from the provided source SubResource_STATUS
func (resource *SubResource_STATUS) AssignProperties_From_SubResource_STATUS(source *v20201101s.SubResource_STATUS) error {
	// Clone the existing property bag
	propertyBag := genruntime.NewPropertyBag(source.PropertyBag)

	// Id
	resource.Id = genruntime.ClonePointerToString(source.Id)

	// Update the property bag
	if len(propertyBag) > 0 {
		resource.PropertyBag = propertyBag
	} else {
		resource.PropertyBag = nil
	}

	// Invoke the augmentConversionForSubResource_STATUS interface (if implemented) to customize the conversion
	var resourceAsAny any = resource
	if augmentedResource, ok := resourceAsAny.(augmentConversionForSubResource_STATUS); ok {
		err := augmentedResource.AssignPropertiesFrom(source)
		if err != nil {
			return eris.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion")
		}
	}

	// No error
	return nil
}

// AssignProperties_To_SubResource_STATUS populates the provided destination SubResource_STATUS from our SubResource_STATUS
func (resource *SubResource_STATUS) AssignProperties_To_SubResource_STATUS(destination *v20201101s.SubResource_STATUS) error {
	// Clone the existing property bag
	propertyBag := genruntime.NewPropertyBag(resource.PropertyBag)

	// Id
	destination.Id = genruntime.ClonePointerToString(resource.Id)

	// Update the property bag
	if len(propertyBag) > 0 {
		destination.PropertyBag = propertyBag
	} else {
		destination.PropertyBag = nil
	}

	// Invoke the augmentConversionForSubResource_STATUS interface (if implemented) to customize the conversion
	var resourceAsAny any = resource
	if augmentedResource, ok := resourceAsAny.(augmentConversionForSubResource_STATUS); ok {
		err := augmentedResource.AssignPropertiesTo(destination)
		if err != nil {
			return eris.Wrap(err, "calling augmented AssignPropertiesTo() for conversion")
		}
	}

	// No error
	return nil
}

type augmentConversionForPrivateDnsZonesVirtualNetworkLinkOperatorSpec interface {
	AssignPropertiesFrom(src *v20240601s.PrivateDnsZonesVirtualNetworkLinkOperatorSpec) error
	AssignPropertiesTo(dst *v20240601s.PrivateDnsZonesVirtualNetworkLinkOperatorSpec) error
}

type augmentConversionForSubResource interface {
	AssignPropertiesFrom(src *v20201101s.SubResource) error
	AssignPropertiesTo(dst *v20201101s.SubResource) error
}

type augmentConversionForSubResource_STATUS interface {
	AssignPropertiesFrom(src *v20201101s.SubResource_STATUS) error
	AssignPropertiesTo(dst *v20201101s.SubResource_STATUS) error
}

func init() {
	SchemeBuilder.Register(&PrivateDnsZonesVirtualNetworkLink{}, &PrivateDnsZonesVirtualNetworkLinkList{})
}
