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

ContextsOperations interface

表示上下文作的接口。

属性

createOrUpdate

创建或更新上下文资源

delete
get

获取上下文资源

listByResourceGroup

按指定资源组列出

listBySubscription

按订阅列出

update

更新上下文资源

属性详细信息

createOrUpdate

创建或更新上下文资源

createOrUpdate: (resourceGroupName: string, contextName: string, resource: Context, options?: ContextsCreateOrUpdateOptionalParams) => PollerLike<OperationState<Context>, Context>

属性值

(resourceGroupName: string, contextName: string, resource: Context, options?: ContextsCreateOrUpdateOptionalParams) => PollerLike<OperationState<Context>, Context>

delete

delete: (resourceGroupName: string, contextName: string, options?: ContextsDeleteOptionalParams) => PollerLike<OperationState<void>, void>

属性值

(resourceGroupName: string, contextName: string, options?: ContextsDeleteOptionalParams) => PollerLike<OperationState<void>, void>

get

获取上下文资源

get: (resourceGroupName: string, contextName: string, options?: ContextsGetOptionalParams) => Promise<Context>

属性值

(resourceGroupName: string, contextName: string, options?: ContextsGetOptionalParams) => Promise<Context>

listByResourceGroup

按指定资源组列出

listByResourceGroup: (resourceGroupName: string, options?: ContextsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator<Context, Context[], PageSettings>

属性值

(resourceGroupName: string, options?: ContextsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator<Context, Context[], PageSettings>

listBySubscription

按订阅列出

listBySubscription: (options?: ContextsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator<Context, Context[], PageSettings>

属性值

(options?: ContextsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator<Context, Context[], PageSettings>

update

更新上下文资源

update: (resourceGroupName: string, contextName: string, properties: ContextUpdate, options?: ContextsUpdateOptionalParams) => PollerLike<OperationState<Context>, Context>

属性值

(resourceGroupName: string, contextName: string, properties: ContextUpdate, options?: ContextsUpdateOptionalParams) => PollerLike<OperationState<Context>, Context>