Share via


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

IGenericResources 接口

定义

泛型资源管理 API 的入口点。

public interface IGenericResources : Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsBatchCreation<Microsoft.Azure.Management.ResourceManager.Fluent.IGenericResource>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsCreating<Microsoft.Azure.Management.ResourceManager.Fluent.GenericResource.Definition.IBlank>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsListing<Microsoft.Azure.Management.ResourceManager.Fluent.IGenericResource>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsListingByResourceGroup<Microsoft.Azure.Management.ResourceManager.Fluent.IGenericResource>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsListingInResourceGroupByTag<Microsoft.Azure.Management.ResourceManager.Fluent.IGenericResource>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IHasInner<Microsoft.Azure.Management.ResourceManager.Fluent.IResourcesOperations>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IHasManager<Microsoft.Azure.Management.ResourceManager.Fluent.IResourceManager>
type IGenericResources = interface
    interface ISupportsListing<IGenericResource>
    interface ISupportsListingByResourceGroup<IGenericResource>
    interface ISupportsListingInResourceGroupByTag<IGenericResource>
    interface ISupportsCreating<IBlank>
    interface ISupportsBatchCreation<IGenericResource>
    interface IHasManager<IResourceManager>
    interface IHasInner<IResourcesOperations>
Public Interface IGenericResources
Implements IHasInner(Of IResourcesOperations), IHasManager(Of IResourceManager), ISupportsBatchCreation(Of IGenericResource), ISupportsCreating(Of IBlank), ISupportsListing(Of IGenericResource), ISupportsListingByResourceGroup(Of IGenericResource), ISupportsListingInResourceGroupByTag(Of IGenericResource)
实现

属性

Inner

泛型资源管理 API 的入口点。

(继承自 IHasInner<T>)
Manager

获取此资源类型的管理器客户端类型。

(继承自 IHasManager<ManagerT>)

方法

CheckExistence(String, String, String, String, String, String)

检查资源组中是否存在资源。

CheckExistenceAsync(String, String, String, String, String, String, CancellationToken)

异步检查资源组中是否存在资源。

Create(ICreatable<IFluentResourceT>[])

创建一组 (批量) 资源。

(继承自 ISupportsBatchCreation<IFluentResourceT>)
Create(IEnumerable<ICreatable<IFluentResourceT>>)

创建一组 (批量) 资源。

(继承自 ISupportsBatchCreation<IFluentResourceT>)
CreateAsync(IEnumerable<ICreatable<IFluentResourceT>>, CancellationToken)

创建一组 (批量) 资源。

(继承自 ISupportsBatchCreation<IFluentResourceT>)
Define(String)

泛型资源管理 API 的入口点。

(继承自 ISupportsCreating<T>)
Delete(String, String, String, String, String, String)

删除资源及其所有子资源。

DeleteAsync(String, String, String, String, String, String, CancellationToken)

异步删除资源及其所有子资源。

DeleteById(String, String)

按资源 ID 删除资源及其所有子资源。

DeleteByIdAsync(String, String, CancellationToken)

按资源 ID 异步删除资源及其所有子资源。

Get(String, String, String, String, String, String)

返回属于资源组的资源。

GetAsync(String, String, String, String, String, String, CancellationToken)

异步返回属于资源组的资源。

GetById(String, String)

按资源 ID 返回资源。

GetByIdAsync(String, String, CancellationToken)

按资源 ID 异步返回资源。

List()

列出当前所选订阅中指定类型的所有资源。

(继承自 ISupportsListing<T>)
ListAsync(Boolean, CancellationToken)

列出当前所选订阅中指定类型的所有资源。

(继承自 ISupportsListing<T>)
ListByResourceGroup(String)

列出指定资源组中指定类型的资源。

(继承自 ISupportsListingByResourceGroup<T>)
ListByResourceGroupAsync(String, Boolean, CancellationToken)

列出指定资源组中指定类型的资源。

(继承自 ISupportsListingByResourceGroup<T>)
ListByTag(String, String, String)

列出具有指定标记的所有资源。

(继承自 ISupportsListingInResourceGroupByTag<T>)
ListByTagAsync(String, String, String, Boolean, CancellationToken)

列出具有指定标记的所有资源。

(继承自 ISupportsListingInResourceGroupByTag<T>)
MoveResources(String, IResourceGroup, IList<String>)

将资源从一个资源组移到另一个资源组。

MoveResourcesAsync(String, IResourceGroup, IList<String>, CancellationToken)

以异步方式将资源从一个资源组移到另一个资源组。

适用于