Share via


MachineLearningRegistryModelVersionResource.PackageAsync Method

Definition

Model Version Package operation.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}/package
  • Operation Id: RegistryModelVersions_Package
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MachineLearning.Models.ModelPackageResult>> PackageAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ModelPackageContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member PackageAsync : Azure.WaitUntil * Azure.ResourceManager.MachineLearning.Models.ModelPackageContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MachineLearning.Models.ModelPackageResult>>
override this.PackageAsync : Azure.WaitUntil * Azure.ResourceManager.MachineLearning.Models.ModelPackageContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MachineLearning.Models.ModelPackageResult>>
Public Overridable Function PackageAsync (waitUntil As WaitUntil, content As ModelPackageContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ModelPackageResult))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

content
ModelPackageContent

Package operation request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to