Delen via


ApiManagementSubscriptionCreateOrUpdateContent Class

Definition

Subscription create details.

public class ApiManagementSubscriptionCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ApiManagement.Models.ApiManagementSubscriptionCreateOrUpdateContent>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ApiManagement.Models.ApiManagementSubscriptionCreateOrUpdateContent>
type ApiManagementSubscriptionCreateOrUpdateContent = class
    interface IJsonModel<ApiManagementSubscriptionCreateOrUpdateContent>
    interface IPersistableModel<ApiManagementSubscriptionCreateOrUpdateContent>
Public Class ApiManagementSubscriptionCreateOrUpdateContent
Implements IJsonModel(Of ApiManagementSubscriptionCreateOrUpdateContent), IPersistableModel(Of ApiManagementSubscriptionCreateOrUpdateContent)
Inheritance
ApiManagementSubscriptionCreateOrUpdateContent
Implements

Constructors

ApiManagementSubscriptionCreateOrUpdateContent()

Initializes a new instance of ApiManagementSubscriptionCreateOrUpdateContent.

Properties

AllowTracing

Determines whether tracing can be enabled.

DisplayName

Subscription name.

OwnerId

User (user id path) for whom subscription is being created in form /users/{userId}.

PrimaryKey

Primary subscription key. If not specified during request key will be generated automatically.

Scope

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

SecondaryKey

Secondary subscription key. If not specified during request key will be generated automatically.

State

Initial subscription state. If no value is specified, subscription is created with Submitted 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.

Explicit Interface Implementations

IJsonModel<ApiManagementSubscriptionCreateOrUpdateContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ApiManagementSubscriptionCreateOrUpdateContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ApiManagementSubscriptionCreateOrUpdateContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ApiManagementSubscriptionCreateOrUpdateContent>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ApiManagementSubscriptionCreateOrUpdateContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to