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
System.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
System.String

Resource ID.

name
System.String

Resource name.

type
System.String

Resource type for API Management resource.

ownerId
System.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
System.String

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

createdDate
System.Nullable<System.DateTime>

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

startDate
System.Nullable<System.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
System.Nullable<System.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
System.Nullable<System.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
System.Nullable<System.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
System.String

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

secondaryKey
System.String

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

stateComment
System.String

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

allowTracing
System.Nullable<System.Boolean>

Determines whether tracing is enabled

Applies to