...

Source file src/github.com/Azure/azure-sdk-for-go/services/netapp/mgmt/2020-02-01/netapp/netappapi/interfaces.go

Documentation: github.com/Azure/azure-sdk-for-go/services/netapp/mgmt/2020-02-01/netapp/netappapi

     1  // Deprecated: Please note, this package has been deprecated. A replacement package is available [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp). 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 netappapi
     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/netapp/mgmt/2020-02-01/netapp"
    13  )
    14  
    15  // OperationsClientAPI contains the set of methods on the OperationsClient type.
    16  type OperationsClientAPI interface {
    17  	List(ctx context.Context) (result netapp.OperationListResult, err error)
    18  }
    19  
    20  var _ OperationsClientAPI = (*netapp.OperationsClient)(nil)
    21  
    22  // ResourceClientAPI contains the set of methods on the ResourceClient type.
    23  type ResourceClientAPI interface {
    24  	CheckFilePathAvailability(ctx context.Context, body netapp.ResourceNameAvailabilityRequest, location string) (result netapp.ResourceNameAvailability, err error)
    25  	CheckNameAvailability(ctx context.Context, body netapp.ResourceNameAvailabilityRequest, location string) (result netapp.ResourceNameAvailability, err error)
    26  }
    27  
    28  var _ ResourceClientAPI = (*netapp.ResourceClient)(nil)
    29  
    30  // AccountsClientAPI contains the set of methods on the AccountsClient type.
    31  type AccountsClientAPI interface {
    32  	CreateOrUpdate(ctx context.Context, body netapp.Account, resourceGroupName string, accountName string) (result netapp.AccountsCreateOrUpdateFuture, err error)
    33  	Delete(ctx context.Context, resourceGroupName string, accountName string) (result netapp.AccountsDeleteFuture, err error)
    34  	Get(ctx context.Context, resourceGroupName string, accountName string) (result netapp.Account, err error)
    35  	List(ctx context.Context, resourceGroupName string) (result netapp.AccountList, err error)
    36  	Update(ctx context.Context, body netapp.AccountPatch, resourceGroupName string, accountName string) (result netapp.AccountsUpdateFuture, err error)
    37  }
    38  
    39  var _ AccountsClientAPI = (*netapp.AccountsClient)(nil)
    40  
    41  // PoolsClientAPI contains the set of methods on the PoolsClient type.
    42  type PoolsClientAPI interface {
    43  	CreateOrUpdate(ctx context.Context, body netapp.CapacityPool, resourceGroupName string, accountName string, poolName string) (result netapp.PoolsCreateOrUpdateFuture, err error)
    44  	Delete(ctx context.Context, resourceGroupName string, accountName string, poolName string) (result netapp.PoolsDeleteFuture, err error)
    45  	Get(ctx context.Context, resourceGroupName string, accountName string, poolName string) (result netapp.CapacityPool, err error)
    46  	List(ctx context.Context, resourceGroupName string, accountName string) (result netapp.CapacityPoolList, err error)
    47  	Update(ctx context.Context, body netapp.CapacityPoolPatch, resourceGroupName string, accountName string, poolName string) (result netapp.PoolsUpdateFuture, err error)
    48  }
    49  
    50  var _ PoolsClientAPI = (*netapp.PoolsClient)(nil)
    51  
    52  // VolumesClientAPI contains the set of methods on the VolumesClient type.
    53  type VolumesClientAPI interface {
    54  	AuthorizeReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body netapp.AuthorizeRequest) (result netapp.VolumesAuthorizeReplicationFuture, err error)
    55  	BreakReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.VolumesBreakReplicationFuture, err error)
    56  	CreateOrUpdate(ctx context.Context, body netapp.Volume, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.VolumesCreateOrUpdateFuture, err error)
    57  	Delete(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.VolumesDeleteFuture, err error)
    58  	DeleteReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.VolumesDeleteReplicationFuture, err error)
    59  	Get(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.Volume, err error)
    60  	List(ctx context.Context, resourceGroupName string, accountName string, poolName string) (result netapp.VolumeList, err error)
    61  	ReplicationStatusMethod(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.ReplicationStatus, err error)
    62  	ResyncReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.VolumesResyncReplicationFuture, err error)
    63  	Revert(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body netapp.VolumeRevert) (result netapp.VolumesRevertFuture, err error)
    64  	Update(ctx context.Context, body netapp.VolumePatch, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.VolumesUpdateFuture, err error)
    65  }
    66  
    67  var _ VolumesClientAPI = (*netapp.VolumesClient)(nil)
    68  
    69  // SnapshotsClientAPI contains the set of methods on the SnapshotsClient type.
    70  type SnapshotsClientAPI interface {
    71  	Create(ctx context.Context, body netapp.Snapshot, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (result netapp.SnapshotsCreateFuture, err error)
    72  	Delete(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (result netapp.SnapshotsDeleteFuture, err error)
    73  	Get(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (result netapp.Snapshot, err error)
    74  	List(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.SnapshotsList, err error)
    75  	Update(ctx context.Context, body interface{}, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (result netapp.SnapshotsUpdateFuture, err error)
    76  }
    77  
    78  var _ SnapshotsClientAPI = (*netapp.SnapshotsClient)(nil)
    79  

View as plain text