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

import "github.com/Azure/azure-service-operator/v2/pkg/genruntime"

type ServersVirtualNetworkRule_Spec struct {
	Name string `json:"name,omitempty"`

	// Properties: Resource properties.
	Properties *VirtualNetworkRuleProperties `json:"properties,omitempty"`
}

var _ genruntime.ARMResourceSpec = &ServersVirtualNetworkRule_Spec{}

// GetAPIVersion returns the ARM API version of the resource. This is always "2021-11-01"
func (rule ServersVirtualNetworkRule_Spec) GetAPIVersion() string {
	return "2021-11-01"
}

// GetName returns the Name of the resource
func (rule *ServersVirtualNetworkRule_Spec) GetName() string {
	return rule.Name
}

// GetType returns the ARM Type of the resource. This is always "Microsoft.Sql/servers/virtualNetworkRules"
func (rule *ServersVirtualNetworkRule_Spec) GetType() string {
	return "Microsoft.Sql/servers/virtualNetworkRules"
}

// Properties of a virtual network rule.
type VirtualNetworkRuleProperties struct {
	// IgnoreMissingVnetServiceEndpoint: Create firewall rule before the virtual network has vnet service endpoint enabled.
	IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"`

	// VirtualNetworkSubnetId: The ARM resource id of the virtual network subnet.
	VirtualNetworkSubnetId *string `json:"virtualNetworkSubnetId,omitempty"`
}
