다음을 통해 공유


ProductContract Class

Definition

Product details.

[Microsoft.Rest.Serialization.JsonTransformation]
public class ProductContract : Microsoft.Azure.Management.ApiManagement.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type ProductContract = class
    inherit Resource
Public Class ProductContract
Inherits Resource
Inheritance
ProductContract
Attributes

Constructors

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.

Properties

ApprovalRequired

Gets or sets 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.

Description

Gets or sets product description. May include HTML formatting tags.

DisplayName

Gets or sets product name.

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)
State

Gets or sets 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'

SubscriptionRequired

Gets or sets 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.

SubscriptionsLimit

Gets or sets 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.

Terms

Gets or sets 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.

Type

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

(Inherited from Resource)

Methods

Validate()

Validate the object.

Applies to