ProductContract Constructors

Definition

Overloads

ProductContract()

Initializes a new instance of the ProductContract class.

ProductContract(String, String, String, String, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<ProductState>)

Initializes a new instance of the ProductContract class.

ProductContract()

Initializes a new instance of the ProductContract class.

public ProductContract ();
Public Sub New ()

Applies to

ProductContract(String, String, String, String, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<ProductState>)

Initializes a new instance of the ProductContract class.

public ProductContract (string displayName, string id = default, string name = default, string type = default, string description = default, string terms = default, bool? subscriptionRequired = default, bool? approvalRequired = default, int? subscriptionsLimit = default, Microsoft.Azure.Management.ApiManagement.Models.ProductState? state = default);
new Microsoft.Azure.Management.ApiManagement.Models.ProductContract : string * string * string * string * string * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<Microsoft.Azure.Management.ApiManagement.Models.ProductState> -> Microsoft.Azure.Management.ApiManagement.Models.ProductContract
Public Sub New (displayName As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional description As String = Nothing, Optional terms As String = Nothing, Optional subscriptionRequired As Nullable(Of Boolean) = Nothing, Optional approvalRequired As Nullable(Of Boolean) = Nothing, Optional subscriptionsLimit As Nullable(Of Integer) = Nothing, Optional state As Nullable(Of ProductState) = Nothing)

Parameters

displayName
String

Product name.

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"

description
String

Product description. May include HTML formatting tags.

terms
String

Product terms of use. Developers trying to subscribe to the product will be presented and required to accept these terms before they can complete the subscription process.

subscriptionRequired
Nullable<Boolean>

Whether a product subscription is required for accessing APIs included in this product. If true, the product is referred to as "protected" and a valid subscription key is required for a request to an API included in the product to succeed. If false, the product is referred to as "open" and requests to an API included in the product can be made without a subscription key. If property is omitted when creating a new product it's value is assumed to be true.

approvalRequired
Nullable<Boolean>

whether subscription approval is required. If false, new subscriptions will be approved automatically enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually approve the subscription before the developer can any of the product’s APIs. Can be present only if subscriptionRequired property is present and has a value of false.

subscriptionsLimit
Nullable<Int32>

Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of false.

state
Nullable<ProductState>

whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished. Possible values include: 'notPublished', 'published'

Applies to