...

Source file src/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2020-02-02/backup/backupapi/interfaces.go

Documentation: github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2020-02-02/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/2020-02-02/backup"
    13  	"github.com/Azure/go-autorest/autorest"
    14  )
    15  
    16  // BaseClientAPI contains the set of methods on the BaseClient type.
    17  type BaseClientAPI interface {
    18  	GetOperationStatus(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string, operationID string) (result backup.OperationStatus, err error)
    19  }
    20  
    21  var _ BaseClientAPI = (*backup.BaseClient)(nil)
    22  
    23  // PrivateEndpointConnectionClientAPI contains the set of methods on the PrivateEndpointConnectionClient type.
    24  type PrivateEndpointConnectionClientAPI interface {
    25  	Delete(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string) (result backup.PrivateEndpointConnectionDeleteFuture, err error)
    26  	Get(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string) (result backup.PrivateEndpointConnectionResource, err error)
    27  	Put(ctx context.Context, vaultName string, resourceGroupName string, privateEndpointConnectionName string, parameters backup.PrivateEndpointConnectionResource) (result backup.PrivateEndpointConnectionPutFuture, err error)
    28  }
    29  
    30  var _ PrivateEndpointConnectionClientAPI = (*backup.PrivateEndpointConnectionClient)(nil)
    31  
    32  // ResourceVaultConfigsClientAPI contains the set of methods on the ResourceVaultConfigsClient type.
    33  type ResourceVaultConfigsClientAPI interface {
    34  	Get(ctx context.Context, vaultName string, resourceGroupName string) (result backup.ResourceVaultConfigResource, err error)
    35  	Put(ctx context.Context, vaultName string, resourceGroupName string, parameters backup.ResourceVaultConfigResource) (result backup.ResourceVaultConfigResource, err error)
    36  	Update(ctx context.Context, vaultName string, resourceGroupName string, parameters backup.ResourceVaultConfigResource) (result backup.ResourceVaultConfigResource, err error)
    37  }
    38  
    39  var _ ResourceVaultConfigsClientAPI = (*backup.ResourceVaultConfigsClient)(nil)
    40  
    41  // ProtectedItemsClientAPI contains the set of methods on the ProtectedItemsClient type.
    42  type ProtectedItemsClientAPI interface {
    43  	CreateOrUpdate(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, parameters backup.ProtectedItemResource) (result backup.ProtectedItemResource, err error)
    44  	Delete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string) (result autorest.Response, err error)
    45  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result backup.ProtectedItemResource, err error)
    46  }
    47  
    48  var _ ProtectedItemsClientAPI = (*backup.ProtectedItemsClient)(nil)
    49  
    50  // ProtectedItemOperationResultsClientAPI contains the set of methods on the ProtectedItemOperationResultsClient type.
    51  type ProtectedItemOperationResultsClientAPI interface {
    52  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, operationID string) (result backup.ProtectedItemResource, err error)
    53  }
    54  
    55  var _ ProtectedItemOperationResultsClientAPI = (*backup.ProtectedItemOperationResultsClient)(nil)
    56  
    57  // RecoveryPointsClientAPI contains the set of methods on the RecoveryPointsClient type.
    58  type RecoveryPointsClientAPI interface {
    59  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (result backup.RecoveryPointResource, err error)
    60  	List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result backup.RecoveryPointResourceListPage, err error)
    61  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result backup.RecoveryPointResourceListIterator, err error)
    62  }
    63  
    64  var _ RecoveryPointsClientAPI = (*backup.RecoveryPointsClient)(nil)
    65  
    66  // RestoresClientAPI contains the set of methods on the RestoresClient type.
    67  type RestoresClientAPI interface {
    68  	Trigger(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, parameters backup.RestoreRequestResource) (result autorest.Response, err error)
    69  }
    70  
    71  var _ RestoresClientAPI = (*backup.RestoresClient)(nil)
    72  
    73  // PoliciesClientAPI contains the set of methods on the PoliciesClient type.
    74  type PoliciesClientAPI interface {
    75  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result backup.ProtectionPolicyResourceListPage, err error)
    76  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result backup.ProtectionPolicyResourceListIterator, err error)
    77  }
    78  
    79  var _ PoliciesClientAPI = (*backup.PoliciesClient)(nil)
    80  
    81  // ProtectionPoliciesClientAPI contains the set of methods on the ProtectionPoliciesClient type.
    82  type ProtectionPoliciesClientAPI interface {
    83  	CreateOrUpdate(ctx context.Context, vaultName string, resourceGroupName string, policyName string, parameters backup.ProtectionPolicyResource) (result backup.ProtectionPolicyResource, err error)
    84  	Delete(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (result autorest.Response, err error)
    85  	Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (result backup.ProtectionPolicyResource, err error)
    86  }
    87  
    88  var _ ProtectionPoliciesClientAPI = (*backup.ProtectionPoliciesClient)(nil)
    89  
    90  // ProtectionPolicyOperationResultsClientAPI contains the set of methods on the ProtectionPolicyOperationResultsClient type.
    91  type ProtectionPolicyOperationResultsClientAPI interface {
    92  	Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (result backup.ProtectionPolicyResource, err error)
    93  }
    94  
    95  var _ ProtectionPolicyOperationResultsClientAPI = (*backup.ProtectionPolicyOperationResultsClient)(nil)
    96  
    97  // JobsClientAPI contains the set of methods on the JobsClient type.
    98  type JobsClientAPI interface {
    99  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.JobResourceListPage, err error)
   100  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.JobResourceListIterator, err error)
   101  }
   102  
   103  var _ JobsClientAPI = (*backup.JobsClient)(nil)
   104  
   105  // JobDetailsClientAPI contains the set of methods on the JobDetailsClient type.
   106  type JobDetailsClientAPI interface {
   107  	Get(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (result backup.JobResource, err error)
   108  }
   109  
   110  var _ JobDetailsClientAPI = (*backup.JobDetailsClient)(nil)
   111  
   112  // JobCancellationsClientAPI contains the set of methods on the JobCancellationsClient type.
   113  type JobCancellationsClientAPI interface {
   114  	Trigger(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (result autorest.Response, err error)
   115  }
   116  
   117  var _ JobCancellationsClientAPI = (*backup.JobCancellationsClient)(nil)
   118  
   119  // JobOperationResultsClientAPI contains the set of methods on the JobOperationResultsClient type.
   120  type JobOperationResultsClientAPI interface {
   121  	Get(ctx context.Context, vaultName string, resourceGroupName string, jobName string, operationID string) (result autorest.Response, err error)
   122  }
   123  
   124  var _ JobOperationResultsClientAPI = (*backup.JobOperationResultsClient)(nil)
   125  
   126  // ExportJobsOperationResultsClientAPI contains the set of methods on the ExportJobsOperationResultsClient type.
   127  type ExportJobsOperationResultsClientAPI interface {
   128  	Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result backup.OperationResultInfoBaseResource, err error)
   129  }
   130  
   131  var _ ExportJobsOperationResultsClientAPI = (*backup.ExportJobsOperationResultsClient)(nil)
   132  
   133  // JobsGroupClientAPI contains the set of methods on the JobsGroupClient type.
   134  type JobsGroupClientAPI interface {
   135  	Export(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result autorest.Response, err error)
   136  }
   137  
   138  var _ JobsGroupClientAPI = (*backup.JobsGroupClient)(nil)
   139  
   140  // ProtectedItemsGroupClientAPI contains the set of methods on the ProtectedItemsGroupClient type.
   141  type ProtectedItemsGroupClientAPI interface {
   142  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.ProtectedItemResourceListPage, err error)
   143  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.ProtectedItemResourceListIterator, err error)
   144  }
   145  
   146  var _ ProtectedItemsGroupClientAPI = (*backup.ProtectedItemsGroupClient)(nil)
   147  
   148  // OperationClientAPI contains the set of methods on the OperationClient type.
   149  type OperationClientAPI interface {
   150  	Validate(ctx context.Context, vaultName string, resourceGroupName string, parameters backup.BasicValidateOperationRequest) (result backup.ValidateOperationsResponse, err error)
   151  }
   152  
   153  var _ OperationClientAPI = (*backup.OperationClient)(nil)
   154  
   155  // ProtectionIntentClientAPI contains the set of methods on the ProtectionIntentClient type.
   156  type ProtectionIntentClientAPI interface {
   157  	CreateOrUpdate(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, intentObjectName string, parameters backup.ProtectionIntentResource) (result backup.ProtectionIntentResource, err error)
   158  	Delete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, intentObjectName string) (result autorest.Response, err error)
   159  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, intentObjectName string) (result backup.ProtectionIntentResource, err error)
   160  	Validate(ctx context.Context, azureRegion string, parameters backup.PreValidateEnableBackupRequest) (result backup.PreValidateEnableBackupResponse, err error)
   161  }
   162  
   163  var _ ProtectionIntentClientAPI = (*backup.ProtectionIntentClient)(nil)
   164  
   165  // StatusClientAPI contains the set of methods on the StatusClient type.
   166  type StatusClientAPI interface {
   167  	Get(ctx context.Context, azureRegion string, parameters backup.StatusRequest) (result backup.StatusResponse, err error)
   168  }
   169  
   170  var _ StatusClientAPI = (*backup.StatusClient)(nil)
   171  
   172  // FeatureSupportClientAPI contains the set of methods on the FeatureSupportClient type.
   173  type FeatureSupportClientAPI interface {
   174  	Validate(ctx context.Context, azureRegion string, parameters backup.BasicFeatureSupportRequest) (result backup.AzureVMResourceFeatureSupportResponse, err error)
   175  }
   176  
   177  var _ FeatureSupportClientAPI = (*backup.FeatureSupportClient)(nil)
   178  
   179  // ProtectionIntentGroupClientAPI contains the set of methods on the ProtectionIntentGroupClient type.
   180  type ProtectionIntentGroupClientAPI interface {
   181  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.ProtectionIntentResourceListPage, err error)
   182  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.ProtectionIntentResourceListIterator, err error)
   183  }
   184  
   185  var _ ProtectionIntentGroupClientAPI = (*backup.ProtectionIntentGroupClient)(nil)
   186  
   187  // UsageSummariesClientAPI contains the set of methods on the UsageSummariesClient type.
   188  type UsageSummariesClientAPI interface {
   189  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.ManagementUsageList, err error)
   190  }
   191  
   192  var _ UsageSummariesClientAPI = (*backup.UsageSummariesClient)(nil)
   193  
   194  // EnginesClientAPI contains the set of methods on the EnginesClient type.
   195  type EnginesClientAPI interface {
   196  	Get(ctx context.Context, vaultName string, resourceGroupName string, backupEngineName string, filter string, skipToken string) (result backup.EngineBaseResource, err error)
   197  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.EngineBaseResourceListPage, err error)
   198  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.EngineBaseResourceListIterator, err error)
   199  }
   200  
   201  var _ EnginesClientAPI = (*backup.EnginesClient)(nil)
   202  
   203  // ProtectionContainerRefreshOperationResultsClientAPI contains the set of methods on the ProtectionContainerRefreshOperationResultsClient type.
   204  type ProtectionContainerRefreshOperationResultsClientAPI interface {
   205  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, operationID string) (result autorest.Response, err error)
   206  }
   207  
   208  var _ ProtectionContainerRefreshOperationResultsClientAPI = (*backup.ProtectionContainerRefreshOperationResultsClient)(nil)
   209  
   210  // ProtectableContainersClientAPI contains the set of methods on the ProtectableContainersClient type.
   211  type ProtectableContainersClientAPI interface {
   212  	List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, filter string) (result backup.ProtectableContainerResourceListPage, err error)
   213  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, filter string) (result backup.ProtectableContainerResourceListIterator, err error)
   214  }
   215  
   216  var _ ProtectableContainersClientAPI = (*backup.ProtectableContainersClient)(nil)
   217  
   218  // ProtectionContainersClientAPI contains the set of methods on the ProtectionContainersClient type.
   219  type ProtectionContainersClientAPI interface {
   220  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string) (result backup.ProtectionContainerResource, err error)
   221  	Inquire(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, filter string) (result autorest.Response, err error)
   222  	Refresh(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, filter string) (result autorest.Response, err error)
   223  	Register(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, parameters backup.ProtectionContainerResource) (result backup.ProtectionContainerResource, err error)
   224  	Unregister(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string) (result autorest.Response, err error)
   225  }
   226  
   227  var _ ProtectionContainersClientAPI = (*backup.ProtectionContainersClient)(nil)
   228  
   229  // WorkloadItemsClientAPI contains the set of methods on the WorkloadItemsClient type.
   230  type WorkloadItemsClientAPI interface {
   231  	List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, filter string, skipToken string) (result backup.WorkloadItemResourceListPage, err error)
   232  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, filter string, skipToken string) (result backup.WorkloadItemResourceListIterator, err error)
   233  }
   234  
   235  var _ WorkloadItemsClientAPI = (*backup.WorkloadItemsClient)(nil)
   236  
   237  // ProtectionContainerOperationResultsClientAPI contains the set of methods on the ProtectionContainerOperationResultsClient type.
   238  type ProtectionContainerOperationResultsClientAPI interface {
   239  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, operationID string) (result backup.ProtectionContainerResource, err error)
   240  }
   241  
   242  var _ ProtectionContainerOperationResultsClientAPI = (*backup.ProtectionContainerOperationResultsClient)(nil)
   243  
   244  // BackupsClientAPI contains the set of methods on the BackupsClient type.
   245  type BackupsClientAPI interface {
   246  	Trigger(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, parameters backup.RequestResource) (result autorest.Response, err error)
   247  }
   248  
   249  var _ BackupsClientAPI = (*backup.BackupsClient)(nil)
   250  
   251  // ProtectedItemOperationStatusesClientAPI contains the set of methods on the ProtectedItemOperationStatusesClient type.
   252  type ProtectedItemOperationStatusesClientAPI interface {
   253  	Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, operationID string) (result backup.OperationStatus, err error)
   254  }
   255  
   256  var _ ProtectedItemOperationStatusesClientAPI = (*backup.ProtectedItemOperationStatusesClient)(nil)
   257  
   258  // ItemLevelRecoveryConnectionsClientAPI contains the set of methods on the ItemLevelRecoveryConnectionsClient type.
   259  type ItemLevelRecoveryConnectionsClientAPI interface {
   260  	Provision(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, parameters backup.ILRRequestResource) (result autorest.Response, err error)
   261  	Revoke(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (result autorest.Response, err error)
   262  }
   263  
   264  var _ ItemLevelRecoveryConnectionsClientAPI = (*backup.ItemLevelRecoveryConnectionsClient)(nil)
   265  
   266  // OperationResultsClientAPI contains the set of methods on the OperationResultsClient type.
   267  type OperationResultsClientAPI interface {
   268  	Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result autorest.Response, err error)
   269  }
   270  
   271  var _ OperationResultsClientAPI = (*backup.OperationResultsClient)(nil)
   272  
   273  // OperationStatusesClientAPI contains the set of methods on the OperationStatusesClient type.
   274  type OperationStatusesClientAPI interface {
   275  	Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result backup.OperationStatus, err error)
   276  }
   277  
   278  var _ OperationStatusesClientAPI = (*backup.OperationStatusesClient)(nil)
   279  
   280  // ProtectionPolicyOperationStatusesClientAPI contains the set of methods on the ProtectionPolicyOperationStatusesClient type.
   281  type ProtectionPolicyOperationStatusesClientAPI interface {
   282  	Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (result backup.OperationStatus, err error)
   283  }
   284  
   285  var _ ProtectionPolicyOperationStatusesClientAPI = (*backup.ProtectionPolicyOperationStatusesClient)(nil)
   286  
   287  // ProtectableItemsClientAPI contains the set of methods on the ProtectableItemsClient type.
   288  type ProtectableItemsClientAPI interface {
   289  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.WorkloadProtectableItemResourceListPage, err error)
   290  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result backup.WorkloadProtectableItemResourceListIterator, err error)
   291  }
   292  
   293  var _ ProtectableItemsClientAPI = (*backup.ProtectableItemsClient)(nil)
   294  
   295  // ProtectionContainersGroupClientAPI contains the set of methods on the ProtectionContainersGroupClient type.
   296  type ProtectionContainersGroupClientAPI interface {
   297  	List(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result backup.ProtectionContainerResourceListPage, err error)
   298  	ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result backup.ProtectionContainerResourceListIterator, err error)
   299  }
   300  
   301  var _ ProtectionContainersGroupClientAPI = (*backup.ProtectionContainersGroupClient)(nil)
   302  
   303  // SecurityPINsClientAPI contains the set of methods on the SecurityPINsClient type.
   304  type SecurityPINsClientAPI interface {
   305  	Get(ctx context.Context, vaultName string, resourceGroupName string) (result backup.TokenInformation, err error)
   306  }
   307  
   308  var _ SecurityPINsClientAPI = (*backup.SecurityPINsClient)(nil)
   309  
   310  // ResourceStorageConfigsClientAPI contains the set of methods on the ResourceStorageConfigsClient type.
   311  type ResourceStorageConfigsClientAPI interface {
   312  	Get(ctx context.Context, vaultName string, resourceGroupName string) (result backup.ResourceConfigResource, err error)
   313  	Patch(ctx context.Context, vaultName string, resourceGroupName string, parameters backup.ResourceConfigResource) (result autorest.Response, err error)
   314  	Update(ctx context.Context, vaultName string, resourceGroupName string, parameters backup.ResourceConfigResource) (result backup.ResourceConfigResource, err error)
   315  }
   316  
   317  var _ ResourceStorageConfigsClientAPI = (*backup.ResourceStorageConfigsClient)(nil)
   318  
   319  // OperationsClientAPI contains the set of methods on the OperationsClient type.
   320  type OperationsClientAPI interface {
   321  	List(ctx context.Context) (result backup.ClientDiscoveryResponsePage, err error)
   322  	ListComplete(ctx context.Context) (result backup.ClientDiscoveryResponseIterator, err error)
   323  }
   324  
   325  var _ OperationsClientAPI = (*backup.OperationsClient)(nil)
   326  

View as plain text