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
+7 -10
View File
@@ -1,11 +1,9 @@
// Package features implements the Azure ARM Features service API version
// 2015-12-01.
// Package features implements the Azure ARM Features service API version 2015-12-01.
//
// Azure Feature Exposure Control (AFEC) provides a mechanism for the resource
// providers to control feature exposure to users. Resource providers typically
// use this mechanism to provide public/private preview for new features prior
// to making them generally available. Users need to explicitly register for
// AFEC features to get access to such functionality.
// Azure Feature Exposure Control (AFEC) provides a mechanism for the resource providers to control feature exposure to
// users. Resource providers typically use this mechanism to provide public/private preview for new features prior to
// making them generally available. Users need to explicitly register for AFEC features to get access to such
// functionality.
package features
// Copyright (c) Microsoft and contributors. All rights reserved.
@@ -22,9 +20,8 @@ package features
// 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 features
// 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"
)
// GroupClient is the azure Feature Exposure Control (AFEC) provides a
// mechanism for the resource providers to control feature exposure to users.
// Resource providers typically use this mechanism to provide public/private
// preview for new features prior to making them generally available. Users
// need to explicitly register for AFEC features to get access to such
// functionality.
// GroupClient is the azure Feature Exposure Control (AFEC) provides a mechanism for the resource providers to control
// feature exposure to users. Resource providers typically use this mechanism to provide public/private preview for new
// features prior to making them generally available. Users need to explicitly register for AFEC features to get access
// to such functionality.
type GroupClient struct {
ManagementClient
}
@@ -46,8 +43,8 @@ func NewGroupClientWithBaseURI(baseURI string, subscriptionID string) GroupClien
// Get gets the preview feature with the specified name.
//
// resourceProviderNamespace is the resource provider namespace for the
// feature. featureName is the name of the feature to get.
// resourceProviderNamespace is the resource provider namespace for the feature. featureName is the name of the feature
// to get.
func (client GroupClient) Get(resourceProviderNamespace string, featureName string) (result Result, err error) {
req, err := client.GetPreparer(resourceProviderNamespace, featureName)
if err != nil {
@@ -110,11 +107,9 @@ func (client GroupClient) GetResponder(resp *http.Response) (result Result, err
return
}
// List gets all the preview features in a provider namespace that are
// available through AFEC for the subscription.
// List gets all the preview features in a provider namespace that are available through AFEC for the subscription.
//
// resourceProviderNamespace is the namespace of the resource provider for
// getting features.
// resourceProviderNamespace is the namespace of the resource provider for getting features.
func (client GroupClient) List(resourceProviderNamespace string) (result OperationsListResult, err error) {
req, err := client.ListPreparer(resourceProviderNamespace)
if err != nil {
@@ -200,8 +195,52 @@ func (client GroupClient) ListNextResults(lastResults OperationsListResult) (res
return
}
// ListAll gets all the preview features that are available through AFEC for
// the subscription.
// ListComplete gets all elements from the list without paging.
func (client GroupClient) ListComplete(resourceProviderNamespace string, cancel <-chan struct{}) (<-chan Result, <-chan error) {
resultChan := make(chan Result)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.List(resourceProviderNamespace)
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
}
// ListAll gets all the preview features that are available through AFEC for the subscription.
func (client GroupClient) ListAll() (result OperationsListResult, err error) {
req, err := client.ListAllPreparer()
if err != nil {
@@ -286,10 +325,55 @@ func (client GroupClient) ListAllNextResults(lastResults OperationsListResult) (
return
}
// ListAllComplete gets all elements from the list without paging.
func (client GroupClient) ListAllComplete(cancel <-chan struct{}) (<-chan Result, <-chan error) {
resultChan := make(chan Result)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListAll()
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.ListAllNextResults(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
}
// Register registers the preview feature for the subscription.
//
// resourceProviderNamespace is the namespace of the resource provider.
// featureName is the name of the feature to register.
// resourceProviderNamespace is the namespace of the resource provider. featureName is the name of the feature to
// register.
func (client GroupClient) Register(resourceProviderNamespace string, featureName string) (result Result, err error) {
req, err := client.RegisterPreparer(resourceProviderNamespace, featureName)
if err != nil {
+2 -3
View File
@@ -14,9 +14,8 @@ package features
// 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,16 +14,15 @@ package features
// 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-features/2015-12-01"
return "Azure-SDK-For-Go/v11.0.0-beta arm-features/2015-12-01"
}
// 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"
}