...

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

Documentation: github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-06-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-06-01/backup"
    13  	"github.com/Azure/go-autorest/autorest"
    14  )
    15  
    16  // ItemLevelRecoveryConnectionsClientAPI contains the set of methods on the ItemLevelRecoveryConnectionsClient type.
    17  type ItemLevelRecoveryConnectionsClientAPI interface {
    18  	Provision(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, resourceILRRequest backup.ILRRequestResource) (result autorest.Response, err error)
    19  	Revoke(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (result autorest.Response, err error)
    20  }
    21  
    22  var _ ItemLevelRecoveryConnectionsClientAPI = (*backup.ItemLevelRecoveryConnectionsClient)(nil)
    23  
    24  // RestoresClientAPI contains the set of methods on the RestoresClient type.
    25  type RestoresClientAPI interface {
    26  	Trigger(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, resourceRestoreRequest backup.RestoreRequestResource) (result autorest.Response, err error)
    27  }
    28  
    29  var _ RestoresClientAPI = (*backup.RestoresClient)(nil)
    30  
    31  // ProtectionPolicyOperationStatusesClientAPI contains the set of methods on the ProtectionPolicyOperationStatusesClient type.
    32  type ProtectionPolicyOperationStatusesClientAPI interface {
    33  	Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (result backup.OperationStatus, err error)
    34  }
    35  
    36  var _ ProtectionPolicyOperationStatusesClientAPI = (*backup.ProtectionPolicyOperationStatusesClient)(nil)
    37  
    38  // ProtectionPolicyOperationResultsClientAPI contains the set of methods on the ProtectionPolicyOperationResultsClient type.
    39  type ProtectionPolicyOperationResultsClientAPI interface {
    40  	Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (result backup.ProtectionPolicyResource, err error)
    41  }
    42  
    43  var _ ProtectionPolicyOperationResultsClientAPI = (*backup.ProtectionPolicyOperationResultsClient)(nil)
    44  
    45  // ProtectionPoliciesClientAPI contains the set of methods on the ProtectionPoliciesClient type.
    46  type ProtectionPoliciesClientAPI interface {
    47  	CreateOrUpdate(ctx context.Context, vaultName string, resourceGroupName string, policyName string, resourceProtectionPolicy backup.ProtectionPolicyResource) (result backup.ProtectionPolicyResource, err error)
    48  	Delete(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (result autorest.Response, err error)
    49  	Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (result backup.ProtectionPolicyResource, err error)
    50  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result backup.ProtectionPolicyResourceList, err error)
    51  }
    52  
    53  var _ ProtectionPoliciesClientAPI = (*backup.ProtectionPoliciesClient)(nil)
    54  
    55  // ProtectionContainerOperationResultsClientAPI contains the set of methods on the ProtectionContainerOperationResultsClient type.
    56  type ProtectionContainerOperationResultsClientAPI interface {
    57  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, operationID string) (result backup.ProtectionContainerResource, err error)
    58  }
    59  
    60  var _ ProtectionContainerOperationResultsClientAPI = (*backup.ProtectionContainerOperationResultsClient)(nil)
    61  
    62  // ProtectionContainerRefreshOperationResultsClientAPI contains the set of methods on the ProtectionContainerRefreshOperationResultsClient type.
    63  type ProtectionContainerRefreshOperationResultsClientAPI interface {
    64  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, operationID string) (result autorest.Response, err error)
    65  }
    66  
    67  var _ ProtectionContainerRefreshOperationResultsClientAPI = (*backup.ProtectionContainerRefreshOperationResultsClient)(nil)
    68  
    69  // ProtectionContainersClientAPI contains the set of methods on the ProtectionContainersClient type.
    70  type ProtectionContainersClientAPI interface {
    71  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string) (result backup.ProtectionContainerResource, err error)
    72  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result backup.ProtectionContainerResourceList, err error)
    73  	Refresh(ctx context.Context, vaultName string, resourceGroupName string, fabricName string) (result autorest.Response, err error)
    74  	Unregister(ctx context.Context, resourceGroupName string, vaultName string, identityName string) (result autorest.Response, err error)
    75  }
    76  
    77  var _ ProtectionContainersClientAPI = (*backup.ProtectionContainersClient)(nil)
    78  
    79  // RecoveryPointsClientAPI contains the set of methods on the RecoveryPointsClient type.
    80  type RecoveryPointsClientAPI interface {
    81  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (result backup.RecoveryPointResource, err error)
    82  	List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result backup.RecoveryPointResourceList, err error)
    83  }
    84  
    85  var _ RecoveryPointsClientAPI = (*backup.RecoveryPointsClient)(nil)
    86  
    87  // BackupsClientAPI contains the set of methods on the BackupsClient type.
    88  type BackupsClientAPI interface {
    89  	Trigger(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, resourceBackupRequest backup.RequestResource) (result autorest.Response, err error)
    90  }
    91  
    92  var _ BackupsClientAPI = (*backup.BackupsClient)(nil)
    93  
    94  // ProtectedItemOperationStatusesClientAPI contains the set of methods on the ProtectedItemOperationStatusesClient type.
    95  type ProtectedItemOperationStatusesClientAPI interface {
    96  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, operationID string) (result backup.OperationStatus, err error)
    97  }
    98  
    99  var _ ProtectedItemOperationStatusesClientAPI = (*backup.ProtectedItemOperationStatusesClient)(nil)
   100  
   101  // ProtectedItemOperationResultsClientAPI contains the set of methods on the ProtectedItemOperationResultsClient type.
   102  type ProtectedItemOperationResultsClientAPI interface {
   103  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, operationID string) (result backup.ProtectedItemResource, err error)
   104  }
   105  
   106  var _ ProtectedItemOperationResultsClientAPI = (*backup.ProtectedItemOperationResultsClient)(nil)
   107  
   108  // ProtectedItemsClientAPI contains the set of methods on the ProtectedItemsClient type.
   109  type ProtectedItemsClientAPI interface {
   110  	CreateOrUpdate(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, resourceProtectedItem backup.ProtectedItemResource) (result autorest.Response, err error)
   111  	Delete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string) (result autorest.Response, err error)
   112  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result backup.ProtectedItemResource, err error)
   113  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.ProtectedItemResourceListPage, err error)
   114  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.ProtectedItemResourceListIterator, err error)
   115  }
   116  
   117  var _ ProtectedItemsClientAPI = (*backup.ProtectedItemsClient)(nil)
   118  
   119  // ProtectableItemsClientAPI contains the set of methods on the ProtectableItemsClient type.
   120  type ProtectableItemsClientAPI interface {
   121  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.WorkloadProtectableItemResourceListPage, err error)
   122  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.WorkloadProtectableItemResourceListIterator, err error)
   123  }
   124  
   125  var _ ProtectableItemsClientAPI = (*backup.ProtectableItemsClient)(nil)
   126  
   127  // ExportJobsOperationResultsClientAPI contains the set of methods on the ExportJobsOperationResultsClient type.
   128  type ExportJobsOperationResultsClientAPI interface {
   129  	Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result backup.OperationResultInfoBaseResource, err error)
   130  }
   131  
   132  var _ ExportJobsOperationResultsClientAPI = (*backup.ExportJobsOperationResultsClient)(nil)
   133  
   134  // JobOperationResultsClientAPI contains the set of methods on the JobOperationResultsClient type.
   135  type JobOperationResultsClientAPI interface {
   136  	Get(ctx context.Context, vaultName string, resourceGroupName string, jobName string, operationID string) (result autorest.Response, err error)
   137  }
   138  
   139  var _ JobOperationResultsClientAPI = (*backup.JobOperationResultsClient)(nil)
   140  
   141  // JobsClientAPI contains the set of methods on the JobsClient type.
   142  type JobsClientAPI interface {
   143  	Export(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result autorest.Response, err error)
   144  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.JobResourceListPage, err error)
   145  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.JobResourceListIterator, err error)
   146  }
   147  
   148  var _ JobsClientAPI = (*backup.JobsClient)(nil)
   149  
   150  // JobCancellationsClientAPI contains the set of methods on the JobCancellationsClient type.
   151  type JobCancellationsClientAPI interface {
   152  	Trigger(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (result autorest.Response, err error)
   153  }
   154  
   155  var _ JobCancellationsClientAPI = (*backup.JobCancellationsClient)(nil)
   156  
   157  // JobDetailsClientAPI contains the set of methods on the JobDetailsClient type.
   158  type JobDetailsClientAPI interface {
   159  	Get(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (result backup.JobResource, err error)
   160  }
   161  
   162  var _ JobDetailsClientAPI = (*backup.JobDetailsClient)(nil)
   163  
   164  // OperationStatusesClientAPI contains the set of methods on the OperationStatusesClient type.
   165  type OperationStatusesClientAPI interface {
   166  	Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result backup.OperationStatus, err error)
   167  }
   168  
   169  var _ OperationStatusesClientAPI = (*backup.OperationStatusesClient)(nil)
   170  
   171  // OperationResultsClientAPI contains the set of methods on the OperationResultsClient type.
   172  type OperationResultsClientAPI interface {
   173  	Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result autorest.Response, err error)
   174  }
   175  
   176  var _ OperationResultsClientAPI = (*backup.OperationResultsClient)(nil)
   177  
   178  // EnginesClientAPI contains the set of methods on the EnginesClient type.
   179  type EnginesClientAPI interface {
   180  	Get(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.EngineBaseResourceListPage, err error)
   181  	GetComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.EngineBaseResourceListIterator, err error)
   182  }
   183  
   184  var _ EnginesClientAPI = (*backup.EnginesClient)(nil)
   185  

View as plain text