vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2017-09-30 15:27:27 +01:00
parent 911d121bb9
commit b017fcfe9a
3048 changed files with 537055 additions and 189679 deletions
@@ -1,11 +1,9 @@
// Package commitmentplans implements the Azure ARM Commitmentplans service API
// version 2016-05-01-preview.
// 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.
// 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.
package commitmentplans
// Copyright (c) Microsoft and contributors. All rights reserved.
@@ -22,9 +20,8 @@ package commitmentplans
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -14,9 +14,8 @@ package commitmentplans
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -24,33 +23,28 @@ import (
"net/http"
)
// 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.
// 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.
type CommitmentAssociationsClient struct {
ManagementClient
}
// NewCommitmentAssociationsClient creates an instance of the
// CommitmentAssociationsClient client.
// NewCommitmentAssociationsClient creates an instance of the CommitmentAssociationsClient client.
func NewCommitmentAssociationsClient(subscriptionID string) CommitmentAssociationsClient {
return NewCommitmentAssociationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewCommitmentAssociationsClientWithBaseURI creates an instance of the
// CommitmentAssociationsClient client.
// NewCommitmentAssociationsClientWithBaseURI creates an instance of the CommitmentAssociationsClient client.
func NewCommitmentAssociationsClientWithBaseURI(baseURI string, subscriptionID string) CommitmentAssociationsClient {
return CommitmentAssociationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// 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.
// resourceGroupName is the resource group name. commitmentPlanName is the Azure ML commitment plan name.
// commitmentAssociationName is the commitment association name.
func (client CommitmentAssociationsClient) Get(resourceGroupName string, commitmentPlanName string, commitmentAssociationName string) (result CommitmentAssociation, err error) {
req, err := client.GetPreparer(resourceGroupName, commitmentPlanName, commitmentAssociationName)
if err != nil {
@@ -116,9 +110,8 @@ func (client CommitmentAssociationsClient) GetResponder(resp *http.Response) (re
// 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.
// resourceGroupName is the resource group name. commitmentPlanName is the Azure ML commitment plan name. skipToken is
// continuation token for pagination.
func (client CommitmentAssociationsClient) List(resourceGroupName string, commitmentPlanName string, skipToken string) (result CommitmentAssociationListResult, err error) {
req, err := client.ListPreparer(resourceGroupName, commitmentPlanName, skipToken)
if err != nil {
@@ -208,11 +201,55 @@ func (client CommitmentAssociationsClient) ListNextResults(lastResults Commitmen
return
}
// ListComplete gets all elements from the list without paging.
func (client CommitmentAssociationsClient) ListComplete(resourceGroupName string, commitmentPlanName string, skipToken string, cancel <-chan struct{}) (<-chan CommitmentAssociation, <-chan error) {
resultChan := make(chan CommitmentAssociation)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.List(resourceGroupName, commitmentPlanName, skipToken)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// 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.
// 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 (client CommitmentAssociationsClient) Move(resourceGroupName string, commitmentPlanName string, commitmentAssociationName string, movePayload MoveCommitmentAssociationRequest) (result CommitmentAssociation, err error) {
req, err := client.MovePreparer(resourceGroupName, commitmentPlanName, commitmentAssociationName, movePayload)
if err != nil {
@@ -14,9 +14,8 @@ package commitmentplans
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -24,11 +23,10 @@ import (
"net/http"
)
// GroupClient 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.
// GroupClient 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.
type GroupClient struct {
ManagementClient
}
@@ -43,12 +41,10 @@ func NewGroupClientWithBaseURI(baseURI string, subscriptionID string) GroupClien
return GroupClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate create a new Azure ML commitment plan resource or updates an
// existing one.
// 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.
// 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 GroupClient) CreateOrUpdate(createOrUpdatePayload CommitmentPlan, resourceGroupName string, commitmentPlanName string) (result CommitmentPlan, err error) {
req, err := client.CreateOrUpdatePreparer(createOrUpdatePayload, resourceGroupName, commitmentPlanName)
if err != nil {
@@ -113,11 +109,9 @@ func (client GroupClient) CreateOrUpdateResponder(resp *http.Response) (result C
return
}
// Get retrieve an Azure ML commitment plan by its subscription, resource group
// and name.
// 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.
// resourceGroupName is the resource group name. commitmentPlanName is the Azure ML commitment plan name.
func (client GroupClient) Get(resourceGroupName string, commitmentPlanName string) (result CommitmentPlan, err error) {
req, err := client.GetPreparer(resourceGroupName, commitmentPlanName)
if err != nil {
@@ -270,11 +264,54 @@ func (client GroupClient) ListNextResults(lastResults ListResult) (result ListRe
return
}
// ListInResourceGroup retrieve all Azure ML commitment plans in a resource
// group.
// ListComplete gets all elements from the list without paging.
func (client GroupClient) ListComplete(skipToken string, cancel <-chan struct{}) (<-chan CommitmentPlan, <-chan error) {
resultChan := make(chan CommitmentPlan)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.List(skipToken)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListInResourceGroup retrieve all Azure ML commitment plans in a resource group.
//
// resourceGroupName is the resource group name. skipToken is continuation
// token for pagination.
// resourceGroupName is the resource group name. skipToken is continuation token for pagination.
func (client GroupClient) ListInResourceGroup(resourceGroupName string, skipToken string) (result ListResult, err error) {
req, err := client.ListInResourceGroupPreparer(resourceGroupName, skipToken)
if err != nil {
@@ -363,12 +400,56 @@ func (client GroupClient) ListInResourceGroupNextResults(lastResults ListResult)
return
}
// ListInResourceGroupComplete gets all elements from the list without paging.
func (client GroupClient) ListInResourceGroupComplete(resourceGroupName string, skipToken string, cancel <-chan struct{}) (<-chan CommitmentPlan, <-chan error) {
resultChan := make(chan CommitmentPlan)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListInResourceGroup(resourceGroupName, skipToken)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListInResourceGroupNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// 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.
// 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 GroupClient) Patch(patchPayload PatchPayload, resourceGroupName string, commitmentPlanName string) (result CommitmentPlan, err error) {
req, err := client.PatchPreparer(patchPayload, resourceGroupName, commitmentPlanName)
if err != nil {
@@ -435,8 +516,7 @@ func (client GroupClient) PatchResponder(resp *http.Response) (result Commitment
// Remove remove an existing Azure ML commitment plan.
//
// resourceGroupName is the resource group name. commitmentPlanName is the
// Azure ML commitment plan name.
// resourceGroupName is the resource group name. commitmentPlanName is the Azure ML commitment plan name.
func (client GroupClient) Remove(resourceGroupName string, commitmentPlanName string) (result autorest.Response, err error) {
req, err := client.RemovePreparer(resourceGroupName, commitmentPlanName)
if err != nil {
@@ -14,9 +14,8 @@ package commitmentplans
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,8 +24,8 @@ import (
"net/http"
)
// CommitmentAssociation is represents the association between a commitment
// plan and some other resource, such as a Machine Learning web service.
// CommitmentAssociation is represents the association between a commitment plan and some other resource, such as a
// Machine Learning web service.
type CommitmentAssociation struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
@@ -38,8 +37,7 @@ type CommitmentAssociation struct {
Properties *CommitmentAssociationProperties `json:"properties,omitempty"`
}
// CommitmentAssociationListResult is a page of commitment association
// resources.
// CommitmentAssociationListResult is a page of commitment association resources.
type CommitmentAssociationListResult struct {
autorest.Response `json:"-"`
NextLink *string `json:"nextLink,omitempty"`
@@ -58,8 +56,7 @@ func (client CommitmentAssociationListResult) CommitmentAssociationListResultPre
autorest.WithBaseURL(to.String(client.NextLink)))
}
// CommitmentAssociationProperties is properties of an Azure ML commitment
// association.
// CommitmentAssociationProperties is properties of an Azure ML commitment association.
type CommitmentAssociationProperties struct {
AssociatedResourceID *string `json:"associatedResourceId,omitempty"`
CommitmentPlanID *string `json:"commitmentPlanId,omitempty"`
@@ -98,21 +95,18 @@ func (client ListResult) ListResultPreparer() (*http.Request, error) {
autorest.WithBaseURL(to.String(client.NextLink)))
}
// MoveCommitmentAssociationRequest is specifies the destination Azure ML
// commitment plan for a move operation.
// MoveCommitmentAssociationRequest is specifies the destination Azure ML commitment plan for a move operation.
type MoveCommitmentAssociationRequest struct {
DestinationPlanID *string `json:"destinationPlanId,omitempty"`
}
// PatchPayload is the properties of a commitment plan which may be updated via
// PATCH.
// PatchPayload is the properties of a commitment plan which may be updated via PATCH.
type PatchPayload struct {
Tags *map[string]*string `json:"tags,omitempty"`
Sku *ResourceSku `json:"sku,omitempty"`
}
// PlanQuantity is represents the quantity a commitment plan provides of a
// metered resource.
// PlanQuantity is represents the quantity a commitment plan provides of a metered resource.
type PlanQuantity struct {
Allowance *float64 `json:"allowance,omitempty"`
Amount *float64 `json:"amount,omitempty"`
@@ -120,8 +114,8 @@ type PlanQuantity struct {
OverageMeter *string `json:"overageMeter,omitempty"`
}
// PlanUsageHistory is represents historical information about usage of the
// Azure resources associated with a commitment plan.
// PlanUsageHistory is represents historical information about usage of the Azure resources associated with a
// commitment plan.
type PlanUsageHistory struct {
PlanDeletionOverage *map[string]*float64 `json:"planDeletionOverage,omitempty"`
PlanMigrationOverage *map[string]*float64 `json:"planMigrationOverage,omitempty"`
@@ -14,9 +14,8 @@ package commitmentplans
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -24,12 +23,10 @@ import (
"net/http"
)
// 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.
// 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.
type UsageHistoryClient struct {
ManagementClient
}
@@ -39,17 +36,15 @@ func NewUsageHistoryClient(subscriptionID string) UsageHistoryClient {
return NewUsageHistoryClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewUsageHistoryClientWithBaseURI creates an instance of the
// UsageHistoryClient client.
// NewUsageHistoryClientWithBaseURI creates an instance of the UsageHistoryClient client.
func NewUsageHistoryClientWithBaseURI(baseURI string, subscriptionID string) UsageHistoryClient {
return UsageHistoryClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// 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.
// resourceGroupName is the resource group name. commitmentPlanName is the Azure ML commitment plan name. skipToken is
// continuation token for pagination.
func (client UsageHistoryClient) List(resourceGroupName string, commitmentPlanName string, skipToken string) (result PlanUsageHistoryListResult, err error) {
req, err := client.ListPreparer(resourceGroupName, commitmentPlanName, skipToken)
if err != nil {
@@ -138,3 +133,48 @@ func (client UsageHistoryClient) ListNextResults(lastResults PlanUsageHistoryLis
return
}
// ListComplete gets all elements from the list without paging.
func (client UsageHistoryClient) ListComplete(resourceGroupName string, commitmentPlanName string, skipToken string, cancel <-chan struct{}) (<-chan PlanUsageHistory, <-chan error) {
resultChan := make(chan PlanUsageHistory)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.List(resourceGroupName, commitmentPlanName, skipToken)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
@@ -14,16 +14,15 @@ package commitmentplans
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// UserAgent returns the UserAgent string to use when sending http.Requests.
func UserAgent() string {
return "Azure-SDK-For-Go/v10.1.0-beta arm-commitmentplans/2016-05-01-preview"
return "Azure-SDK-For-Go/v11.0.0-beta arm-commitmentplans/2016-05-01-preview"
}
// Version returns the semantic version (see http://semver.org) of the client.
func Version() string {
return "v10.1.0-beta"
return "v11.0.0-beta"
}