...

Source file src/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-12-01/backup/backupapi/interfaces.go

Documentation: github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-12-01/backup/backupapi

     1  // Deprecated: Please note, this package has been deprecated. A replacement package is available [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.
     2  package backupapi
     3  
     4  // Copyright (c) Microsoft Corporation. All rights reserved.
     5  // Licensed under the MIT License. See License.txt in the project root for license information.
     6  //
     7  // Code generated by Microsoft (R) AutoRest Code Generator.
     8  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
     9  
    10  import (
    11  	"context"
    12  	"github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-12-01/backup"
    13  	"github.com/Azure/go-autorest/autorest"
    14  )
    15  
    16  // EnginesClientAPI contains the set of methods on the EnginesClient type.
    17  type EnginesClientAPI interface {
    18  	Get(ctx context.Context, vaultName string, resourceGroupName string, backupEngineName string, filter string, skipToken string) (result backup.EngineBaseResource, err error)
    19  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.EngineBaseResourceListPage, err error)
    20  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.EngineBaseResourceListIterator, err error)
    21  }
    22  
    23  var _ EnginesClientAPI = (*backup.EnginesClient)(nil)
    24  
    25  // ProtectionContainerRefreshOperationResultsClientAPI contains the set of methods on the ProtectionContainerRefreshOperationResultsClient type.
    26  type ProtectionContainerRefreshOperationResultsClientAPI interface {
    27  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, operationID string) (result autorest.Response, err error)
    28  }
    29  
    30  var _ ProtectionContainerRefreshOperationResultsClientAPI = (*backup.ProtectionContainerRefreshOperationResultsClient)(nil)
    31  
    32  // ProtectableContainersClientAPI contains the set of methods on the ProtectableContainersClient type.
    33  type ProtectableContainersClientAPI interface {
    34  	List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, filter string) (result backup.ProtectableContainerResourceListPage, err error)
    35  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, filter string) (result backup.ProtectableContainerResourceListIterator, err error)
    36  }
    37  
    38  var _ ProtectableContainersClientAPI = (*backup.ProtectableContainersClient)(nil)
    39  
    40  // ProtectionContainersClientAPI contains the set of methods on the ProtectionContainersClient type.
    41  type ProtectionContainersClientAPI interface {
    42  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string) (result backup.ProtectionContainerResource, err error)
    43  	Inquire(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, filter string) (result autorest.Response, err error)
    44  	Refresh(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, filter string) (result autorest.Response, err error)
    45  	Register(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, parameters backup.ProtectionContainerResource) (result backup.ProtectionContainerResource, err error)
    46  	Unregister(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string) (result autorest.Response, err error)
    47  }
    48  
    49  var _ ProtectionContainersClientAPI = (*backup.ProtectionContainersClient)(nil)
    50  
    51  // WorkloadItemsClientAPI contains the set of methods on the WorkloadItemsClient type.
    52  type WorkloadItemsClientAPI interface {
    53  	List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, filter string, skipToken string) (result backup.WorkloadItemResourceListPage, err error)
    54  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, filter string, skipToken string) (result backup.WorkloadItemResourceListIterator, err error)
    55  }
    56  
    57  var _ WorkloadItemsClientAPI = (*backup.WorkloadItemsClient)(nil)
    58  
    59  // ProtectionContainerOperationResultsClientAPI contains the set of methods on the ProtectionContainerOperationResultsClient type.
    60  type ProtectionContainerOperationResultsClientAPI interface {
    61  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, operationID string) (result backup.ProtectionContainerResource, err error)
    62  }
    63  
    64  var _ ProtectionContainerOperationResultsClientAPI = (*backup.ProtectionContainerOperationResultsClient)(nil)
    65  
    66  // BackupsClientAPI contains the set of methods on the BackupsClient type.
    67  type BackupsClientAPI interface {
    68  	Trigger(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, parameters backup.RequestResource) (result autorest.Response, err error)
    69  }
    70  
    71  var _ BackupsClientAPI = (*backup.BackupsClient)(nil)
    72  
    73  // ProtectedItemOperationStatusesClientAPI contains the set of methods on the ProtectedItemOperationStatusesClient type.
    74  type ProtectedItemOperationStatusesClientAPI interface {
    75  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, operationID string) (result backup.OperationStatus, err error)
    76  }
    77  
    78  var _ ProtectedItemOperationStatusesClientAPI = (*backup.ProtectedItemOperationStatusesClient)(nil)
    79  
    80  // ItemLevelRecoveryConnectionsClientAPI contains the set of methods on the ItemLevelRecoveryConnectionsClient type.
    81  type ItemLevelRecoveryConnectionsClientAPI interface {
    82  	Provision(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, parameters backup.ILRRequestResource) (result autorest.Response, err error)
    83  	Revoke(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (result autorest.Response, err error)
    84  }
    85  
    86  var _ ItemLevelRecoveryConnectionsClientAPI = (*backup.ItemLevelRecoveryConnectionsClient)(nil)
    87  
    88  // OperationResultsClientAPI contains the set of methods on the OperationResultsClient type.
    89  type OperationResultsClientAPI interface {
    90  	Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result autorest.Response, err error)
    91  }
    92  
    93  var _ OperationResultsClientAPI = (*backup.OperationResultsClient)(nil)
    94  
    95  // OperationStatusesClientAPI contains the set of methods on the OperationStatusesClient type.
    96  type OperationStatusesClientAPI interface {
    97  	Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result backup.OperationStatus, err error)
    98  }
    99  
   100  var _ OperationStatusesClientAPI = (*backup.OperationStatusesClient)(nil)
   101  
   102  // ProtectionPoliciesClientAPI contains the set of methods on the ProtectionPoliciesClient type.
   103  type ProtectionPoliciesClientAPI interface {
   104  	Delete(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (result autorest.Response, err error)
   105  }
   106  
   107  var _ ProtectionPoliciesClientAPI = (*backup.ProtectionPoliciesClient)(nil)
   108  
   109  // ProtectionPolicyOperationStatusesClientAPI contains the set of methods on the ProtectionPolicyOperationStatusesClient type.
   110  type ProtectionPolicyOperationStatusesClientAPI interface {
   111  	Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (result backup.OperationStatus, err error)
   112  }
   113  
   114  var _ ProtectionPolicyOperationStatusesClientAPI = (*backup.ProtectionPolicyOperationStatusesClient)(nil)
   115  
   116  // ProtectableItemsClientAPI contains the set of methods on the ProtectableItemsClient type.
   117  type ProtectableItemsClientAPI interface {
   118  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.WorkloadProtectableItemResourceListPage, err error)
   119  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.WorkloadProtectableItemResourceListIterator, err error)
   120  }
   121  
   122  var _ ProtectableItemsClientAPI = (*backup.ProtectableItemsClient)(nil)
   123  
   124  // ProtectionContainersGroupClientAPI contains the set of methods on the ProtectionContainersGroupClient type.
   125  type ProtectionContainersGroupClientAPI interface {
   126  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result backup.ProtectionContainerResourceListPage, err error)
   127  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result backup.ProtectionContainerResourceListIterator, err error)
   128  }
   129  
   130  var _ ProtectionContainersGroupClientAPI = (*backup.ProtectionContainersGroupClient)(nil)
   131  
   132  // SecurityPINsClientAPI contains the set of methods on the SecurityPINsClient type.
   133  type SecurityPINsClientAPI interface {
   134  	Get(ctx context.Context, vaultName string, resourceGroupName string) (result backup.TokenInformation, err error)
   135  }
   136  
   137  var _ SecurityPINsClientAPI = (*backup.SecurityPINsClient)(nil)
   138  
   139  // ResourceStorageConfigsClientAPI contains the set of methods on the ResourceStorageConfigsClient type.
   140  type ResourceStorageConfigsClientAPI interface {
   141  	Get(ctx context.Context, vaultName string, resourceGroupName string) (result backup.ResourceConfigResource, err error)
   142  	Patch(ctx context.Context, vaultName string, resourceGroupName string, parameters backup.ResourceConfigResource) (result autorest.Response, err error)
   143  	Update(ctx context.Context, vaultName string, resourceGroupName string, parameters backup.ResourceConfigResource) (result backup.ResourceConfigResource, err error)
   144  }
   145  
   146  var _ ResourceStorageConfigsClientAPI = (*backup.ResourceStorageConfigsClient)(nil)
   147  

View as plain text