SubscriptionContract Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Subscription details.
[Microsoft.Rest.Serialization.JsonTransformation]
public class SubscriptionContract : Microsoft.Azure.Management.ApiManagement.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type SubscriptionContract = class
inherit Resource
Public Class SubscriptionContract
Inherits Resource
- Inheritance
- Attributes
Constructors
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. |
Properties
AllowTracing |
Gets or sets determines whether tracing is enabled |
CreatedDate |
Gets subscription creation date. The date conforms to the following
format: |
DisplayName |
Gets or sets the name of the subscription, or null if the subscription has no name. |
EndDate |
Gets or sets 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 |
ExpirationDate |
Gets or sets 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 |
Id |
Gets fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} (Inherited from Resource) |
Name |
Gets the name of the resource (Inherited from Resource) |
NotificationDate |
Gets or sets upcoming subscription expiration notification date.
The date conforms to the following format: |
OwnerId |
Gets or sets 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. |
OwnerIdentifier | |
PrimaryKey |
Gets or sets subscription primary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. |
Scope |
Gets or sets scope like /products/{productId} or /apis or /apis/{apiId}. |
ScopeIdentifier | |
SecondaryKey |
Gets or sets subscription secondary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. |
StartDate |
Gets or sets 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 |
Gets or sets 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,
|
StateComment |
Gets or sets optional subscription comment added by an administrator when the state is changed to the 'rejected'. |
Type |
Gets the type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" (Inherited from Resource) |
Methods
Validate() |
Validate the object. |