forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
interfaces.go
70 lines (58 loc) · 4.67 KB
/
interfaces.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package redisapi
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2017-02-01/redis"
"github.com/Azure/go-autorest/autorest"
)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result redis.OperationListResultPage, err error)
ListComplete(ctx context.Context) (result redis.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*redis.OperationsClient)(nil)
// ClientAPI contains the set of methods on the Client type.
type ClientAPI interface {
Create(ctx context.Context, resourceGroupName string, name string, parameters redis.CreateParameters) (result redis.CreateFuture, err error)
Delete(ctx context.Context, resourceGroupName string, name string) (result redis.DeleteFuture, err error)
ExportData(ctx context.Context, resourceGroupName string, name string, parameters redis.ExportRDBParameters) (result redis.ExportDataFuture, err error)
ForceReboot(ctx context.Context, resourceGroupName string, name string, parameters redis.RebootParameters) (result redis.ForceRebootResponse, err error)
Get(ctx context.Context, resourceGroupName string, name string) (result redis.ResourceType, err error)
ImportData(ctx context.Context, resourceGroupName string, name string, parameters redis.ImportRDBParameters) (result redis.ImportDataFuture, err error)
List(ctx context.Context) (result redis.ListResultPage, err error)
ListComplete(ctx context.Context) (result redis.ListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result redis.ListResultPage, err error)
ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result redis.ListResultIterator, err error)
ListKeys(ctx context.Context, resourceGroupName string, name string) (result redis.AccessKeys, err error)
RegenerateKey(ctx context.Context, resourceGroupName string, name string, parameters redis.RegenerateKeyParameters) (result redis.AccessKeys, err error)
Update(ctx context.Context, resourceGroupName string, name string, parameters redis.UpdateParameters) (result redis.ResourceType, err error)
}
var _ ClientAPI = (*redis.Client)(nil)
// FirewallRulesClientAPI contains the set of methods on the FirewallRulesClient type.
type FirewallRulesClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, cacheName string, ruleName string, parameters redis.FirewallRule) (result redis.FirewallRule, err error)
Delete(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (result autorest.Response, err error)
Get(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (result redis.FirewallRule, err error)
ListByRedisResource(ctx context.Context, resourceGroupName string, cacheName string) (result redis.FirewallRuleListResultPage, err error)
ListByRedisResourceComplete(ctx context.Context, resourceGroupName string, cacheName string) (result redis.FirewallRuleListResultIterator, err error)
}
var _ FirewallRulesClientAPI = (*redis.FirewallRulesClient)(nil)
// PatchSchedulesClientAPI contains the set of methods on the PatchSchedulesClient type.
type PatchSchedulesClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, name string, parameters redis.PatchSchedule) (result redis.PatchSchedule, err error)
Delete(ctx context.Context, resourceGroupName string, name string) (result autorest.Response, err error)
Get(ctx context.Context, resourceGroupName string, name string) (result redis.PatchSchedule, err error)
}
var _ PatchSchedulesClientAPI = (*redis.PatchSchedulesClient)(nil)
// LinkedServerClientAPI contains the set of methods on the LinkedServerClient type.
type LinkedServerClientAPI interface {
Create(ctx context.Context, resourceGroupName string, name string, linkedServerName string, parameters redis.LinkedServerCreateParameters) (result redis.LinkedServerCreateFuture, err error)
Delete(ctx context.Context, resourceGroupName string, name string, linkedServerName string) (result autorest.Response, err error)
Get(ctx context.Context, resourceGroupName string, name string, linkedServerName string) (result redis.LinkedServerWithProperties, err error)
List(ctx context.Context, resourceGroupName string, name string) (result redis.LinkedServerWithPropertiesList, err error)
}
var _ LinkedServerClientAPI = (*redis.LinkedServerClient)(nil)