CommitmentPlans class

Class representing a CommitmentPlans.

Constructors

CommitmentPlans(AzureMLCommitmentPlansManagementClientContext)

Create a CommitmentPlans.

Methods

createOrUpdate(CommitmentPlan, string, string, RequestOptionsBase)

Create a new Azure ML commitment plan resource or updates an existing one.

createOrUpdate(CommitmentPlan, string, string, RequestOptionsBase, ServiceCallback<CommitmentPlan>)
createOrUpdate(CommitmentPlan, string, string, ServiceCallback<CommitmentPlan>)
get(string, string, RequestOptionsBase)

Retrieve an Azure ML commitment plan by its subscription, resource group and name.

get(string, string, RequestOptionsBase, ServiceCallback<CommitmentPlan>)
get(string, string, ServiceCallback<CommitmentPlan>)
list(CommitmentPlansListOptionalParams)

Retrieve all Azure ML commitment plans in a subscription.

list(CommitmentPlansListOptionalParams, ServiceCallback<CommitmentPlanListResult>)
list(ServiceCallback<CommitmentPlanListResult>)
listInResourceGroup(string, CommitmentPlansListInResourceGroupOptionalParams)

Retrieve all Azure ML commitment plans in a resource group.

listInResourceGroup(string, CommitmentPlansListInResourceGroupOptionalParams, ServiceCallback<CommitmentPlanListResult>)
listInResourceGroup(string, ServiceCallback<CommitmentPlanListResult>)
listInResourceGroupNext(string, RequestOptionsBase)

Retrieve all Azure ML commitment plans in a resource group.

listInResourceGroupNext(string, RequestOptionsBase, ServiceCallback<CommitmentPlanListResult>)
listInResourceGroupNext(string, ServiceCallback<CommitmentPlanListResult>)
listNext(string, RequestOptionsBase)

Retrieve all Azure ML commitment plans in a subscription.

listNext(string, RequestOptionsBase, ServiceCallback<CommitmentPlanListResult>)
listNext(string, ServiceCallback<CommitmentPlanListResult>)
patch(CommitmentPlanPatchPayload, string, string, RequestOptionsBase)

Patch an existing Azure ML commitment plan resource.

patch(CommitmentPlanPatchPayload, string, string, RequestOptionsBase, ServiceCallback<CommitmentPlan>)
patch(CommitmentPlanPatchPayload, string, string, ServiceCallback<CommitmentPlan>)
remove(string, string, RequestOptionsBase)

Remove an existing Azure ML commitment plan.

remove(string, string, RequestOptionsBase, ServiceCallback<void>)
remove(string, string, ServiceCallback<void>)

Constructor Details

CommitmentPlans(AzureMLCommitmentPlansManagementClientContext)

Create a CommitmentPlans.

new CommitmentPlans(client: AzureMLCommitmentPlansManagementClientContext)

Parameters

client
AzureMLCommitmentPlansManagementClientContext

Reference to the service client.

Method Details

createOrUpdate(CommitmentPlan, string, string, RequestOptionsBase)

Create a new Azure ML commitment plan resource or updates an existing one.

function createOrUpdate(createOrUpdatePayload: CommitmentPlan, resourceGroupName: string, commitmentPlanName: string, options?: RequestOptionsBase): Promise<CommitmentPlansCreateOrUpdateResponse>

Parameters

createOrUpdatePayload
CommitmentPlan

The payload to create or update the Azure ML commitment plan.

resourceGroupName

string

The resource group name.

commitmentPlanName

string

The Azure ML commitment plan name.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.CommitmentPlansCreateOrUpdateResponse>

createOrUpdate(CommitmentPlan, string, string, RequestOptionsBase, ServiceCallback<CommitmentPlan>)

function createOrUpdate(createOrUpdatePayload: CommitmentPlan, resourceGroupName: string, commitmentPlanName: string, options: RequestOptionsBase, callback: ServiceCallback<CommitmentPlan>)

Parameters

createOrUpdatePayload
CommitmentPlan

The payload to create or update the Azure ML commitment plan.

resourceGroupName

string

The resource group name.

commitmentPlanName

string

The Azure ML commitment plan name.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<CommitmentPlan>

The callback

createOrUpdate(CommitmentPlan, string, string, ServiceCallback<CommitmentPlan>)

function createOrUpdate(createOrUpdatePayload: CommitmentPlan, resourceGroupName: string, commitmentPlanName: string, callback: ServiceCallback<CommitmentPlan>)

Parameters

createOrUpdatePayload
CommitmentPlan

The payload to create or update the Azure ML commitment plan.

resourceGroupName

string

The resource group name.

commitmentPlanName

string

The Azure ML commitment plan name.

callback

ServiceCallback<CommitmentPlan>

The callback

get(string, string, RequestOptionsBase)

Retrieve an Azure ML commitment plan by its subscription, resource group and name.

function get(resourceGroupName: string, commitmentPlanName: string, options?: RequestOptionsBase): Promise<CommitmentPlansGetResponse>

Parameters

resourceGroupName

string

The resource group name.

commitmentPlanName

string

The Azure ML commitment plan name.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.CommitmentPlansGetResponse>

get(string, string, RequestOptionsBase, ServiceCallback<CommitmentPlan>)

function get(resourceGroupName: string, commitmentPlanName: string, options: RequestOptionsBase, callback: ServiceCallback<CommitmentPlan>)

Parameters

resourceGroupName

string

The resource group name.

commitmentPlanName

string

The Azure ML commitment plan name.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<CommitmentPlan>

The callback

get(string, string, ServiceCallback<CommitmentPlan>)

function get(resourceGroupName: string, commitmentPlanName: string, callback: ServiceCallback<CommitmentPlan>)

Parameters

resourceGroupName

string

The resource group name.

commitmentPlanName

string

The Azure ML commitment plan name.

callback

ServiceCallback<CommitmentPlan>

The callback

list(CommitmentPlansListOptionalParams)

Retrieve all Azure ML commitment plans in a subscription.

function list(options?: CommitmentPlansListOptionalParams): Promise<CommitmentPlansListResponse>

Parameters

options
CommitmentPlansListOptionalParams

The optional parameters

Returns

Promise<Models.CommitmentPlansListResponse>

list(CommitmentPlansListOptionalParams, ServiceCallback<CommitmentPlanListResult>)

function list(options: CommitmentPlansListOptionalParams, callback: ServiceCallback<CommitmentPlanListResult>)

Parameters

options
CommitmentPlansListOptionalParams

The optional parameters

callback

ServiceCallback<CommitmentPlanListResult>

The callback

list(ServiceCallback<CommitmentPlanListResult>)

function list(callback: ServiceCallback<CommitmentPlanListResult>)

Parameters

callback

ServiceCallback<CommitmentPlanListResult>

The callback

listInResourceGroup(string, CommitmentPlansListInResourceGroupOptionalParams)

Retrieve all Azure ML commitment plans in a resource group.

function listInResourceGroup(resourceGroupName: string, options?: CommitmentPlansListInResourceGroupOptionalParams): Promise<CommitmentPlansListInResourceGroupResponse>

Parameters

resourceGroupName

string

The resource group name.

options
CommitmentPlansListInResourceGroupOptionalParams

The optional parameters

Returns

Promise<Models.CommitmentPlansListInResourceGroupResponse>

listInResourceGroup(string, CommitmentPlansListInResourceGroupOptionalParams, ServiceCallback<CommitmentPlanListResult>)

function listInResourceGroup(resourceGroupName: string, options: CommitmentPlansListInResourceGroupOptionalParams, callback: ServiceCallback<CommitmentPlanListResult>)

Parameters

resourceGroupName

string

The resource group name.

options
CommitmentPlansListInResourceGroupOptionalParams

The optional parameters

callback

ServiceCallback<CommitmentPlanListResult>

The callback

listInResourceGroup(string, ServiceCallback<CommitmentPlanListResult>)

function listInResourceGroup(resourceGroupName: string, callback: ServiceCallback<CommitmentPlanListResult>)

Parameters

resourceGroupName

string

The resource group name.

callback

ServiceCallback<CommitmentPlanListResult>

The callback

listInResourceGroupNext(string, RequestOptionsBase)

Retrieve all Azure ML commitment plans in a resource group.

function listInResourceGroupNext(nextPageLink: string, options?: RequestOptionsBase): Promise<CommitmentPlansListInResourceGroupNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.CommitmentPlansListInResourceGroupNextResponse>

listInResourceGroupNext(string, RequestOptionsBase, ServiceCallback<CommitmentPlanListResult>)

function listInResourceGroupNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<CommitmentPlanListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<CommitmentPlanListResult>

The callback

listInResourceGroupNext(string, ServiceCallback<CommitmentPlanListResult>)

function listInResourceGroupNext(nextPageLink: string, callback: ServiceCallback<CommitmentPlanListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<CommitmentPlanListResult>

The callback

listNext(string, RequestOptionsBase)

Retrieve all Azure ML commitment plans in a subscription.

function listNext(nextPageLink: string, options?: RequestOptionsBase): Promise<CommitmentPlansListNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.CommitmentPlansListNextResponse>

listNext(string, RequestOptionsBase, ServiceCallback<CommitmentPlanListResult>)

function listNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<CommitmentPlanListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<CommitmentPlanListResult>

The callback

listNext(string, ServiceCallback<CommitmentPlanListResult>)

function listNext(nextPageLink: string, callback: ServiceCallback<CommitmentPlanListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<CommitmentPlanListResult>

The callback

patch(CommitmentPlanPatchPayload, string, string, RequestOptionsBase)

Patch an existing Azure ML commitment plan resource.

function patch(patchPayload: CommitmentPlanPatchPayload, resourceGroupName: string, commitmentPlanName: string, options?: RequestOptionsBase): Promise<CommitmentPlansPatchResponse>

Parameters

patchPayload
CommitmentPlanPatchPayload

The payload to use to patch the Azure ML commitment plan. Only tags and SKU may be modified on an existing commitment plan.

resourceGroupName

string

The resource group name.

commitmentPlanName

string

The Azure ML commitment plan name.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.CommitmentPlansPatchResponse>

patch(CommitmentPlanPatchPayload, string, string, RequestOptionsBase, ServiceCallback<CommitmentPlan>)

function patch(patchPayload: CommitmentPlanPatchPayload, resourceGroupName: string, commitmentPlanName: string, options: RequestOptionsBase, callback: ServiceCallback<CommitmentPlan>)

Parameters

patchPayload
CommitmentPlanPatchPayload

The payload to use to patch the Azure ML commitment plan. Only tags and SKU may be modified on an existing commitment plan.

resourceGroupName

string

The resource group name.

commitmentPlanName

string

The Azure ML commitment plan name.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<CommitmentPlan>

The callback

patch(CommitmentPlanPatchPayload, string, string, ServiceCallback<CommitmentPlan>)

function patch(patchPayload: CommitmentPlanPatchPayload, resourceGroupName: string, commitmentPlanName: string, callback: ServiceCallback<CommitmentPlan>)

Parameters

patchPayload
CommitmentPlanPatchPayload

The payload to use to patch the Azure ML commitment plan. Only tags and SKU may be modified on an existing commitment plan.

resourceGroupName

string

The resource group name.

commitmentPlanName

string

The Azure ML commitment plan name.

callback

ServiceCallback<CommitmentPlan>

The callback

remove(string, string, RequestOptionsBase)

Remove an existing Azure ML commitment plan.

function remove(resourceGroupName: string, commitmentPlanName: string, options?: RequestOptionsBase): Promise<RestResponse>

Parameters

resourceGroupName

string

The resource group name.

commitmentPlanName

string

The Azure ML commitment plan name.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

remove(string, string, RequestOptionsBase, ServiceCallback<void>)

function remove(resourceGroupName: string, commitmentPlanName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

The resource group name.

commitmentPlanName

string

The Azure ML commitment plan name.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

remove(string, string, ServiceCallback<void>)

function remove(resourceGroupName: string, commitmentPlanName: string, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

The resource group name.

commitmentPlanName

string

The Azure ML commitment plan name.

callback

ServiceCallback<void>

The callback