Debian Codegraph @

storage/2020-08-04/file/shares/api.go

raw
1 package shares
2
3 import (
4 "context"
5
6 "github.com/Azure/go-autorest/autorest"
7 )
8
9 type StorageShare interface {
10 SetACL(ctx context.Context, accountName, shareName string, acls []SignedIdentifier) (result autorest.Response, err error)
11 GetSnapshot(ctx context.Context, accountName, shareName, snapshotShare string) (result GetSnapshotPropertiesResult, err error)
12 GetStats(ctx context.Context, accountName, shareName string) (result GetStatsResult, err error)
13 GetACL(ctx context.Context, accountName, shareName string) (result GetACLResult, err error)
14 SetMetaData(ctx context.Context, accountName, shareName string, metaData map[string]string) (result autorest.Response, err error)
15 GetMetaData(ctx context.Context, accountName, shareName string) (result GetMetaDataResult, err error)
16 SetProperties(ctx context.Context, accountName, shareName string, properties ShareProperties) (result autorest.Response, err error)
17 DeleteSnapshot(ctx context.Context, accountName, shareName string, shareSnapshot string) (result autorest.Response, err error)
18 CreateSnapshot(ctx context.Context, accountName, shareName string, input CreateSnapshotInput) (result CreateSnapshotResult, err error)
19 GetResourceID(accountName, shareName string) string
20 GetResourceManagerResourceID(subscriptionID, resourceGroup, accountName, shareName string) string
21 GetProperties(ctx context.Context, accountName, shareName string) (result GetPropertiesResult, err error)
22 Delete(ctx context.Context, accountName, shareName string, deleteSnapshots bool) (result autorest.Response, err error)
23 Create(ctx context.Context, accountName, shareName string, input CreateInput) (result autorest.Response, err error)
24 }