ArmNetworkModelFactory.ServiceDelegation Method

Definition

Initializes a new instance of ServiceDelegation.

public static Azure.ResourceManager.Network.Models.ServiceDelegation ServiceDelegation (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType? resourceType = default, Azure.ETag? etag = default, string serviceName = default, System.Collections.Generic.IEnumerable<string> actions = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default);
static member ServiceDelegation : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * Nullable<Azure.ETag> * string * seq<string> * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> -> Azure.ResourceManager.Network.Models.ServiceDelegation
Public Shared Function ServiceDelegation (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional serviceName As String = Nothing, Optional actions As IEnumerable(Of String) = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing) As ServiceDelegation

Parameters

id
ResourceIdentifier

Resource ID.

name
String

Resource name.

resourceType
Nullable<ResourceType>

Resource type.

etag
Nullable<ETag>

A unique read-only string that changes whenever the resource is updated.

serviceName
String

The name of the service to whom the subnet should be delegated (e.g. Microsoft.Sql/servers).

actions
IEnumerable<String>

The actions permitted to the service upon delegation.

provisioningState
Nullable<NetworkProvisioningState>

The provisioning state of the service delegation resource.

Returns

A new ServiceDelegation instance for mocking.

Applies to