다음을 통해 공유


SubscriptionContract Constructors

Definition

Overloads

SubscriptionContract()

Initializes a new instance of the SubscriptionContract class.

SubscriptionContract(String, SubscriptionState, String, String, String, String, String, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>, String, String, String, Nullable<Boolean>)

Initializes a new instance of the SubscriptionContract class.

SubscriptionContract()

Initializes a new instance of the SubscriptionContract class.

public SubscriptionContract ();
Public Sub New ()

Applies to

SubscriptionContract(String, SubscriptionState, String, String, String, String, String, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>, String, String, String, Nullable<Boolean>)

Initializes a new instance of the SubscriptionContract class.

public SubscriptionContract (string scope, Microsoft.Azure.Management.ApiManagement.Models.SubscriptionState state, string id = default, string name = default, string type = default, string ownerId = default, string displayName = default, DateTime? createdDate = default, DateTime? startDate = default, DateTime? expirationDate = default, DateTime? endDate = default, DateTime? notificationDate = default, string primaryKey = default, string secondaryKey = default, string stateComment = default, bool? allowTracing = default);
new Microsoft.Azure.Management.ApiManagement.Models.SubscriptionContract : string * Microsoft.Azure.Management.ApiManagement.Models.SubscriptionState * string * string * string * string * string * Nullable<DateTime> * Nullable<DateTime> * Nullable<DateTime> * Nullable<DateTime> * Nullable<DateTime> * string * string * string * Nullable<bool> -> Microsoft.Azure.Management.ApiManagement.Models.SubscriptionContract
Public Sub New (scope As String, state As SubscriptionState, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional ownerId As String = Nothing, Optional displayName As String = Nothing, Optional createdDate As Nullable(Of DateTime) = Nothing, Optional startDate As Nullable(Of DateTime) = Nothing, Optional expirationDate As Nullable(Of DateTime) = Nothing, Optional endDate As Nullable(Of DateTime) = Nothing, Optional notificationDate As Nullable(Of DateTime) = Nothing, Optional primaryKey As String = Nothing, Optional secondaryKey As String = Nothing, Optional stateComment As String = Nothing, Optional allowTracing As Nullable(Of Boolean) = Nothing)

Parameters

scope
String

Scope like /products/{productId} or /apis or /apis/{apiId}.

state
SubscriptionState

Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated. Possible values include: 'suspended', 'active', 'expired', 'submitted', 'rejected', 'cancelled'

id
String

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name
String

The name of the resource

type
String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

ownerId
String

The user resource identifier of the subscription owner. The value is a valid relative URL in the format of /users/{userId} where {userId} is a user identifier.

displayName
String

The name of the subscription, or null if the subscription has no name.

createdDate
Nullable<DateTime>

Subscription creation date. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.

startDate
Nullable<DateTime>

Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the state property. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.

expirationDate
Nullable<DateTime>

Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the state property. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.

endDate
Nullable<DateTime>

Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the state property. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.

notificationDate
Nullable<DateTime>

Upcoming subscription expiration notification date. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.

primaryKey
String

Subscription primary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.

secondaryKey
String

Subscription secondary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.

stateComment
String

Optional subscription comment added by an administrator when the state is changed to the 'rejected'.

allowTracing
Nullable<Boolean>

Determines whether tracing is enabled

Applies to