你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CustomImages interface
表示 CustomImages 的接口。
方法
begin |
创建或替换现有的自定义映像。 此作可能需要一段时间才能完成。 |
begin |
创建或替换现有的自定义映像。 此作可能需要一段时间才能完成。 |
begin |
删除自定义映像。 此作可能需要一段时间才能完成。 |
begin |
删除自定义映像。 此作可能需要一段时间才能完成。 |
get(string, string, string, Custom |
获取自定义映像。 |
list(string, string, Custom |
列出给定实验室中的自定义映像。 |
update(string, string, string, Custom |
允许修改自定义映像的标记。 将忽略所有其他属性。 |
方法详细信息
beginCreateOrUpdate(string, string, string, CustomImage, CustomImagesCreateOrUpdateOptionalParams)
创建或替换现有的自定义映像。 此作可能需要一段时间才能完成。
function beginCreateOrUpdate(resourceGroupName: string, labName: string, name: string, customImage: CustomImage, options?: CustomImagesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<CustomImage>, CustomImage>>
参数
- resourceGroupName
-
string
资源组的名称。
- labName
-
string
实验室的名称。
- name
-
string
自定义映像的名称。
- customImage
- CustomImage
自定义映像。
选项参数。
返回
Promise<PollerLike<@azure/core-lro.PollOperationState<CustomImage>, CustomImage>>
beginCreateOrUpdateAndWait(string, string, string, CustomImage, CustomImagesCreateOrUpdateOptionalParams)
创建或替换现有的自定义映像。 此作可能需要一段时间才能完成。
function beginCreateOrUpdateAndWait(resourceGroupName: string, labName: string, name: string, customImage: CustomImage, options?: CustomImagesCreateOrUpdateOptionalParams): Promise<CustomImage>
参数
- resourceGroupName
-
string
资源组的名称。
- labName
-
string
实验室的名称。
- name
-
string
自定义映像的名称。
- customImage
- CustomImage
自定义映像。
选项参数。
返回
Promise<CustomImage>
beginDelete(string, string, string, CustomImagesDeleteOptionalParams)
删除自定义映像。 此作可能需要一段时间才能完成。
function beginDelete(resourceGroupName: string, labName: string, name: string, options?: CustomImagesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>
参数
- resourceGroupName
-
string
资源组的名称。
- labName
-
string
实验室的名称。
- name
-
string
自定义映像的名称。
- options
- CustomImagesDeleteOptionalParams
选项参数。
返回
Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>
beginDeleteAndWait(string, string, string, CustomImagesDeleteOptionalParams)
删除自定义映像。 此作可能需要一段时间才能完成。
function beginDeleteAndWait(resourceGroupName: string, labName: string, name: string, options?: CustomImagesDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。
- labName
-
string
实验室的名称。
- name
-
string
自定义映像的名称。
- options
- CustomImagesDeleteOptionalParams
选项参数。
返回
Promise<void>
get(string, string, string, CustomImagesGetOptionalParams)
获取自定义映像。
function get(resourceGroupName: string, labName: string, name: string, options?: CustomImagesGetOptionalParams): Promise<CustomImage>
参数
- resourceGroupName
-
string
资源组的名称。
- labName
-
string
实验室的名称。
- name
-
string
自定义映像的名称。
- options
- CustomImagesGetOptionalParams
选项参数。
返回
Promise<CustomImage>
list(string, string, CustomImagesListOptionalParams)
列出给定实验室中的自定义映像。
function list(resourceGroupName: string, labName: string, options?: CustomImagesListOptionalParams): PagedAsyncIterableIterator<CustomImage, CustomImage[], PageSettings>
参数
- resourceGroupName
-
string
资源组的名称。
- labName
-
string
实验室的名称。
- options
- CustomImagesListOptionalParams
选项参数。
返回
update(string, string, string, CustomImageFragment, CustomImagesUpdateOptionalParams)
允许修改自定义映像的标记。 将忽略所有其他属性。
function update(resourceGroupName: string, labName: string, name: string, customImage: CustomImageFragment, options?: CustomImagesUpdateOptionalParams): Promise<CustomImage>
参数
- resourceGroupName
-
string
资源组的名称。
- labName
-
string
实验室的名称。
- name
-
string
自定义映像的名称。
- customImage
- CustomImageFragment
自定义映像。
- options
- CustomImagesUpdateOptionalParams
选项参数。
返回
Promise<CustomImage>