vendor: update all dependencies to latest versions
This commit is contained in:
Generated
Vendored
+60
-24
@@ -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,34 +23,28 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// RecoveryPointsClient is the client for the RecoveryPoints methods of the
|
||||
// Recoveryservicesbackup service.
|
||||
// RecoveryPointsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
|
||||
type RecoveryPointsClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
|
||||
// NewRecoveryPointsClient creates an instance of the RecoveryPointsClient
|
||||
// client.
|
||||
// NewRecoveryPointsClient creates an instance of the RecoveryPointsClient client.
|
||||
func NewRecoveryPointsClient(subscriptionID string) RecoveryPointsClient {
|
||||
return NewRecoveryPointsClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewRecoveryPointsClientWithBaseURI creates an instance of the
|
||||
// RecoveryPointsClient client.
|
||||
// NewRecoveryPointsClientWithBaseURI creates an instance of the RecoveryPointsClient client.
|
||||
func NewRecoveryPointsClientWithBaseURI(baseURI string, subscriptionID string) RecoveryPointsClient {
|
||||
return RecoveryPointsClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// Get provides the information of the backed up data identified using
|
||||
// RecoveryPointID. This is an asynchronous operation. To know the status of
|
||||
// the operation, call the GetProtectedItemOperationResult API.
|
||||
// Get provides the information of the backed up data identified using RecoveryPointID. This is an asynchronous
|
||||
// operation. To know the status of the operation, call the GetProtectedItemOperationResult API.
|
||||
//
|
||||
// vaultName is the name of the recovery services vault. resourceGroupName is
|
||||
// the name of the resource group where the recovery services vault is present.
|
||||
// fabricName is fabric name associated with backed up item. containerName is
|
||||
// container name associated with backed up item. protectedItemName is backed
|
||||
// up item name whose backup data needs to be fetched. recoveryPointID is
|
||||
// recoveryPointID represents the backed up data to be fetched.
|
||||
// vaultName is the name of the recovery services vault. resourceGroupName is the name of the resource group where the
|
||||
// recovery services vault is present. fabricName is fabric name associated with backed up item. containerName is
|
||||
// container name associated with backed up item. protectedItemName is backed up item name whose backup data needs to
|
||||
// be fetched. recoveryPointID is recoveryPointID represents the backed up data to be fetched.
|
||||
func (client RecoveryPointsClient) Get(vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (result RecoveryPointResource, err error) {
|
||||
req, err := client.GetPreparer(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointID)
|
||||
if err != nil {
|
||||
@@ -120,12 +113,10 @@ func (client RecoveryPointsClient) GetResponder(resp *http.Response) (result Rec
|
||||
|
||||
// List lists the backup copies for the backed up item.
|
||||
//
|
||||
// vaultName is the name of the recovery services vault. resourceGroupName is
|
||||
// the name of the resource group where the recovery services vault is present.
|
||||
// fabricName is fabric name associated with the backed up item. containerName
|
||||
// is container name associated with the backed up item. protectedItemName is
|
||||
// backed up item whose backup copies are to be fetched. filter is oData filter
|
||||
// options.
|
||||
// vaultName is the name of the recovery services vault. resourceGroupName is the name of the resource group where the
|
||||
// recovery services vault is present. fabricName is fabric name associated with the backed up item. containerName is
|
||||
// container name associated with the backed up item. protectedItemName is backed up item whose backup copies are to be
|
||||
// fetched. filter is oData filter options.
|
||||
func (client RecoveryPointsClient) List(vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result RecoveryPointResourceList, err error) {
|
||||
req, err := client.ListPreparer(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, filter)
|
||||
if err != nil {
|
||||
@@ -217,3 +208,48 @@ func (client RecoveryPointsClient) ListNextResults(lastResults RecoveryPointReso
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client RecoveryPointsClient) ListComplete(vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string, cancel <-chan struct{}) (<-chan RecoveryPointResource, <-chan error) {
|
||||
resultChan := make(chan RecoveryPointResource)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.List(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, filter)
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user