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
+60 -23
View File
@@ -14,9 +14,8 @@ package servicemap
// 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"
@@ -30,23 +29,20 @@ type MachineGroupsClient struct {
ManagementClient
}
// NewMachineGroupsClient creates an instance of the MachineGroupsClient
// client.
// NewMachineGroupsClient creates an instance of the MachineGroupsClient client.
func NewMachineGroupsClient(subscriptionID string) MachineGroupsClient {
return NewMachineGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewMachineGroupsClientWithBaseURI creates an instance of the
// MachineGroupsClient client.
// NewMachineGroupsClientWithBaseURI creates an instance of the MachineGroupsClient client.
func NewMachineGroupsClientWithBaseURI(baseURI string, subscriptionID string) MachineGroupsClient {
return MachineGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// Create creates a new machine group.
//
// resourceGroupName is resource group name within the specified
// subscriptionId. workspaceName is oMS workspace containing the resources of
// interest. machineGroup is machine Group resource to create.
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
// containing the resources of interest. machineGroup is machine Group resource to create.
func (client MachineGroupsClient) Create(resourceGroupName string, workspaceName string, machineGroup MachineGroup) (result MachineGroup, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -132,9 +128,8 @@ func (client MachineGroupsClient) CreateResponder(resp *http.Response) (result M
// Delete deletes the specified Machine Group.
//
// resourceGroupName is resource group name within the specified
// subscriptionId. workspaceName is oMS workspace containing the resources of
// interest. machineGroupName is machine Group resource name.
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
// containing the resources of interest. machineGroupName is machine Group resource name.
func (client MachineGroupsClient) Delete(resourceGroupName string, workspaceName string, machineGroupName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -214,9 +209,8 @@ func (client MachineGroupsClient) DeleteResponder(resp *http.Response) (result a
// Get returns the specified machine group.
//
// resourceGroupName is resource group name within the specified
// subscriptionId. workspaceName is oMS workspace containing the resources of
// interest. machineGroupName is machine Group resource name.
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
// containing the resources of interest. machineGroupName is machine Group resource name.
func (client MachineGroupsClient) Get(resourceGroupName string, workspaceName string, machineGroupName string) (result MachineGroup, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -297,9 +291,8 @@ func (client MachineGroupsClient) GetResponder(resp *http.Response) (result Mach
// ListByWorkspace returns all machine groups.
//
// resourceGroupName is resource group name within the specified
// subscriptionId. workspaceName is oMS workspace containing the resources of
// interest.
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
// containing the resources of interest.
func (client MachineGroupsClient) ListByWorkspace(resourceGroupName string, workspaceName string) (result MachineGroupCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -398,12 +391,56 @@ func (client MachineGroupsClient) ListByWorkspaceNextResults(lastResults Machine
return
}
// ListByWorkspaceComplete gets all elements from the list without paging.
func (client MachineGroupsClient) ListByWorkspaceComplete(resourceGroupName string, workspaceName string, cancel <-chan struct{}) (<-chan MachineGroup, <-chan error) {
resultChan := make(chan MachineGroup)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListByWorkspace(resourceGroupName, workspaceName)
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.ListByWorkspaceNextResults(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 machine group.
//
// resourceGroupName is resource group name within the specified
// subscriptionId. workspaceName is oMS workspace containing the resources of
// interest. machineGroupName is machine Group resource name. machineGroup is
// machine Group resource to update.
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
// containing the resources of interest. machineGroupName is machine Group resource name. machineGroup is machine Group
// resource to update.
func (client MachineGroupsClient) Update(resourceGroupName string, workspaceName string, machineGroupName string, machineGroup MachineGroup) (result MachineGroup, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,