forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
interfaces.go
173 lines (135 loc) · 12.2 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
package postgresqlapi
// 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/postgresql/mgmt/2020-01-01/postgresql"
)
// ServersClientAPI contains the set of methods on the ServersClient type.
type ServersClientAPI interface {
Create(ctx context.Context, resourceGroupName string, serverName string, parameters postgresql.ServerForCreate) (result postgresql.ServersCreateFuture, err error)
Delete(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.ServersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.Server, err error)
List(ctx context.Context) (result postgresql.ServerListResult, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result postgresql.ServerListResult, err error)
Restart(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.ServersRestartFuture, err error)
Update(ctx context.Context, resourceGroupName string, serverName string, parameters postgresql.ServerUpdateParameters) (result postgresql.ServersUpdateFuture, err error)
}
var _ ServersClientAPI = (*postgresql.ServersClient)(nil)
// ReplicasClientAPI contains the set of methods on the ReplicasClient type.
type ReplicasClientAPI interface {
ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.ServerListResult, err error)
}
var _ ReplicasClientAPI = (*postgresql.ReplicasClient)(nil)
// FirewallRulesClientAPI contains the set of methods on the FirewallRulesClient type.
type FirewallRulesClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters postgresql.FirewallRule) (result postgresql.FirewallRulesCreateOrUpdateFuture, err error)
Delete(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result postgresql.FirewallRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result postgresql.FirewallRule, err error)
ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.FirewallRuleListResult, err error)
}
var _ FirewallRulesClientAPI = (*postgresql.FirewallRulesClient)(nil)
// VirtualNetworkRulesClientAPI contains the set of methods on the VirtualNetworkRulesClient type.
type VirtualNetworkRulesClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string, parameters postgresql.VirtualNetworkRule) (result postgresql.VirtualNetworkRulesCreateOrUpdateFuture, err error)
Delete(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (result postgresql.VirtualNetworkRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (result postgresql.VirtualNetworkRule, err error)
ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.VirtualNetworkRuleListResultPage, err error)
ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.VirtualNetworkRuleListResultIterator, err error)
}
var _ VirtualNetworkRulesClientAPI = (*postgresql.VirtualNetworkRulesClient)(nil)
// DatabasesClientAPI contains the set of methods on the DatabasesClient type.
type DatabasesClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters postgresql.Database) (result postgresql.DatabasesCreateOrUpdateFuture, err error)
Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result postgresql.DatabasesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result postgresql.Database, err error)
ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.DatabaseListResult, err error)
}
var _ DatabasesClientAPI = (*postgresql.DatabasesClient)(nil)
// ConfigurationsClientAPI contains the set of methods on the ConfigurationsClient type.
type ConfigurationsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters postgresql.Configuration) (result postgresql.ConfigurationsCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, serverName string, configurationName string) (result postgresql.Configuration, err error)
ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.ConfigurationListResult, err error)
}
var _ ConfigurationsClientAPI = (*postgresql.ConfigurationsClient)(nil)
// ServerParametersClientAPI contains the set of methods on the ServerParametersClient type.
type ServerParametersClientAPI interface {
ListUpdateConfigurations(ctx context.Context, resourceGroupName string, serverName string, value postgresql.ConfigurationListResult) (result postgresql.ServerParametersListUpdateConfigurationsFuture, err error)
}
var _ ServerParametersClientAPI = (*postgresql.ServerParametersClient)(nil)
// LogFilesClientAPI contains the set of methods on the LogFilesClient type.
type LogFilesClientAPI interface {
ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.LogFileListResult, err error)
}
var _ LogFilesClientAPI = (*postgresql.LogFilesClient)(nil)
// ServerAdministratorsClientAPI contains the set of methods on the ServerAdministratorsClient type.
type ServerAdministratorsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, properties postgresql.ServerAdministratorResource) (result postgresql.ServerAdministratorsCreateOrUpdateFuture, err error)
Delete(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.ServerAdministratorsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.ServerAdministratorResource, err error)
List(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.ServerAdministratorResourceListResult, err error)
}
var _ ServerAdministratorsClientAPI = (*postgresql.ServerAdministratorsClient)(nil)
// RecoverableServersClientAPI contains the set of methods on the RecoverableServersClient type.
type RecoverableServersClientAPI interface {
Get(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.RecoverableServerResource, err error)
}
var _ RecoverableServersClientAPI = (*postgresql.RecoverableServersClient)(nil)
// ServerBasedPerformanceTierClientAPI contains the set of methods on the ServerBasedPerformanceTierClient type.
type ServerBasedPerformanceTierClientAPI interface {
List(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.PerformanceTierListResult, err error)
}
var _ ServerBasedPerformanceTierClientAPI = (*postgresql.ServerBasedPerformanceTierClient)(nil)
// LocationBasedPerformanceTierClientAPI contains the set of methods on the LocationBasedPerformanceTierClient type.
type LocationBasedPerformanceTierClientAPI interface {
List(ctx context.Context, locationName string) (result postgresql.PerformanceTierListResult, err error)
}
var _ LocationBasedPerformanceTierClientAPI = (*postgresql.LocationBasedPerformanceTierClient)(nil)
// CheckNameAvailabilityClientAPI contains the set of methods on the CheckNameAvailabilityClient type.
type CheckNameAvailabilityClientAPI interface {
Execute(ctx context.Context, nameAvailabilityRequest postgresql.NameAvailabilityRequest) (result postgresql.NameAvailability, err error)
}
var _ CheckNameAvailabilityClientAPI = (*postgresql.CheckNameAvailabilityClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result postgresql.OperationListResult, err error)
}
var _ OperationsClientAPI = (*postgresql.OperationsClient)(nil)
// ServerSecurityAlertPoliciesClientAPI contains the set of methods on the ServerSecurityAlertPoliciesClient type.
type ServerSecurityAlertPoliciesClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters postgresql.ServerSecurityAlertPolicy) (result postgresql.ServerSecurityAlertPoliciesCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.ServerSecurityAlertPolicy, err error)
ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.ServerSecurityAlertPolicyListResultPage, err error)
ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.ServerSecurityAlertPolicyListResultIterator, err error)
}
var _ ServerSecurityAlertPoliciesClientAPI = (*postgresql.ServerSecurityAlertPoliciesClient)(nil)
// PrivateEndpointConnectionsClientAPI contains the set of methods on the PrivateEndpointConnectionsClient type.
type PrivateEndpointConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string, parameters postgresql.PrivateEndpointConnection) (result postgresql.PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
Delete(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string) (result postgresql.PrivateEndpointConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string) (result postgresql.PrivateEndpointConnection, err error)
ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.PrivateEndpointConnectionListResultPage, err error)
ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.PrivateEndpointConnectionListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string, parameters postgresql.TagsObject) (result postgresql.PrivateEndpointConnectionsUpdateTagsFuture, err error)
}
var _ PrivateEndpointConnectionsClientAPI = (*postgresql.PrivateEndpointConnectionsClient)(nil)
// PrivateLinkResourcesClientAPI contains the set of methods on the PrivateLinkResourcesClient type.
type PrivateLinkResourcesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, serverName string, groupName string) (result postgresql.PrivateLinkResource, err error)
ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.PrivateLinkResourceListResultPage, err error)
ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.PrivateLinkResourceListResultIterator, err error)
}
var _ PrivateLinkResourcesClientAPI = (*postgresql.PrivateLinkResourcesClient)(nil)
// ServerKeysClientAPI contains the set of methods on the ServerKeysClient type.
type ServerKeysClientAPI interface {
CreateOrUpdate(ctx context.Context, serverName string, keyName string, parameters postgresql.ServerKey, resourceGroupName string) (result postgresql.ServerKeysCreateOrUpdateFuture, err error)
Delete(ctx context.Context, serverName string, keyName string, resourceGroupName string) (result postgresql.ServerKeysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serverName string, keyName string) (result postgresql.ServerKey, err error)
List(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.ServerKeyListResultPage, err error)
ListComplete(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.ServerKeyListResultIterator, err error)
}
var _ ServerKeysClientAPI = (*postgresql.ServerKeysClient)(nil)