/// <summary>
 /// Initializes a new instance of the Subscription class.
 /// </summary>
 /// <param name="id">The fully qualified ID for the subscription. For
 /// example,
 /// /subscriptions/00000000-0000-0000-0000-000000000000.</param>
 /// <param name="subscriptionId">The subscription ID.</param>
 /// <param name="displayName">The subscription display name.</param>
 /// <param name="state">The subscription state. Possible values are
 /// Enabled, Warned, PastDue, Disabled, and Deleted. Possible values
 /// include: 'Enabled', 'Warned', 'PastDue', 'Disabled',
 /// 'Deleted'</param>
 /// <param name="subscriptionPolicies">The subscription
 /// policies.</param>
 /// <param name="authorizationSource">The authorization source of the
 /// request. Valid values are one or more combinations of Legacy,
 /// RoleBased, Bypassed, Direct and Management. For example, 'Legacy,
 /// RoleBased'.</param>
 public Subscription(string id = default(string), string subscriptionId = default(string), string displayName = default(string), SubscriptionState?state = default(SubscriptionState?), SubscriptionPolicies subscriptionPolicies = default(SubscriptionPolicies), string authorizationSource = default(string))
 {
     Id                   = id;
     SubscriptionId       = subscriptionId;
     DisplayName          = displayName;
     State                = state;
     SubscriptionPolicies = subscriptionPolicies;
     AuthorizationSource  = authorizationSource;
     CustomInit();
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the Subscription class.
 /// </summary>
 /// <param name="id">The ID of the resource (/subscriptions/SubscriptionId).</param>
 /// <param name="subscriptionId">The subscription Id.</param>
 /// <param name="tenantId">The tenant Id.</param>
 /// <param name="displayName">The subscription display name.</param>
 /// <param name="state">The subscription state.</param>
 /// <param name="subscriptionPolicies">The subscription policies.</param>
 /// <param name="authorizationSource">The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.</param>
 public Subscription(string id = default(string), string subscriptionId = default(string), string tenantId = default(string), string displayName = default(string), string state = default(string), SubscriptionPolicies subscriptionPolicies = default(SubscriptionPolicies), string authorizationSource = default(string))
 {
     Id                   = id;
     SubscriptionId       = subscriptionId;
     TenantId             = tenantId;
     DisplayName          = displayName;
     State                = state;
     SubscriptionPolicies = subscriptionPolicies;
     AuthorizationSource  = authorizationSource;
 }
 /// <summary>
 /// Initializes a new instance of the Subscription class.
 /// </summary>
 /// <param name="id">The fully qualified ID for the subscription. For
 /// example,
 /// /subscriptions/00000000-0000-0000-0000-000000000000.</param>
 /// <param name="subscriptionId">The subscription ID.</param>
 /// <param name="displayName">The subscription display name.</param>
 /// <param name="tenantId">The subscription tenant ID.</param>
 /// <param name="state">The subscription state. Possible values are
 /// Enabled, Warned, PastDue, Disabled, and Deleted. Possible values
 /// include: 'Enabled', 'Warned', 'PastDue', 'Disabled',
 /// 'Deleted'</param>
 /// <param name="subscriptionPolicies">The subscription
 /// policies.</param>
 /// <param name="authorizationSource">The authorization source of the
 /// request. Valid values are one or more combinations of Legacy,
 /// RoleBased, Bypassed, Direct and Management. For example, 'Legacy,
 /// RoleBased'.</param>
 /// <param name="managedByTenants">An array containing the tenants
 /// managing the subscription.</param>
 /// <param name="tags">The tags attached to the subscription.</param>
 public Subscription(string id = default(string), string subscriptionId = default(string), string displayName = default(string), string tenantId = default(string), SubscriptionState?state = default(SubscriptionState?), SubscriptionPolicies subscriptionPolicies = default(SubscriptionPolicies), string authorizationSource = default(string), IList <ManagedByTenant> managedByTenants = default(IList <ManagedByTenant>), IDictionary <string, string> tags = default(IDictionary <string, string>))
 {
     Id                   = id;
     SubscriptionId       = subscriptionId;
     DisplayName          = displayName;
     TenantId             = tenantId;
     State                = state;
     SubscriptionPolicies = subscriptionPolicies;
     AuthorizationSource  = authorizationSource;
     ManagedByTenants     = managedByTenants;
     Tags                 = tags;
     CustomInit();
 }