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

ArmContainerInstanceModelFactory.ContainerResourceRequestsContent Method

Definition

public static Azure.ResourceManager.ContainerInstance.Models.ContainerResourceRequestsContent ContainerResourceRequestsContent(double memoryInGB = 0, double cpu = 0, Azure.ResourceManager.ContainerInstance.Models.ContainerGpuResourceInfo gpu = default);
static member ContainerResourceRequestsContent : double * double * Azure.ResourceManager.ContainerInstance.Models.ContainerGpuResourceInfo -> Azure.ResourceManager.ContainerInstance.Models.ContainerResourceRequestsContent
Public Shared Function ContainerResourceRequestsContent (Optional memoryInGB As Double = 0, Optional cpu As Double = 0, Optional gpu As ContainerGpuResourceInfo = Nothing) As ContainerResourceRequestsContent

Parameters

memoryInGB
Double

The memory request in GB of this container instance.

cpu
Double

The CPU request of this container instance.

gpu
ContainerGpuResourceInfo

The GPU request of this container instance.

Returns

A new ContainerResourceRequestsContent instance for mocking.

Applies to