ResourceManagerModelFactory.SubscriptionData Method

Definition

Initializes a new instance of SubscriptionData.

public static Azure.ResourceManager.Resources.SubscriptionData SubscriptionData (Azure.Core.ResourceIdentifier id = default, string subscriptionId = default, string displayName = default, Guid? tenantId = default, Azure.ResourceManager.Resources.Models.SubscriptionState? state = default, Azure.ResourceManager.Resources.Models.SubscriptionPolicies subscriptionPolicies = default, string authorizationSource = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.ManagedByTenant> managedByTenants = default, System.Collections.Generic.IReadOnlyDictionary<string,string> tags = default);
static member SubscriptionData : Azure.Core.ResourceIdentifier * string * string * Nullable<Guid> * Nullable<Azure.ResourceManager.Resources.Models.SubscriptionState> * Azure.ResourceManager.Resources.Models.SubscriptionPolicies * string * seq<Azure.ResourceManager.Resources.Models.ManagedByTenant> * System.Collections.Generic.IReadOnlyDictionary<string, string> -> Azure.ResourceManager.Resources.SubscriptionData
Public Shared Function SubscriptionData (Optional id As ResourceIdentifier = Nothing, Optional subscriptionId As String = Nothing, Optional displayName As String = Nothing, Optional tenantId As Nullable(Of Guid) = Nothing, Optional state As Nullable(Of SubscriptionState) = Nothing, Optional subscriptionPolicies As SubscriptionPolicies = Nothing, Optional authorizationSource As String = Nothing, Optional managedByTenants As IEnumerable(Of ManagedByTenant) = Nothing, Optional tags As IReadOnlyDictionary(Of String, String) = Nothing) As SubscriptionData

Parameters

id
ResourceIdentifier

The fully qualified ID for the subscription. For example, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74.

subscriptionId
String

The subscription ID.

displayName
String

The subscription display name.

tenantId
Nullable<Guid>

The subscription tenant ID.

state
Nullable<SubscriptionState>

The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.

subscriptionPolicies
SubscriptionPolicies

The subscription policies.

authorizationSource
String

The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.

managedByTenants
IEnumerable<ManagedByTenant>

An array containing the tenants managing the subscription.

tags
IReadOnlyDictionary<String,String>

The tags attached to the subscription.

Returns

A new SubscriptionData instance for mocking.

Applies to