/
interfaces.go
193 lines (157 loc) · 12.1 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
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/2017-08-01-preview/security"
"github.com/Azure/go-autorest/autorest"
)
// 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)
// SettingsClientAPI contains the set of methods on the SettingsClient type.
type SettingsClientAPI interface {
Get(ctx context.Context, settingName string) (result security.SettingModel, err error)
List(ctx context.Context) (result security.SettingsListPage, err error)
Update(ctx context.Context, settingName string, setting security.BasicSetting) (result security.SettingModel, 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)