forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
interfaces.go
236 lines (190 loc) · 15.7 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
package securityapi
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// 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/preview/security/mgmt/v1.0/security"
"github.com/Azure/go-autorest/autorest"
)
// RegulatoryComplianceStandardsClientAPI contains the set of methods on the RegulatoryComplianceStandardsClient type.
type RegulatoryComplianceStandardsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string) (result security.RegulatoryComplianceStandard, err error)
List(ctx context.Context, resourceGroupName string, filter string) (result security.RegulatoryComplianceStandardListPage, err error)
}
var _ RegulatoryComplianceStandardsClientAPI = (*security.RegulatoryComplianceStandardsClient)(nil)
// RegulatoryComplianceControlsClientAPI contains the set of methods on the RegulatoryComplianceControlsClient type.
type RegulatoryComplianceControlsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string, regulatoryComplianceControlName string) (result security.RegulatoryComplianceControl, err error)
List(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string, filter string) (result security.RegulatoryComplianceControlListPage, err error)
}
var _ RegulatoryComplianceControlsClientAPI = (*security.RegulatoryComplianceControlsClient)(nil)
// RegulatoryComplianceAssessmentsClientAPI contains the set of methods on the RegulatoryComplianceAssessmentsClient type.
type RegulatoryComplianceAssessmentsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string, regulatoryComplianceControlName string, regulatoryComplianceAssessmentName string) (result security.RegulatoryComplianceAssessment, err error)
List(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string, regulatoryComplianceControlName string, filter string) (result security.RegulatoryComplianceAssessmentListPage, err error)
}
var _ RegulatoryComplianceAssessmentsClientAPI = (*security.RegulatoryComplianceAssessmentsClient)(nil)
// PricingsClientAPI contains the set of methods on the PricingsClient type.
type PricingsClientAPI interface {
CreateOrUpdateResourceGroupPricing(ctx context.Context, resourceGroupName string, pricingName string, pricing security.Pricing) (result security.Pricing, err error)
GetResourceGroupPricing(ctx context.Context, resourceGroupName string, pricingName string) (result security.Pricing, err error)
GetSubscriptionPricing(ctx context.Context, pricingName string) (result security.Pricing, err error)
List(ctx context.Context) (result security.PricingListPage, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result security.PricingListPage, err error)
UpdateSubscriptionPricing(ctx context.Context, pricingName string, pricing security.Pricing) (result security.Pricing, err error)
}
var _ PricingsClientAPI = (*security.PricingsClient)(nil)
// ContactsClientAPI contains the set of methods on the ContactsClient type.
type ContactsClientAPI interface {
Create(ctx context.Context, securityContactName string, securityContact security.Contact) (result security.Contact, err error)
Delete(ctx context.Context, securityContactName string) (result autorest.Response, err error)
Get(ctx context.Context, securityContactName string) (result security.Contact, err error)
List(ctx context.Context) (result security.ContactListPage, err error)
Update(ctx context.Context, securityContactName string, securityContact security.Contact) (result security.Contact, err error)
}
var _ ContactsClientAPI = (*security.ContactsClient)(nil)
// WorkspaceSettingsClientAPI contains the set of methods on the WorkspaceSettingsClient type.
type WorkspaceSettingsClientAPI interface {
Create(ctx context.Context, workspaceSettingName string, workspaceSetting security.WorkspaceSetting) (result security.WorkspaceSetting, err error)
Delete(ctx context.Context, workspaceSettingName string) (result autorest.Response, err error)
Get(ctx context.Context, workspaceSettingName string) (result security.WorkspaceSetting, err error)
List(ctx context.Context) (result security.WorkspaceSettingListPage, err error)
Update(ctx context.Context, workspaceSettingName string, workspaceSetting security.WorkspaceSetting) (result security.WorkspaceSetting, err error)
}
var _ WorkspaceSettingsClientAPI = (*security.WorkspaceSettingsClient)(nil)
// AutoProvisioningSettingsClientAPI contains the set of methods on the AutoProvisioningSettingsClient type.
type AutoProvisioningSettingsClientAPI interface {
Create(ctx context.Context, settingName string, setting security.AutoProvisioningSetting) (result security.AutoProvisioningSetting, err error)
Get(ctx context.Context, settingName string) (result security.AutoProvisioningSetting, err error)
List(ctx context.Context) (result security.AutoProvisioningSettingListPage, err error)
}
var _ AutoProvisioningSettingsClientAPI = (*security.AutoProvisioningSettingsClient)(nil)
// CompliancesClientAPI contains the set of methods on the CompliancesClient type.
type CompliancesClientAPI interface {
Get(ctx context.Context, scope string, complianceName string) (result security.Compliance, err error)
List(ctx context.Context, scope string) (result security.ComplianceListPage, err error)
}
var _ CompliancesClientAPI = (*security.CompliancesClient)(nil)
// AdvancedThreatProtectionClientAPI contains the set of methods on the AdvancedThreatProtectionClient type.
type AdvancedThreatProtectionClientAPI interface {
Create(ctx context.Context, resourceID string, advancedThreatProtectionSetting security.AdvancedThreatProtectionSetting) (result security.AdvancedThreatProtectionSetting, err error)
Get(ctx context.Context, resourceID string) (result security.AdvancedThreatProtectionSetting, err error)
}
var _ AdvancedThreatProtectionClientAPI = (*security.AdvancedThreatProtectionClient)(nil)
// DeviceSecurityGroupsClientAPI contains the set of methods on the DeviceSecurityGroupsClient type.
type DeviceSecurityGroupsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceID string, deviceSecurityGroupName string, deviceSecurityGroup security.DeviceSecurityGroup) (result security.DeviceSecurityGroup, err error)
Delete(ctx context.Context, resourceID string, deviceSecurityGroupName string) (result autorest.Response, err error)
Get(ctx context.Context, resourceID string, deviceSecurityGroupName string) (result security.DeviceSecurityGroup, err error)
List(ctx context.Context, resourceID string) (result security.DeviceSecurityGroupListPage, err error)
}
var _ DeviceSecurityGroupsClientAPI = (*security.DeviceSecurityGroupsClient)(nil)
// SettingsClientAPI contains the set of methods on the SettingsClient type.
type SettingsClientAPI interface {
Get(ctx context.Context, settingName string) (result security.Setting, err error)
List(ctx context.Context) (result security.SettingsListPage, err error)
Update(ctx context.Context, settingName string, setting security.Setting) (result security.Setting, err error)
}
var _ SettingsClientAPI = (*security.SettingsClient)(nil)
// InformationProtectionPoliciesClientAPI contains the set of methods on the InformationProtectionPoliciesClient type.
type InformationProtectionPoliciesClientAPI interface {
CreateOrUpdate(ctx context.Context, scope string, informationProtectionPolicyName string) (result security.InformationProtectionPolicy, err error)
Get(ctx context.Context, scope string, informationProtectionPolicyName string) (result security.InformationProtectionPolicy, err error)
List(ctx context.Context, scope string) (result security.InformationProtectionPolicyListPage, err error)
}
var _ InformationProtectionPoliciesClientAPI = (*security.InformationProtectionPoliciesClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result security.OperationListPage, err error)
}
var _ OperationsClientAPI = (*security.OperationsClient)(nil)
// LocationsClientAPI contains the set of methods on the LocationsClient type.
type LocationsClientAPI interface {
Get(ctx context.Context) (result security.AscLocation, err error)
List(ctx context.Context) (result security.AscLocationListPage, err error)
}
var _ LocationsClientAPI = (*security.LocationsClient)(nil)
// TasksClientAPI contains the set of methods on the TasksClient type.
type TasksClientAPI interface {
GetResourceGroupLevelTask(ctx context.Context, resourceGroupName string, taskName string) (result security.Task, err error)
GetSubscriptionLevelTask(ctx context.Context, taskName string) (result security.Task, err error)
List(ctx context.Context, filter string) (result security.TaskListPage, err error)
ListByHomeRegion(ctx context.Context, filter string) (result security.TaskListPage, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string) (result security.TaskListPage, err error)
UpdateResourceGroupLevelTaskState(ctx context.Context, resourceGroupName string, taskName string, taskUpdateActionType string) (result autorest.Response, err error)
UpdateSubscriptionLevelTaskState(ctx context.Context, taskName string, taskUpdateActionType string) (result autorest.Response, err error)
}
var _ TasksClientAPI = (*security.TasksClient)(nil)
// AlertsClientAPI contains the set of methods on the AlertsClient type.
type AlertsClientAPI interface {
GetResourceGroupLevelAlerts(ctx context.Context, alertName string, resourceGroupName string) (result security.Alert, err error)
GetSubscriptionLevelAlert(ctx context.Context, alertName string) (result security.Alert, err error)
List(ctx context.Context, filter string, selectParameter string, expand string) (result security.AlertListPage, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string) (result security.AlertListPage, err error)
ListResourceGroupLevelAlertsByRegion(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string) (result security.AlertListPage, err error)
ListSubscriptionLevelAlertsByRegion(ctx context.Context, filter string, selectParameter string, expand string) (result security.AlertListPage, err error)
UpdateResourceGroupLevelAlertState(ctx context.Context, alertName string, alertUpdateActionType string, resourceGroupName string) (result autorest.Response, err error)
UpdateSubscriptionLevelAlertState(ctx context.Context, alertName string, alertUpdateActionType string) (result autorest.Response, err error)
}
var _ AlertsClientAPI = (*security.AlertsClient)(nil)
// DiscoveredSecuritySolutionsClientAPI contains the set of methods on the DiscoveredSecuritySolutionsClient type.
type DiscoveredSecuritySolutionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, discoveredSecuritySolutionName string) (result security.DiscoveredSecuritySolution, err error)
List(ctx context.Context) (result security.DiscoveredSecuritySolutionListPage, err error)
ListByHomeRegion(ctx context.Context) (result security.DiscoveredSecuritySolutionListPage, err error)
}
var _ DiscoveredSecuritySolutionsClientAPI = (*security.DiscoveredSecuritySolutionsClient)(nil)
// JitNetworkAccessPoliciesClientAPI contains the set of methods on the JitNetworkAccessPoliciesClient type.
type JitNetworkAccessPoliciesClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string, body security.JitNetworkAccessPolicy) (result security.JitNetworkAccessPolicy, err error)
Delete(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string) (result autorest.Response, err error)
Get(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string) (result security.JitNetworkAccessPolicy, err error)
Initiate(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string, body security.JitNetworkAccessPolicyInitiateRequest) (result security.JitNetworkAccessRequest, err error)
List(ctx context.Context) (result security.JitNetworkAccessPoliciesListPage, err error)
ListByRegion(ctx context.Context) (result security.JitNetworkAccessPoliciesListPage, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result security.JitNetworkAccessPoliciesListPage, err error)
ListByResourceGroupAndRegion(ctx context.Context, resourceGroupName string) (result security.JitNetworkAccessPoliciesListPage, err error)
}
var _ JitNetworkAccessPoliciesClientAPI = (*security.JitNetworkAccessPoliciesClient)(nil)
// ExternalSecuritySolutionsClientAPI contains the set of methods on the ExternalSecuritySolutionsClient type.
type ExternalSecuritySolutionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, externalSecuritySolutionsName string) (result security.ExternalSecuritySolutionModel, err error)
List(ctx context.Context) (result security.ExternalSecuritySolutionListPage, err error)
ListByHomeRegion(ctx context.Context) (result security.ExternalSecuritySolutionListPage, err error)
}
var _ ExternalSecuritySolutionsClientAPI = (*security.ExternalSecuritySolutionsClient)(nil)
// TopologyClientAPI contains the set of methods on the TopologyClient type.
type TopologyClientAPI interface {
Get(ctx context.Context, resourceGroupName string, topologyResourceName string) (result security.TopologyResource, err error)
List(ctx context.Context) (result security.TopologyListPage, err error)
ListByHomeRegion(ctx context.Context) (result security.TopologyListPage, err error)
}
var _ TopologyClientAPI = (*security.TopologyClient)(nil)
// AllowedConnectionsClientAPI contains the set of methods on the AllowedConnectionsClient type.
type AllowedConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, connectionType security.ConnectionType) (result security.AllowedConnectionsResource, err error)
List(ctx context.Context) (result security.AllowedConnectionsListPage, err error)
ListByHomeRegion(ctx context.Context) (result security.AllowedConnectionsListPage, err error)
}
var _ AllowedConnectionsClientAPI = (*security.AllowedConnectionsClient)(nil)
// AdaptiveNetworkHardeningsClientAPI contains the set of methods on the AdaptiveNetworkHardeningsClient type.
type AdaptiveNetworkHardeningsClientAPI interface {
Enforce(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string, body security.AdaptiveNetworkHardeningEnforceRequest) (result security.AdaptiveNetworkHardeningsEnforceFuture, err error)
Get(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string) (result security.AdaptiveNetworkHardening, err error)
ListByExtendedResource(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string) (result security.AdaptiveNetworkHardeningsListPage, err error)
}
var _ AdaptiveNetworkHardeningsClientAPI = (*security.AdaptiveNetworkHardeningsClient)(nil)