forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 1
/
interfaces.go
162 lines (134 loc) · 14 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
package dtlapi
// 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/preview/devtestlabs/mgmt/2015-05-21-preview/dtl"
"github.com/Azure/go-autorest/autorest"
)
// LabClientAPI contains the set of methods on the LabClient type.
type LabClientAPI interface {
CreateEnvironment(ctx context.Context, resourceGroupName string, name string, labVirtualMachine dtl.LabVirtualMachine) (result dtl.LabCreateEnvironmentFuture, err error)
CreateOrUpdateResource(ctx context.Context, resourceGroupName string, name string, lab dtl.Lab) (result dtl.LabCreateOrUpdateResourceFuture, err error)
DeleteResource(ctx context.Context, resourceGroupName string, name string) (result dtl.LabDeleteResourceFuture, err error)
GenerateUploadURI(ctx context.Context, resourceGroupName string, name string, generateUploadURIParameter dtl.GenerateUploadURIParameter) (result dtl.GenerateUploadURIResponse, err error)
GetResource(ctx context.Context, resourceGroupName string, name string) (result dtl.Lab, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationLabPage, err error)
ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationLabIterator, err error)
ListBySubscription(ctx context.Context, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationLabPage, err error)
ListBySubscriptionComplete(ctx context.Context, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationLabIterator, err error)
ListVhds(ctx context.Context, resourceGroupName string, name string) (result dtl.ResponseWithContinuationLabVhdPage, err error)
ListVhdsComplete(ctx context.Context, resourceGroupName string, name string) (result dtl.ResponseWithContinuationLabVhdIterator, err error)
PatchResource(ctx context.Context, resourceGroupName string, name string, lab dtl.Lab) (result dtl.Lab, err error)
}
var _ LabClientAPI = (*dtl.LabClient)(nil)
// ArtifactSourceClientAPI contains the set of methods on the ArtifactSourceClient type.
type ArtifactSourceClientAPI interface {
CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, artifactSource dtl.ArtifactSource) (result dtl.ArtifactSource, err error)
DeleteResource(ctx context.Context, resourceGroupName string, labName string, name string) (result autorest.Response, err error)
GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.ArtifactSource, err error)
List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationArtifactSourcePage, err error)
ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationArtifactSourceIterator, err error)
PatchResource(ctx context.Context, resourceGroupName string, labName string, name string, artifactSource dtl.ArtifactSource) (result dtl.ArtifactSource, err error)
}
var _ ArtifactSourceClientAPI = (*dtl.ArtifactSourceClient)(nil)
// ArtifactClientAPI contains the set of methods on the ArtifactClient type.
type ArtifactClientAPI interface {
GenerateArmTemplate(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, name string, generateArmTemplateRequest dtl.GenerateArmTemplateRequest) (result dtl.ArmTemplateInfo, err error)
GetResource(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, name string) (result dtl.Artifact, err error)
List(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationArtifactPage, err error)
ListComplete(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationArtifactIterator, err error)
}
var _ ArtifactClientAPI = (*dtl.ArtifactClient)(nil)
// CostInsightClientAPI contains the set of methods on the CostInsightClient type.
type CostInsightClientAPI interface {
GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.CostInsight, err error)
List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationCostInsightPage, err error)
ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationCostInsightIterator, err error)
RefreshData(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.CostInsightRefreshDataFuture, err error)
}
var _ CostInsightClientAPI = (*dtl.CostInsightClient)(nil)
// CostClientAPI contains the set of methods on the CostClient type.
type CostClientAPI interface {
GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.Cost, err error)
List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationCostPage, err error)
ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationCostIterator, err error)
RefreshData(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.CostRefreshDataFuture, err error)
}
var _ CostClientAPI = (*dtl.CostClient)(nil)
// CustomImageClientAPI contains the set of methods on the CustomImageClient type.
type CustomImageClientAPI interface {
CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, customImage dtl.CustomImage) (result dtl.CustomImageCreateOrUpdateResourceFuture, err error)
DeleteResource(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.CustomImageDeleteResourceFuture, err error)
GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.CustomImage, err error)
List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationCustomImagePage, err error)
ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationCustomImageIterator, err error)
}
var _ CustomImageClientAPI = (*dtl.CustomImageClient)(nil)
// FormulaClientAPI contains the set of methods on the FormulaClient type.
type FormulaClientAPI interface {
CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, formula dtl.Formula) (result dtl.FormulaCreateOrUpdateResourceFuture, err error)
DeleteResource(ctx context.Context, resourceGroupName string, labName string, name string) (result autorest.Response, err error)
GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.Formula, err error)
List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationFormulaPage, err error)
ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationFormulaIterator, err error)
}
var _ FormulaClientAPI = (*dtl.FormulaClient)(nil)
// GalleryImageClientAPI contains the set of methods on the GalleryImageClient type.
type GalleryImageClientAPI interface {
List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationGalleryImagePage, err error)
ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationGalleryImageIterator, err error)
}
var _ GalleryImageClientAPI = (*dtl.GalleryImageClient)(nil)
// PolicySetClientAPI contains the set of methods on the PolicySetClient type.
type PolicySetClientAPI interface {
EvaluatePolicies(ctx context.Context, resourceGroupName string, labName string, name string, evaluatePoliciesRequest dtl.EvaluatePoliciesRequest) (result dtl.EvaluatePoliciesResponse, err error)
}
var _ PolicySetClientAPI = (*dtl.PolicySetClient)(nil)
// PolicyClientAPI contains the set of methods on the PolicyClient type.
type PolicyClientAPI interface {
CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string, policy dtl.Policy) (result dtl.Policy, err error)
DeleteResource(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string) (result autorest.Response, err error)
GetResource(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string) (result dtl.Policy, err error)
List(ctx context.Context, resourceGroupName string, labName string, policySetName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationPolicyPage, err error)
ListComplete(ctx context.Context, resourceGroupName string, labName string, policySetName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationPolicyIterator, err error)
PatchResource(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string, policy dtl.Policy) (result dtl.Policy, err error)
}
var _ PolicyClientAPI = (*dtl.PolicyClient)(nil)
// ScheduleClientAPI contains the set of methods on the ScheduleClient type.
type ScheduleClientAPI interface {
CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, schedule dtl.Schedule) (result dtl.ScheduleCreateOrUpdateResourceFuture, err error)
DeleteResource(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.ScheduleDeleteResourceFuture, err error)
Execute(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.ScheduleExecuteFuture, err error)
GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.Schedule, err error)
List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationSchedulePage, err error)
ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationScheduleIterator, err error)
PatchResource(ctx context.Context, resourceGroupName string, labName string, name string, schedule dtl.Schedule) (result dtl.Schedule, err error)
}
var _ ScheduleClientAPI = (*dtl.ScheduleClient)(nil)
// VirtualMachineClientAPI contains the set of methods on the VirtualMachineClient type.
type VirtualMachineClientAPI interface {
ApplyArtifacts(ctx context.Context, resourceGroupName string, labName string, name string, applyArtifactsRequest dtl.ApplyArtifactsRequest) (result dtl.VirtualMachineApplyArtifactsFuture, err error)
CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, labVirtualMachine dtl.LabVirtualMachine) (result dtl.VirtualMachineCreateOrUpdateResourceFuture, err error)
DeleteResource(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.VirtualMachineDeleteResourceFuture, err error)
GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.LabVirtualMachine, err error)
List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationLabVirtualMachinePage, err error)
ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationLabVirtualMachineIterator, err error)
PatchResource(ctx context.Context, resourceGroupName string, labName string, name string, labVirtualMachine dtl.LabVirtualMachine) (result dtl.LabVirtualMachine, err error)
Start(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.VirtualMachineStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.VirtualMachineStopFuture, err error)
}
var _ VirtualMachineClientAPI = (*dtl.VirtualMachineClient)(nil)
// VirtualNetworkClientAPI contains the set of methods on the VirtualNetworkClient type.
type VirtualNetworkClientAPI interface {
CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, virtualNetwork dtl.VirtualNetwork) (result dtl.VirtualNetworkCreateOrUpdateResourceFuture, err error)
DeleteResource(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.VirtualNetworkDeleteResourceFuture, err error)
GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationVirtualNetworkPage, err error)
ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result dtl.ResponseWithContinuationVirtualNetworkIterator, err error)
PatchResource(ctx context.Context, resourceGroupName string, labName string, name string, virtualNetwork dtl.VirtualNetwork) (result dtl.VirtualNetwork, err error)
}
var _ VirtualNetworkClientAPI = (*dtl.VirtualNetworkClient)(nil)