ArmHybridComputeModelFactory.HybridComputeAccessRule Method

Definition

Initializes a new instance of HybridComputeAccessRule.

public static Azure.ResourceManager.HybridCompute.Models.HybridComputeAccessRule HybridComputeAccessRule (string name = default, Azure.ResourceManager.HybridCompute.Models.HybridComputeAccessRuleDirection? direction = default, System.Collections.Generic.IEnumerable<string> addressPrefixes = default);
static member HybridComputeAccessRule : string * Nullable<Azure.ResourceManager.HybridCompute.Models.HybridComputeAccessRuleDirection> * seq<string> -> Azure.ResourceManager.HybridCompute.Models.HybridComputeAccessRule
Public Shared Function HybridComputeAccessRule (Optional name As String = Nothing, Optional direction As Nullable(Of HybridComputeAccessRuleDirection) = Nothing, Optional addressPrefixes As IEnumerable(Of String) = Nothing) As HybridComputeAccessRule

Parameters

name
String

Name of the access rule.

direction
Nullable<HybridComputeAccessRuleDirection>

Direction of the access rule.

addressPrefixes
IEnumerable<String>

Address prefixes that are allowed access.

Returns

A new HybridComputeAccessRule instance for mocking.

Applies to