commitmentplans

package
v7.0.0-beta+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package commitmentplans implements the Azure ARM Commitmentplans service API version 2016-05-01-preview.

These APIs allow end users to operate on Azure Machine Learning Commitment Plans resources and their child Commitment Association resources. They support CRUD operations for commitment plans, get and list operations for commitment associations, moving commitment associations between commitment plans, and retrieving commitment plan usage history.

Index

Constants

View Source
const (
	// APIVersion is the version of the Commitmentplans
	APIVersion = "2016-05-01-preview"

	// DefaultBaseURI is the default URI used for the service Commitmentplans
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type Client

type Client struct {
	ManagementClient
}

Client is the these APIs allow end users to operate on Azure Machine Learning Commitment Plans resources and their child Commitment Association resources. They support CRUD operations for commitment plans, get and list operations for commitment associations, moving commitment associations between commitment plans, and retrieving commitment plan usage history.

func NewClient

func NewClient(subscriptionID string) Client

NewClient creates an instance of the Client client.

func NewClientWithBaseURI

func NewClientWithBaseURI(baseURI string, subscriptionID string) Client

NewClientWithBaseURI creates an instance of the Client client.

func (Client) CreateOrUpdate

func (client Client) CreateOrUpdate(createOrUpdatePayload CommitmentPlan, resourceGroupName string, commitmentPlanName string) (result CommitmentPlan, err error)

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

createOrUpdatePayload is the payload to create or update the Azure ML commitment plan. resourceGroupName is the resource group name. commitmentPlanName is the Azure ML commitment plan name.

func (Client) CreateOrUpdatePreparer

func (client Client) CreateOrUpdatePreparer(createOrUpdatePayload CommitmentPlan, resourceGroupName string, commitmentPlanName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (Client) CreateOrUpdateResponder

func (client Client) CreateOrUpdateResponder(resp *http.Response) (result CommitmentPlan, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (Client) CreateOrUpdateSender

func (client Client) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (Client) Get

func (client Client) Get(resourceGroupName string, commitmentPlanName string) (result CommitmentPlan, err error)

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

resourceGroupName is the resource group name. commitmentPlanName is the Azure ML commitment plan name.

func (Client) GetPreparer

func (client Client) GetPreparer(resourceGroupName string, commitmentPlanName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (Client) GetResponder

func (client Client) GetResponder(resp *http.Response) (result CommitmentPlan, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (Client) GetSender

func (client Client) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (Client) List

func (client Client) List(skipToken string) (result CommitmentPlanListResult, err error)

List retrieve all Azure ML commitment plans in a subscription.

skipToken is continuation token for pagination.

func (Client) ListInResourceGroup

func (client Client) ListInResourceGroup(resourceGroupName string, skipToken string) (result CommitmentPlanListResult, err error)

ListInResourceGroup retrieve all Azure ML commitment plans in a resource group.

resourceGroupName is the resource group name. skipToken is continuation token for pagination.

func (Client) ListInResourceGroupNextResults

func (client Client) ListInResourceGroupNextResults(lastResults CommitmentPlanListResult) (result CommitmentPlanListResult, err error)

ListInResourceGroupNextResults retrieves the next set of results, if any.

func (Client) ListInResourceGroupPreparer

func (client Client) ListInResourceGroupPreparer(resourceGroupName string, skipToken string) (*http.Request, error)

ListInResourceGroupPreparer prepares the ListInResourceGroup request.

func (Client) ListInResourceGroupResponder

func (client Client) ListInResourceGroupResponder(resp *http.Response) (result CommitmentPlanListResult, err error)

ListInResourceGroupResponder handles the response to the ListInResourceGroup request. The method always closes the http.Response Body.

func (Client) ListInResourceGroupSender

func (client Client) ListInResourceGroupSender(req *http.Request) (*http.Response, error)

ListInResourceGroupSender sends the ListInResourceGroup request. The method will close the http.Response Body if it receives an error.

func (Client) ListNextResults

func (client Client) ListNextResults(lastResults CommitmentPlanListResult) (result CommitmentPlanListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (Client) ListPreparer

func (client Client) ListPreparer(skipToken string) (*http.Request, error)

ListPreparer prepares the List request.

func (Client) ListResponder

func (client Client) ListResponder(resp *http.Response) (result CommitmentPlanListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (Client) ListSender

func (client Client) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (Client) Patch

func (client Client) Patch(patchPayload CommitmentPlanPatchPayload, resourceGroupName string, commitmentPlanName string) (result CommitmentPlan, err error)

Patch patch an existing Azure ML commitment plan resource.

patchPayload is the payload to use to patch the Azure ML commitment plan. Only tags and SKU may be modified on an existing commitment plan. resourceGroupName is the resource group name. commitmentPlanName is the Azure ML commitment plan name.

func (Client) PatchPreparer

func (client Client) PatchPreparer(patchPayload CommitmentPlanPatchPayload, resourceGroupName string, commitmentPlanName string) (*http.Request, error)

PatchPreparer prepares the Patch request.

func (Client) PatchResponder

func (client Client) PatchResponder(resp *http.Response) (result CommitmentPlan, err error)

PatchResponder handles the response to the Patch request. The method always closes the http.Response Body.

func (Client) PatchSender

func (client Client) PatchSender(req *http.Request) (*http.Response, error)

PatchSender sends the Patch request. The method will close the http.Response Body if it receives an error.

func (Client) Remove

func (client Client) Remove(resourceGroupName string, commitmentPlanName string) (result autorest.Response, err error)

Remove remove an existing Azure ML commitment plan.

resourceGroupName is the resource group name. commitmentPlanName is the Azure ML commitment plan name.

func (Client) RemovePreparer

func (client Client) RemovePreparer(resourceGroupName string, commitmentPlanName string) (*http.Request, error)

RemovePreparer prepares the Remove request.

func (Client) RemoveResponder

func (client Client) RemoveResponder(resp *http.Response) (result autorest.Response, err error)

RemoveResponder handles the response to the Remove request. The method always closes the http.Response Body.

func (Client) RemoveSender

func (client Client) RemoveSender(req *http.Request) (*http.Response, error)

RemoveSender sends the Remove request. The method will close the http.Response Body if it receives an error.

type CommitmentAssociation

type CommitmentAssociation struct {
	autorest.Response `json:"-"`
	ID                *string                          `json:"id,omitempty"`
	Name              *string                          `json:"name,omitempty"`
	Location          *string                          `json:"location,omitempty"`
	Type              *string                          `json:"type,omitempty"`
	Tags              *map[string]*string              `json:"tags,omitempty"`
	Etag              *string                          `json:"etag,omitempty"`
	Properties        *CommitmentAssociationProperties `json:"properties,omitempty"`
}

CommitmentAssociation is represents the association between a commitment plan and some other resource, such as a Machine Learning web service.

type CommitmentAssociationListResult

type CommitmentAssociationListResult struct {
	autorest.Response `json:"-"`
	NextLink          *string                  `json:"nextLink,omitempty"`
	Value             *[]CommitmentAssociation `json:"value,omitempty"`
}

CommitmentAssociationListResult is a page of commitment association resources.

func (CommitmentAssociationListResult) CommitmentAssociationListResultPreparer

func (client CommitmentAssociationListResult) CommitmentAssociationListResultPreparer() (*http.Request, error)

CommitmentAssociationListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type CommitmentAssociationProperties

type CommitmentAssociationProperties struct {
	AssociatedResourceID *string    `json:"associatedResourceId,omitempty"`
	CommitmentPlanID     *string    `json:"commitmentPlanId,omitempty"`
	CreationDate         *date.Time `json:"creationDate,omitempty"`
}

CommitmentAssociationProperties is properties of an Azure ML commitment association.

type CommitmentAssociationsClient

type CommitmentAssociationsClient struct {
	ManagementClient
}

CommitmentAssociationsClient is the these APIs allow end users to operate on Azure Machine Learning Commitment Plans resources and their child Commitment Association resources. They support CRUD operations for commitment plans, get and list operations for commitment associations, moving commitment associations between commitment plans, and retrieving commitment plan usage history.

func NewCommitmentAssociationsClient

func NewCommitmentAssociationsClient(subscriptionID string) CommitmentAssociationsClient

NewCommitmentAssociationsClient creates an instance of the CommitmentAssociationsClient client.

func NewCommitmentAssociationsClientWithBaseURI

func NewCommitmentAssociationsClientWithBaseURI(baseURI string, subscriptionID string) CommitmentAssociationsClient

NewCommitmentAssociationsClientWithBaseURI creates an instance of the CommitmentAssociationsClient client.

func (CommitmentAssociationsClient) Get

func (client CommitmentAssociationsClient) Get(resourceGroupName string, commitmentPlanName string, commitmentAssociationName string) (result CommitmentAssociation, err error)

Get get a commitment association.

resourceGroupName is the resource group name. commitmentPlanName is the Azure ML commitment plan name. commitmentAssociationName is the commitment association name.

func (CommitmentAssociationsClient) GetPreparer

func (client CommitmentAssociationsClient) GetPreparer(resourceGroupName string, commitmentPlanName string, commitmentAssociationName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (CommitmentAssociationsClient) GetResponder

func (client CommitmentAssociationsClient) GetResponder(resp *http.Response) (result CommitmentAssociation, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (CommitmentAssociationsClient) GetSender

func (client CommitmentAssociationsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (CommitmentAssociationsClient) List

func (client CommitmentAssociationsClient) List(resourceGroupName string, commitmentPlanName string, skipToken string) (result CommitmentAssociationListResult, err error)

List get all commitment associations for a parent commitment plan.

resourceGroupName is the resource group name. commitmentPlanName is the Azure ML commitment plan name. skipToken is continuation token for pagination.

func (CommitmentAssociationsClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (CommitmentAssociationsClient) ListPreparer

func (client CommitmentAssociationsClient) ListPreparer(resourceGroupName string, commitmentPlanName string, skipToken string) (*http.Request, error)

ListPreparer prepares the List request.

func (CommitmentAssociationsClient) ListResponder

func (client CommitmentAssociationsClient) ListResponder(resp *http.Response) (result CommitmentAssociationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (CommitmentAssociationsClient) ListSender

func (client CommitmentAssociationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (CommitmentAssociationsClient) Move

func (client CommitmentAssociationsClient) Move(resourceGroupName string, commitmentPlanName string, commitmentAssociationName string, movePayload MoveCommitmentAssociationRequest) (result CommitmentAssociation, err error)

Move re-parent a commitment association from one commitment plan to another.

resourceGroupName is the resource group name. commitmentPlanName is the Azure ML commitment plan name. commitmentAssociationName is the commitment association name. movePayload is the move request payload.

func (CommitmentAssociationsClient) MovePreparer

func (client CommitmentAssociationsClient) MovePreparer(resourceGroupName string, commitmentPlanName string, commitmentAssociationName string, movePayload MoveCommitmentAssociationRequest) (*http.Request, error)

MovePreparer prepares the Move request.

func (CommitmentAssociationsClient) MoveResponder

func (client CommitmentAssociationsClient) MoveResponder(resp *http.Response) (result CommitmentAssociation, err error)

MoveResponder handles the response to the Move request. The method always closes the http.Response Body.

func (CommitmentAssociationsClient) MoveSender

func (client CommitmentAssociationsClient) MoveSender(req *http.Request) (*http.Response, error)

MoveSender sends the Move request. The method will close the http.Response Body if it receives an error.

type CommitmentPlan

type CommitmentPlan struct {
	autorest.Response `json:"-"`
	ID                *string                   `json:"id,omitempty"`
	Name              *string                   `json:"name,omitempty"`
	Location          *string                   `json:"location,omitempty"`
	Type              *string                   `json:"type,omitempty"`
	Tags              *map[string]*string       `json:"tags,omitempty"`
	Etag              *string                   `json:"etag,omitempty"`
	Properties        *CommitmentPlanProperties `json:"properties,omitempty"`
	Sku               *ResourceSku              `json:"sku,omitempty"`
}

CommitmentPlan is an Azure ML commitment plan resource.

type CommitmentPlanListResult

type CommitmentPlanListResult struct {
	autorest.Response `json:"-"`
	NextLink          *string           `json:"nextLink,omitempty"`
	Value             *[]CommitmentPlan `json:"value,omitempty"`
}

CommitmentPlanListResult is a page of commitment plan resources.

func (CommitmentPlanListResult) CommitmentPlanListResultPreparer

func (client CommitmentPlanListResult) CommitmentPlanListResultPreparer() (*http.Request, error)

CommitmentPlanListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type CommitmentPlanPatchPayload

type CommitmentPlanPatchPayload struct {
	Tags *map[string]*string `json:"tags,omitempty"`
	Sku  *ResourceSku        `json:"sku,omitempty"`
}

CommitmentPlanPatchPayload is the properties of a commitment plan which may be updated via PATCH.

type CommitmentPlanProperties

type CommitmentPlanProperties struct {
	ChargeForOverage      *bool                     `json:"chargeForOverage,omitempty"`
	ChargeForPlan         *bool                     `json:"chargeForPlan,omitempty"`
	CreationDate          *date.Time                `json:"creationDate,omitempty"`
	IncludedQuantities    *map[string]*PlanQuantity `json:"includedQuantities,omitempty"`
	MaxAssociationLimit   *int32                    `json:"maxAssociationLimit,omitempty"`
	MaxCapacityLimit      *int32                    `json:"maxCapacityLimit,omitempty"`
	MinCapacityLimit      *int32                    `json:"minCapacityLimit,omitempty"`
	PlanMeter             *string                   `json:"planMeter,omitempty"`
	RefillFrequencyInDays *int32                    `json:"refillFrequencyInDays,omitempty"`
	SuspendPlanOnOverage  *bool                     `json:"suspendPlanOnOverage,omitempty"`
}

CommitmentPlanProperties is properties of an Azure ML commitment plan.

type ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI        string
	APIVersion     string
	SubscriptionID string
}

ManagementClient is the base client for Commitmentplans.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type MoveCommitmentAssociationRequest

type MoveCommitmentAssociationRequest struct {
	DestinationPlanID *string `json:"destinationPlanId,omitempty"`
}

MoveCommitmentAssociationRequest is specifies the destination Azure ML commitment plan for a move operation.

type PlanQuantity

type PlanQuantity struct {
	Allowance             *float64 `json:"allowance,omitempty"`
	Amount                *float64 `json:"amount,omitempty"`
	IncludedQuantityMeter *string  `json:"includedQuantityMeter,omitempty"`
	OverageMeter          *string  `json:"overageMeter,omitempty"`
}

PlanQuantity is represents the quantity a commitment plan provides of a metered resource.

type PlanUsageHistory

type PlanUsageHistory struct {
	PlanDeletionOverage       *map[string]*float64 `json:"planDeletionOverage,omitempty"`
	PlanMigrationOverage      *map[string]*float64 `json:"planMigrationOverage,omitempty"`
	PlanQuantitiesAfterUsage  *map[string]*float64 `json:"planQuantitiesAfterUsage,omitempty"`
	PlanQuantitiesBeforeUsage *map[string]*float64 `json:"planQuantitiesBeforeUsage,omitempty"`
	PlanUsageOverage          *map[string]*float64 `json:"planUsageOverage,omitempty"`
	Usage                     *map[string]*float64 `json:"usage,omitempty"`
	UsageDate                 *date.Time           `json:"usageDate,omitempty"`
}

PlanUsageHistory is represents historical information about usage of the Azure resources associated with a commitment plan.

type PlanUsageHistoryListResult

type PlanUsageHistoryListResult struct {
	autorest.Response `json:"-"`
	NextLink          *string             `json:"nextLink,omitempty"`
	Value             *[]PlanUsageHistory `json:"value,omitempty"`
}

PlanUsageHistoryListResult is a page of usage history.

func (PlanUsageHistoryListResult) PlanUsageHistoryListResultPreparer

func (client PlanUsageHistoryListResult) PlanUsageHistoryListResultPreparer() (*http.Request, error)

PlanUsageHistoryListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type Resource

type Resource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Location *string             `json:"location,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}

Resource is common properties of an ARM resource.

type ResourceSku

type ResourceSku struct {
	Capacity *int32  `json:"capacity,omitempty"`
	Name     *string `json:"name,omitempty"`
	Tier     *string `json:"tier,omitempty"`
}

ResourceSku is the SKU of a resource.

type UsageHistoryClient

type UsageHistoryClient struct {
	ManagementClient
}

UsageHistoryClient is the these APIs allow end users to operate on Azure Machine Learning Commitment Plans resources and their child Commitment Association resources. They support CRUD operations for commitment plans, get and list operations for commitment associations, moving commitment associations between commitment plans, and retrieving commitment plan usage history.

func NewUsageHistoryClient

func NewUsageHistoryClient(subscriptionID string) UsageHistoryClient

NewUsageHistoryClient creates an instance of the UsageHistoryClient client.

func NewUsageHistoryClientWithBaseURI

func NewUsageHistoryClientWithBaseURI(baseURI string, subscriptionID string) UsageHistoryClient

NewUsageHistoryClientWithBaseURI creates an instance of the UsageHistoryClient client.

func (UsageHistoryClient) List

func (client UsageHistoryClient) List(resourceGroupName string, commitmentPlanName string, skipToken string) (result PlanUsageHistoryListResult, err error)

List retrieve the usage history for an Azure ML commitment plan.

resourceGroupName is the resource group name. commitmentPlanName is the Azure ML commitment plan name. skipToken is continuation token for pagination.

func (UsageHistoryClient) ListNextResults

func (client UsageHistoryClient) ListNextResults(lastResults PlanUsageHistoryListResult) (result PlanUsageHistoryListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (UsageHistoryClient) ListPreparer

func (client UsageHistoryClient) ListPreparer(resourceGroupName string, commitmentPlanName string, skipToken string) (*http.Request, error)

ListPreparer prepares the List request.

func (UsageHistoryClient) ListResponder

func (client UsageHistoryClient) ListResponder(resp *http.Response) (result PlanUsageHistoryListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (UsageHistoryClient) ListSender

func (client UsageHistoryClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL