// 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 FirewallRule_Spec struct {
	Name string `json:"name,omitempty"`

	// Properties: The resource-specific properties for this resource.
	Properties *FirewallRuleProperties `json:"properties,omitempty"`
}

var _ genruntime.ARMResourceSpec = &FirewallRule_Spec{}

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

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

// GetType returns the ARM Type of the resource. This is always "Microsoft.DocumentDB/mongoClusters/firewallRules"
func (rule *FirewallRule_Spec) GetType() string {
	return "Microsoft.DocumentDB/mongoClusters/firewallRules"
}

// The properties of a mongo cluster firewall rule.
type FirewallRuleProperties struct {
	// EndIpAddress: The end IP address of the mongo cluster firewall rule. Must be IPv4 format.
	EndIpAddress *string `json:"endIpAddress,omitempty"`

	// StartIpAddress: The start IP address of the mongo cluster firewall rule. Must be IPv4 format.
	StartIpAddress *string `json:"startIpAddress,omitempty"`
}
