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 recoveryservicesbackup
// 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,8 +23,7 @@ import (
"net/http"
)
// BackupJobsClient is the client for the BackupJobs methods of the
// Recoveryservicesbackup service.
// BackupJobsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type BackupJobsClient struct {
ManagementClient
}
@@ -35,17 +33,15 @@ func NewBackupJobsClient(subscriptionID string) BackupJobsClient {
return NewBackupJobsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewBackupJobsClientWithBaseURI creates an instance of the BackupJobsClient
// client.
// NewBackupJobsClientWithBaseURI creates an instance of the BackupJobsClient client.
func NewBackupJobsClientWithBaseURI(baseURI string, subscriptionID string) BackupJobsClient {
return BackupJobsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// List provides a pageable list of jobs.
//
// vaultName is the name of the recovery services vault. resourceGroupName is
// the name of the resource group where the recovery services vault is present.
// filter is oData filter options. skipToken is skipToken Filter.
// vaultName is the name of the recovery services vault. resourceGroupName is the name of the resource group where the
// recovery services vault is present. filter is oData filter options. skipToken is skipToken Filter.
func (client BackupJobsClient) List(vaultName string, resourceGroupName string, filter string, skipToken string) (result JobResourceList, err error) {
req, err := client.ListPreparer(vaultName, resourceGroupName, filter, skipToken)
if err != nil {
@@ -76,7 +72,7 @@ func (client BackupJobsClient) ListPreparer(vaultName string, resourceGroupName
"vaultName": autorest.Encode("path", vaultName),
}
const APIVersion = "2016-12-01"
const APIVersion = "2017-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -137,3 +133,48 @@ func (client BackupJobsClient) ListNextResults(lastResults JobResourceList) (res
return
}
// ListComplete gets all elements from the list without paging.
func (client BackupJobsClient) ListComplete(vaultName string, resourceGroupName string, filter string, skipToken string, cancel <-chan struct{}) (<-chan JobResource, <-chan error) {
resultChan := make(chan JobResource)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.List(vaultName, resourceGroupName, filter, skipToken)
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
}