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
+57 -17
View File
@@ -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"
@@ -29,23 +28,20 @@ type ServiceRunnersClient struct {
ManagementClient
}
// NewServiceRunnersClient creates an instance of the ServiceRunnersClient
// client.
// NewServiceRunnersClient creates an instance of the ServiceRunnersClient client.
func NewServiceRunnersClient(subscriptionID string) ServiceRunnersClient {
return NewServiceRunnersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewServiceRunnersClientWithBaseURI creates an instance of the
// ServiceRunnersClient client.
// NewServiceRunnersClientWithBaseURI creates an instance of the ServiceRunnersClient client.
func NewServiceRunnersClientWithBaseURI(baseURI string, subscriptionID string) ServiceRunnersClient {
return ServiceRunnersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate create or replace an existing Service runner.
//
// resourceGroupName is the name of the resource group. labName is the name of
// the lab. name is the name of the service runner. serviceRunner is a
// container for a managed identity to execute DevTest lab services.
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the service
// runner. serviceRunner is a container for a managed identity to execute DevTest lab services.
func (client ServiceRunnersClient) CreateOrUpdate(resourceGroupName string, labName string, name string, serviceRunner ServiceRunner) (result ServiceRunner, err error) {
req, err := client.CreateOrUpdatePreparer(resourceGroupName, labName, name, serviceRunner)
if err != nil {
@@ -113,8 +109,8 @@ func (client ServiceRunnersClient) CreateOrUpdateResponder(resp *http.Response)
// Delete delete service runner.
//
// resourceGroupName is the name of the resource group. labName is the name of
// the lab. name is the name of the service runner.
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the service
// runner.
func (client ServiceRunnersClient) Delete(resourceGroupName string, labName string, name string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(resourceGroupName, labName, name)
if err != nil {
@@ -179,8 +175,8 @@ func (client ServiceRunnersClient) DeleteResponder(resp *http.Response) (result
// Get get service runner.
//
// resourceGroupName is the name of the resource group. labName is the name of
// the lab. name is the name of the service runner.
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the service
// runner.
func (client ServiceRunnersClient) Get(resourceGroupName string, labName string, name string) (result ServiceRunner, err error) {
req, err := client.GetPreparer(resourceGroupName, labName, name)
if err != nil {
@@ -246,9 +242,8 @@ func (client ServiceRunnersClient) GetResponder(resp *http.Response) (result Ser
// List list service runners in a given lab.
//
// resourceGroupName is the name of the resource group. labName is the name of
// the lab. 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
// resourceGroupName is the name of the resource group. labName is the name of the lab. 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 ServiceRunnersClient) List(resourceGroupName string, labName string, filter string, top *int32, orderby string) (result ResponseWithContinuationServiceRunner, err error) {
req, err := client.ListPreparer(resourceGroupName, labName, filter, top, orderby)
@@ -344,3 +339,48 @@ func (client ServiceRunnersClient) ListNextResults(lastResults ResponseWithConti
return
}
// ListComplete gets all elements from the list without paging.
func (client ServiceRunnersClient) ListComplete(resourceGroupName string, labName string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan ServiceRunner, <-chan error) {
resultChan := make(chan ServiceRunner)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.List(resourceGroupName, labName, 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
}