共用方式為


MachineLearningCodeVersionCollection Class

Definition

A class representing a collection of MachineLearningCodeVersionResource and their operations. Each MachineLearningCodeVersionResource in the collection will belong to the same instance of MachineLearningCodeContainerResource. To get a MachineLearningCodeVersionCollection instance call the GetMachineLearningCodeVersions method from an instance of MachineLearningCodeContainerResource.

public class MachineLearningCodeVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionResource>
type MachineLearningCodeVersionCollection = class
    inherit ArmCollection
    interface seq<MachineLearningCodeVersionResource>
    interface IEnumerable
    interface IAsyncEnumerable<MachineLearningCodeVersionResource>
Public Class MachineLearningCodeVersionCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of MachineLearningCodeVersionResource), IEnumerable(Of MachineLearningCodeVersionResource)
Inheritance
MachineLearningCodeVersionCollection
Implements

Constructors

MachineLearningCodeVersionCollection()

Initializes a new instance of the MachineLearningCodeVersionCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, MachineLearningCodeVersionData, CancellationToken)

Create or update version.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}
  • Operation Id: CodeVersions_CreateOrUpdate
  • Default Api Version: 2024-04-01
  • Resource: MachineLearningCodeVersionResource
CreateOrUpdateAsync(WaitUntil, String, MachineLearningCodeVersionData, CancellationToken)

Create or update version.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}
  • Operation Id: CodeVersions_CreateOrUpdate
  • Default Api Version: 2024-04-01
  • Resource: MachineLearningCodeVersionResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}
  • Operation Id: CodeVersions_Get
  • Default Api Version: 2024-04-01
  • Resource: MachineLearningCodeVersionResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}
  • Operation Id: CodeVersions_Get
  • Default Api Version: 2024-04-01
  • Resource: MachineLearningCodeVersionResource
Get(String, CancellationToken)

Get version.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}
  • Operation Id: CodeVersions_Get
  • Default Api Version: 2024-04-01
  • Resource: MachineLearningCodeVersionResource
GetAll(String, Nullable<Int32>, String, String, String, CancellationToken)

List versions.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions
  • Operation Id: CodeVersions_List
  • Default Api Version: 2024-04-01
  • Resource: MachineLearningCodeVersionResource
GetAllAsync(String, Nullable<Int32>, String, String, String, CancellationToken)

List versions.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions
  • Operation Id: CodeVersions_List
  • Default Api Version: 2024-04-01
  • Resource: MachineLearningCodeVersionResource
GetAsync(String, CancellationToken)

Get version.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}
  • Operation Id: CodeVersions_Get
  • Default Api Version: 2024-04-01
  • Resource: MachineLearningCodeVersionResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}
  • Operation Id: CodeVersions_Get
  • Default Api Version: 2024-04-01
  • Resource: MachineLearningCodeVersionResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}
  • Operation Id: CodeVersions_Get
  • Default Api Version: 2024-04-01
  • Resource: MachineLearningCodeVersionResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<MachineLearningCodeVersionResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<MachineLearningCodeVersionResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to