...

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

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

View as plain text