Share via


VirtualNetworkRule Class

Definition

Virtual Network rule.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VirtualNetworkRuleTypeConverter))]
public class VirtualNetworkRule : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVirtualNetworkRule
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VirtualNetworkRuleTypeConverter))>]
type VirtualNetworkRule = class
    interface IVirtualNetworkRule
    interface IJsonSerializable
Public Class VirtualNetworkRule
Implements IVirtualNetworkRule
Inheritance
VirtualNetworkRule
Attributes
Implements

Constructors

VirtualNetworkRule()

Creates an new VirtualNetworkRule instance.

Properties

Action

The action of virtual network rule.

VirtualNetworkResourceId

Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of VirtualNetworkRule.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of VirtualNetworkRule.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVirtualNetworkRule.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of VirtualNetworkRule into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to