Share via


FirewallRule Class

Definition

Represents a server firewall rule.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRuleTypeConverter))]
public class FirewallRule : Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRuleTypeConverter))>]
type FirewallRule = class
    interface IFirewallRule
    interface IJsonSerializable
    interface IResource
    interface IValidates
Public Class FirewallRule
Implements IFirewallRule, IValidates
Inheritance
FirewallRule
Attributes
Implements

Constructors

FirewallRule()

Creates an new FirewallRule instance.

Properties

EndIPAddress

The end IP address of the server firewall rule. Must be IPv4 format.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

Name

The name of the resource

StartIPAddress

The start IP address of the server firewall rule. Must be IPv4 format.

Type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of FirewallRule.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of FirewallRule.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule.

FromJsonString(String)

Creates a new instance of FirewallRule, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of FirewallRule into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to