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,30 +23,26 @@ import (
"net/http"
)
// BackupProtectableItemsClient is the client for the BackupProtectableItems
// methods of the Recoveryservicesbackup service.
// BackupProtectableItemsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type BackupProtectableItemsClient struct {
ManagementClient
}
// NewBackupProtectableItemsClient creates an instance of the
// BackupProtectableItemsClient client.
// NewBackupProtectableItemsClient creates an instance of the BackupProtectableItemsClient client.
func NewBackupProtectableItemsClient(subscriptionID string) BackupProtectableItemsClient {
return NewBackupProtectableItemsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewBackupProtectableItemsClientWithBaseURI creates an instance of the
// BackupProtectableItemsClient client.
// NewBackupProtectableItemsClientWithBaseURI creates an instance of the BackupProtectableItemsClient client.
func NewBackupProtectableItemsClientWithBaseURI(baseURI string, subscriptionID string) BackupProtectableItemsClient {
return BackupProtectableItemsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// List provides a pageable list of protectable objects within your
// subscription according to the query filter and the pagination parameters.
// List provides a pageable list of protectable objects within your subscription according to the query filter and the
// pagination parameters.
//
// 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 BackupProtectableItemsClient) List(vaultName string, resourceGroupName string, filter string, skipToken string) (result WorkloadProtectableItemResourceList, err error) {
req, err := client.ListPreparer(vaultName, resourceGroupName, filter, skipToken)
if err != nil {
@@ -139,3 +134,48 @@ func (client BackupProtectableItemsClient) ListNextResults(lastResults WorkloadP
return
}
// ListComplete gets all elements from the list without paging.
func (client BackupProtectableItemsClient) ListComplete(vaultName string, resourceGroupName string, filter string, skipToken string, cancel <-chan struct{}) (<-chan WorkloadProtectableItemResource, <-chan error) {
resultChan := make(chan WorkloadProtectableItemResource)
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
}