你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ProductUpdateParameters 构造函数

定义

重载

ProductUpdateParameters()

初始化 ProductUpdateParameters 类的新实例。

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

初始化 ProductUpdateParameters 类的新实例。

ProductUpdateParameters()

初始化 ProductUpdateParameters 类的新实例。

public ProductUpdateParameters ();
Public Sub New ()

适用于

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

初始化 ProductUpdateParameters 类的新实例。

public ProductUpdateParameters (string description = default, string terms = default, bool? subscriptionRequired = default, bool? approvalRequired = default, int? subscriptionsLimit = default, Microsoft.Azure.Management.ApiManagement.Models.ProductState? state = default, string displayName = default);
new Microsoft.Azure.Management.ApiManagement.Models.ProductUpdateParameters : string * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<Microsoft.Azure.Management.ApiManagement.Models.ProductState> * string -> Microsoft.Azure.Management.ApiManagement.Models.ProductUpdateParameters
Public Sub New (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, Optional displayName As String = Nothing)

参数

description
String

产品说明。 可以包含 HTML 格式标记。

terms
String

产品使用条款。 当开发人员尝试订阅此产品时,系统会显示这些条款,开发人员需接受这些条款才能完成订阅过程。

subscriptionRequired
Nullable<Boolean>

访问此产品中包含的 API 是否需要产品订阅。 如果为 true,则产品称为“受保护”,并且需要有效的订阅密钥才能成功请求产品中包含的 API。 如果为 false,则产品称为“打开”,并且无需订阅密钥即可对产品中包含的 API 发出请求。 如果在创建新产品时省略属性,则假定其值为 true。

approvalRequired
Nullable<Boolean>

是否需要订阅批准。 如果为 false,则新订阅将自动获得批准,使开发人员能够在订阅后立即调用产品的 API。 如果为 true,则管理员必须先手动批准订阅,然后开发人员才能使用产品的任何 API。 仅当 subscriptionRequired 属性存在且值为 false 时,才能存在。

subscriptionsLimit
Nullable<Int32>

用户是否可以同时拥有此产品的订阅数。 设置为 null 或省略以允许无限制的每个用户订阅。 仅当 subscriptionRequired 属性存在且值为 false 时,才能存在。

state
Nullable<ProductState>

是否发布产品。 开发人员门户的用户可发现已发布的产品。 未发布的产品仅对管理员可见。 产品的默认状态为 NotPublished。 可能的值包括:“notPublished”、“published”

displayName
String

产品名称。

适用于