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
+114 -29
View File
@@ -14,9 +14,8 @@ package servermanagement
// 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,7 +24,7 @@ import (
"net/http"
)
// NodeClient is the rEST API for Azure Server Management Service.
// NodeClient is the REST API for Azure Server Management Service.
type NodeClient struct {
ManagementClient
}
@@ -40,15 +39,12 @@ func NewNodeClientWithBaseURI(baseURI string, subscriptionID string) NodeClient
return NodeClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// Create creates or updates a management node. This method may poll for
// completion. Polling can be canceled by passing the cancel channel argument.
// The channel will be used to cancel polling and any outstanding HTTP
// requests.
// Create creates or updates a management node. This method may poll for completion. Polling can be canceled by passing
// the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// resourceGroupName is the resource group name uniquely identifies the
// resource group within the user subscriptionId. nodeName is the node name
// (256 characters maximum). gatewayParameters is parameters supplied to the
// CreateOrUpdate operation.
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
// nodeName is the node name (256 characters maximum). gatewayParameters is parameters supplied to the CreateOrUpdate
// operation.
func (client NodeClient) Create(resourceGroupName string, nodeName string, gatewayParameters NodeParameters, cancel <-chan struct{}) (<-chan NodeResource, <-chan error) {
resultChan := make(chan NodeResource, 1)
errChan := make(chan error, 1)
@@ -70,8 +66,10 @@ func (client NodeClient) Create(resourceGroupName string, nodeName string, gatew
var err error
var result NodeResource
defer func() {
if err != nil {
errChan <- err
}
resultChan <- result
errChan <- err
close(resultChan)
close(errChan)
}()
@@ -142,9 +140,8 @@ func (client NodeClient) CreateResponder(resp *http.Response) (result NodeResour
// Delete deletes a management node
//
// resourceGroupName is the resource group name uniquely identifies the
// resource group within the user subscriptionId. nodeName is the node name
// (256 characters maximum).
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
// nodeName is the node name (256 characters maximum).
func (client NodeClient) Delete(resourceGroupName string, nodeName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -219,9 +216,8 @@ func (client NodeClient) DeleteResponder(resp *http.Response) (result autorest.R
// Get gets a management node.
//
// resourceGroupName is the resource group name uniquely identifies the
// resource group within the user subscriptionId. nodeName is the node name
// (256 characters maximum).
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
// nodeName is the node name (256 characters maximum).
func (client NodeClient) Get(resourceGroupName string, nodeName string) (result NodeResource, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -380,10 +376,54 @@ func (client NodeClient) ListNextResults(lastResults NodeResources) (result Node
return
}
// ListComplete gets all elements from the list without paging.
func (client NodeClient) ListComplete(cancel <-chan struct{}) (<-chan NodeResource, <-chan error) {
resultChan := make(chan NodeResource)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.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
}
}
}
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
}
// ListForResourceGroup lists nodes in a resource group.
//
// resourceGroupName is the resource group name uniquely identifies the
// resource group within the user subscriptionId.
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
func (client NodeClient) ListForResourceGroup(resourceGroupName string) (result NodeResources, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -476,14 +516,57 @@ func (client NodeClient) ListForResourceGroupNextResults(lastResults NodeResourc
return
}
// Update updates a management node. This method may poll for completion.
// Polling can be canceled by passing the cancel channel argument. The channel
// will be used to cancel polling and any outstanding HTTP requests.
// ListForResourceGroupComplete gets all elements from the list without paging.
func (client NodeClient) ListForResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan NodeResource, <-chan error) {
resultChan := make(chan NodeResource)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListForResourceGroup(resourceGroupName)
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.ListForResourceGroupNextResults(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
}
// Update updates a management node. This method may poll for completion. Polling can be canceled by passing the cancel
// channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// resourceGroupName is the resource group name uniquely identifies the
// resource group within the user subscriptionId. nodeName is the node name
// (256 characters maximum). nodeParameters is parameters supplied to the
// CreateOrUpdate operation.
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
// nodeName is the node name (256 characters maximum). nodeParameters is parameters supplied to the CreateOrUpdate
// operation.
func (client NodeClient) Update(resourceGroupName string, nodeName string, nodeParameters NodeParameters, cancel <-chan struct{}) (<-chan NodeResource, <-chan error) {
resultChan := make(chan NodeResource, 1)
errChan := make(chan error, 1)
@@ -505,8 +588,10 @@ func (client NodeClient) Update(resourceGroupName string, nodeName string, nodeP
var err error
var result NodeResource
defer func() {
if err != nil {
errChan <- err
}
resultChan <- result
errChan <- err
close(resultChan)
close(errChan)
}()