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
@@ -14,9 +14,8 @@ package devtestlabs
// 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 VirtualMachineSchedulesClient struct {
ManagementClient
}
// NewVirtualMachineSchedulesClient creates an instance of the
// VirtualMachineSchedulesClient client.
// NewVirtualMachineSchedulesClient creates an instance of the VirtualMachineSchedulesClient client.
func NewVirtualMachineSchedulesClient(subscriptionID string) VirtualMachineSchedulesClient {
return NewVirtualMachineSchedulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewVirtualMachineSchedulesClientWithBaseURI creates an instance of the
// VirtualMachineSchedulesClient client.
// NewVirtualMachineSchedulesClientWithBaseURI creates an instance of the VirtualMachineSchedulesClient client.
func NewVirtualMachineSchedulesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineSchedulesClient {
return VirtualMachineSchedulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate create or replace an existing schedule.
//
// resourceGroupName is the name of the resource group. labName is the name of
// the lab. virtualMachineName is the name of the virtual machine. name is the
// name of the schedule. schedule is a schedule.
// resourceGroupName is the name of the resource group. labName is the name of the lab. virtualMachineName is the name
// of the virtual machine. name is the name of the schedule. schedule is a schedule.
func (client VirtualMachineSchedulesClient) CreateOrUpdate(resourceGroupName string, labName string, virtualMachineName string, name string, schedule Schedule) (result Schedule, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: schedule,
@@ -121,9 +117,8 @@ func (client VirtualMachineSchedulesClient) CreateOrUpdateResponder(resp *http.R
// Delete delete schedule.
//
// resourceGroupName is the name of the resource group. labName is the name of
// the lab. virtualMachineName is the name of the virtual machine. name is the
// name of the schedule.
// resourceGroupName is the name of the resource group. labName is the name of the lab. virtualMachineName is the name
// of the virtual machine. name is the name of the schedule.
func (client VirtualMachineSchedulesClient) Delete(resourceGroupName string, labName string, virtualMachineName string, name string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(resourceGroupName, labName, virtualMachineName, name)
if err != nil {
@@ -187,14 +182,12 @@ func (client VirtualMachineSchedulesClient) DeleteResponder(resp *http.Response)
return
}
// Execute execute a schedule. This operation can take a while to complete.
// 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
// Execute execute a schedule. This operation can take a while to complete. 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 name of the resource group. labName is the name of
// the lab. virtualMachineName is the name of the virtual machine. name is the
// name of the schedule.
// resourceGroupName is the name of the resource group. labName is the name of the lab. virtualMachineName is the name
// of the virtual machine. name is the name of the schedule.
func (client VirtualMachineSchedulesClient) Execute(resourceGroupName string, labName string, virtualMachineName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -202,8 +195,10 @@ func (client VirtualMachineSchedulesClient) Execute(resourceGroupName string, la
var err error
var result autorest.Response
defer func() {
if err != nil {
errChan <- err
}
resultChan <- result
errChan <- err
close(resultChan)
close(errChan)
}()
@@ -273,9 +268,8 @@ func (client VirtualMachineSchedulesClient) ExecuteResponder(resp *http.Response
// Get get schedule.
//
// resourceGroupName is the name of the resource group. labName is the name of
// the lab. virtualMachineName is the name of the virtual machine. name is the
// name of the schedule. expand is specify the $expand query. Example:
// resourceGroupName is the name of the resource group. labName is the name of the lab. virtualMachineName is the name
// of the virtual machine. name is the name of the schedule. expand is specify the $expand query. Example:
// 'properties($select=status)'
func (client VirtualMachineSchedulesClient) Get(resourceGroupName string, labName string, virtualMachineName string, name string, expand string) (result Schedule, err error) {
req, err := client.GetPreparer(resourceGroupName, labName, virtualMachineName, name, expand)
@@ -346,12 +340,10 @@ func (client VirtualMachineSchedulesClient) GetResponder(resp *http.Response) (r
// List list schedules in a given virtual machine.
//
// resourceGroupName is the name of the resource group. labName is the name of
// the lab. virtualMachineName is the name of the virtual machine. expand is
// specify the $expand query. Example: 'properties($select=status)' filter is
// the filter to apply to the operation. top is the maximum number of resources
// to return from the operation. orderby is the ordering expression for the
// results, using OData notation.
// resourceGroupName is the name of the resource group. labName is the name of the lab. virtualMachineName is the name
// of the virtual machine. expand is specify the $expand query. Example: 'properties($select=status)' filter is the
// filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is
// the ordering expression for the results, using OData notation.
func (client VirtualMachineSchedulesClient) List(resourceGroupName string, labName string, virtualMachineName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationSchedule, err error) {
req, err := client.ListPreparer(resourceGroupName, labName, virtualMachineName, expand, filter, top, orderby)
if err != nil {
@@ -451,11 +443,55 @@ func (client VirtualMachineSchedulesClient) ListNextResults(lastResults Response
return
}
// ListComplete gets all elements from the list without paging.
func (client VirtualMachineSchedulesClient) ListComplete(resourceGroupName string, labName string, virtualMachineName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan Schedule, <-chan error) {
resultChan := make(chan Schedule)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.List(resourceGroupName, labName, virtualMachineName, expand, filter, top, orderby)
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
}
// Update modify properties of schedules.
//
// resourceGroupName is the name of the resource group. labName is the name of
// the lab. virtualMachineName is the name of the virtual machine. name is the
// name of the schedule. schedule is a schedule.
// resourceGroupName is the name of the resource group. labName is the name of the lab. virtualMachineName is the name
// of the virtual machine. name is the name of the schedule. schedule is a schedule.
func (client VirtualMachineSchedulesClient) Update(resourceGroupName string, labName string, virtualMachineName string, name string, schedule ScheduleFragment) (result Schedule, err error) {
req, err := client.UpdatePreparer(resourceGroupName, labName, virtualMachineName, name, schedule)
if err != nil {