ContentItem interface
表示 ContentItem 的接口。
方法
| create |
创建新的开发人员门户的内容项,由提供的内容类型指定。 |
| delete(string, string, string, string, string, Content |
删除指定的开发人员门户的内容项。 |
| get(string, string, string, string, Content |
返回开发人员门户的内容项,其标识符指定。 |
| get |
返回由其标识符指定的开发人员门户内容项的实体状态 (ETag) 版本。 |
| list |
列出由提供的内容类型指定的开发人员门户内容项。 |
方法详细信息
createOrUpdate(string, string, string, string, ContentItemContract, ContentItemCreateOrUpdateOptionalParams)
创建新的开发人员门户的内容项,由提供的内容类型指定。
function createOrUpdate(resourceGroupName: string, serviceName: string, contentTypeId: string, contentItemId: string, parameters: ContentItemContract, options?: ContentItemCreateOrUpdateOptionalParams): Promise<ContentItemCreateOrUpdateResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
API 管理服务的名称。
- contentTypeId
-
string
内容类型标识符。
- contentItemId
-
string
内容项标识符。
- parameters
- ContentItemContract
创建或更新参数。
选项参数。
返回
Promise<ContentItemCreateOrUpdateResponse>
delete(string, string, string, string, string, ContentItemDeleteOptionalParams)
删除指定的开发人员门户的内容项。
function delete(resourceGroupName: string, serviceName: string, contentTypeId: string, contentItemId: string, ifMatch: string, options?: ContentItemDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
API 管理服务的名称。
- contentTypeId
-
string
内容类型标识符。
- contentItemId
-
string
内容项标识符。
- ifMatch
-
string
实体的 ETag。 ETag 应与 GET 请求的标头响应中的当前实体状态匹配,或者它应为 * 进行无条件更新。
- options
- ContentItemDeleteOptionalParams
选项参数。
返回
Promise<void>
get(string, string, string, string, ContentItemGetOptionalParams)
返回开发人员门户的内容项,其标识符指定。
function get(resourceGroupName: string, serviceName: string, contentTypeId: string, contentItemId: string, options?: ContentItemGetOptionalParams): Promise<ContentItemGetResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
API 管理服务的名称。
- contentTypeId
-
string
内容类型标识符。
- contentItemId
-
string
内容项标识符。
- options
- ContentItemGetOptionalParams
选项参数。
返回
Promise<ContentItemGetResponse>
getEntityTag(string, string, string, string, ContentItemGetEntityTagOptionalParams)
返回由其标识符指定的开发人员门户内容项的实体状态 (ETag) 版本。
function getEntityTag(resourceGroupName: string, serviceName: string, contentTypeId: string, contentItemId: string, options?: ContentItemGetEntityTagOptionalParams): Promise<ContentItemGetEntityTagHeaders>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
API 管理服务的名称。
- contentTypeId
-
string
内容类型标识符。
- contentItemId
-
string
内容项标识符。
选项参数。
返回
Promise<ContentItemGetEntityTagHeaders>
listByService(string, string, string, ContentItemListByServiceOptionalParams)
列出由提供的内容类型指定的开发人员门户内容项。
function listByService(resourceGroupName: string, serviceName: string, contentTypeId: string, options?: ContentItemListByServiceOptionalParams): PagedAsyncIterableIterator<ContentItemContract, ContentItemContract[], PageSettings>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
API 管理服务的名称。
- contentTypeId
-
string
内容类型标识符。
选项参数。