...

Source file src/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2019-05-13/backup/backupapi/interfaces.go

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

View as plain text