共用方式為


MachineLearningModelVersionResource.Package Method

Definition

Model Version Package operation.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}/package
  • Operation Id: ModelVersions_Package
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MachineLearning.Models.ModelPackageResult> Package (Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ModelPackageContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member Package : Azure.WaitUntil * Azure.ResourceManager.MachineLearning.Models.ModelPackageContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MachineLearning.Models.ModelPackageResult>
override this.Package : Azure.WaitUntil * Azure.ResourceManager.MachineLearning.Models.ModelPackageContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MachineLearning.Models.ModelPackageResult>
Public Overridable Function Package (waitUntil As WaitUntil, content As ModelPackageContent, Optional cancellationToken As CancellationToken = Nothing) As 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