forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
interfaces.go
158 lines (142 loc) · 15.9 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
package featuresapi
// 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/resources/mgmt/2019-07-01/features"
"github.com/Azure/go-autorest/autorest"
)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result features.OperationListResultPage, err error)
ListComplete(ctx context.Context) (result features.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*features.OperationsClient)(nil)
// DeploymentsClientAPI contains the set of methods on the DeploymentsClient type.
type DeploymentsClientAPI interface {
CalculateTemplateHash(ctx context.Context, templateParameter interface{}) (result features.TemplateHashResult, err error)
Cancel(ctx context.Context, resourceGroupName string, deploymentName string) (result autorest.Response, err error)
CancelAtManagementGroupScope(ctx context.Context, groupID string, deploymentName string) (result autorest.Response, err error)
CancelAtScope(ctx context.Context, scope string, deploymentName string) (result autorest.Response, err error)
CancelAtSubscriptionScope(ctx context.Context, deploymentName string) (result autorest.Response, err error)
CancelAtTenantScope(ctx context.Context, deploymentName string) (result autorest.Response, err error)
CheckExistence(ctx context.Context, resourceGroupName string, deploymentName string) (result autorest.Response, err error)
CheckExistenceAtManagementGroupScope(ctx context.Context, groupID string, deploymentName string) (result autorest.Response, err error)
CheckExistenceAtScope(ctx context.Context, scope string, deploymentName string) (result autorest.Response, err error)
CheckExistenceAtSubscriptionScope(ctx context.Context, deploymentName string) (result autorest.Response, err error)
CheckExistenceAtTenantScope(ctx context.Context, deploymentName string) (result autorest.Response, err error)
CreateOrUpdate(ctx context.Context, resourceGroupName string, deploymentName string, parameters features.Deployment) (result features.DeploymentsCreateOrUpdateFuture, err error)
CreateOrUpdateAtManagementGroupScope(ctx context.Context, groupID string, deploymentName string, parameters features.Deployment) (result features.DeploymentsCreateOrUpdateAtManagementGroupScopeFuture, err error)
CreateOrUpdateAtScope(ctx context.Context, scope string, deploymentName string, parameters features.Deployment) (result features.DeploymentsCreateOrUpdateAtScopeFuture, err error)
CreateOrUpdateAtSubscriptionScope(ctx context.Context, deploymentName string, parameters features.Deployment) (result features.DeploymentsCreateOrUpdateAtSubscriptionScopeFuture, err error)
CreateOrUpdateAtTenantScope(ctx context.Context, deploymentName string, parameters features.Deployment) (result features.DeploymentsCreateOrUpdateAtTenantScopeFuture, err error)
Delete(ctx context.Context, resourceGroupName string, deploymentName string) (result features.DeploymentsDeleteFuture, err error)
DeleteAtManagementGroupScope(ctx context.Context, groupID string, deploymentName string) (result features.DeploymentsDeleteAtManagementGroupScopeFuture, err error)
DeleteAtScope(ctx context.Context, scope string, deploymentName string) (result features.DeploymentsDeleteAtScopeFuture, err error)
DeleteAtSubscriptionScope(ctx context.Context, deploymentName string) (result features.DeploymentsDeleteAtSubscriptionScopeFuture, err error)
DeleteAtTenantScope(ctx context.Context, deploymentName string) (result features.DeploymentsDeleteAtTenantScopeFuture, err error)
ExportTemplate(ctx context.Context, resourceGroupName string, deploymentName string) (result features.DeploymentExportResult, err error)
ExportTemplateAtManagementGroupScope(ctx context.Context, groupID string, deploymentName string) (result features.DeploymentExportResult, err error)
ExportTemplateAtScope(ctx context.Context, scope string, deploymentName string) (result features.DeploymentExportResult, err error)
ExportTemplateAtSubscriptionScope(ctx context.Context, deploymentName string) (result features.DeploymentExportResult, err error)
ExportTemplateAtTenantScope(ctx context.Context, deploymentName string) (result features.DeploymentExportResult, err error)
Get(ctx context.Context, resourceGroupName string, deploymentName string) (result features.DeploymentExtended, err error)
GetAtManagementGroupScope(ctx context.Context, groupID string, deploymentName string) (result features.DeploymentExtended, err error)
GetAtScope(ctx context.Context, scope string, deploymentName string) (result features.DeploymentExtended, err error)
GetAtSubscriptionScope(ctx context.Context, deploymentName string) (result features.DeploymentExtended, err error)
GetAtTenantScope(ctx context.Context, deploymentName string) (result features.DeploymentExtended, err error)
ListAtManagementGroupScope(ctx context.Context, groupID string, filter string, top *int32) (result features.DeploymentListResultPage, err error)
ListAtManagementGroupScopeComplete(ctx context.Context, groupID string, filter string, top *int32) (result features.DeploymentListResultIterator, err error)
ListAtScope(ctx context.Context, scope string, filter string, top *int32) (result features.DeploymentListResultPage, err error)
ListAtScopeComplete(ctx context.Context, scope string, filter string, top *int32) (result features.DeploymentListResultIterator, err error)
ListAtSubscriptionScope(ctx context.Context, filter string, top *int32) (result features.DeploymentListResultPage, err error)
ListAtSubscriptionScopeComplete(ctx context.Context, filter string, top *int32) (result features.DeploymentListResultIterator, err error)
ListAtTenantScope(ctx context.Context, filter string, top *int32) (result features.DeploymentListResultPage, err error)
ListAtTenantScopeComplete(ctx context.Context, filter string, top *int32) (result features.DeploymentListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, top *int32) (result features.DeploymentListResultPage, err error)
ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, top *int32) (result features.DeploymentListResultIterator, err error)
Validate(ctx context.Context, resourceGroupName string, deploymentName string, parameters features.Deployment) (result features.DeploymentValidateResult, err error)
ValidateAtManagementGroupScope(ctx context.Context, groupID string, deploymentName string, parameters features.Deployment) (result features.DeploymentValidateResult, err error)
ValidateAtScope(ctx context.Context, scope string, deploymentName string, parameters features.Deployment) (result features.DeploymentValidateResult, err error)
ValidateAtSubscriptionScope(ctx context.Context, deploymentName string, parameters features.Deployment) (result features.DeploymentValidateResult, err error)
ValidateAtTenantScope(ctx context.Context, deploymentName string, parameters features.Deployment) (result features.DeploymentValidateResult, err error)
WhatIf(ctx context.Context, resourceGroupName string, deploymentName string, parameters features.DeploymentWhatIf) (result features.DeploymentsWhatIfFuture, err error)
WhatIfAtSubscriptionScope(ctx context.Context, deploymentName string, parameters features.DeploymentWhatIf) (result features.DeploymentsWhatIfAtSubscriptionScopeFuture, err error)
}
var _ DeploymentsClientAPI = (*features.DeploymentsClient)(nil)
// ProvidersClientAPI contains the set of methods on the ProvidersClient type.
type ProvidersClientAPI interface {
Get(ctx context.Context, resourceProviderNamespace string, expand string) (result features.Provider, err error)
GetAtTenantScope(ctx context.Context, resourceProviderNamespace string, expand string) (result features.Provider, err error)
List(ctx context.Context, top *int32, expand string) (result features.ProviderListResultPage, err error)
ListComplete(ctx context.Context, top *int32, expand string) (result features.ProviderListResultIterator, err error)
ListAtTenantScope(ctx context.Context, top *int32, expand string) (result features.ProviderListResultPage, err error)
ListAtTenantScopeComplete(ctx context.Context, top *int32, expand string) (result features.ProviderListResultIterator, err error)
Register(ctx context.Context, resourceProviderNamespace string) (result features.Provider, err error)
Unregister(ctx context.Context, resourceProviderNamespace string) (result features.Provider, err error)
}
var _ ProvidersClientAPI = (*features.ProvidersClient)(nil)
// ResourcesClientAPI contains the set of methods on the ResourcesClient type.
type ResourcesClientAPI interface {
CheckExistence(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, APIVersion string) (result autorest.Response, err error)
CheckExistenceByID(ctx context.Context, resourceID string, APIVersion string) (result autorest.Response, err error)
CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, APIVersion string, parameters features.GenericResource) (result features.ResourcesCreateOrUpdateFuture, err error)
CreateOrUpdateByID(ctx context.Context, resourceID string, APIVersion string, parameters features.GenericResource) (result features.ResourcesCreateOrUpdateByIDFuture, err error)
Delete(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, APIVersion string) (result features.ResourcesDeleteFuture, err error)
DeleteByID(ctx context.Context, resourceID string, APIVersion string) (result features.ResourcesDeleteByIDFuture, err error)
Get(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, APIVersion string) (result features.GenericResource, err error)
GetByID(ctx context.Context, resourceID string, APIVersion string) (result features.GenericResource, err error)
List(ctx context.Context, filter string, expand string, top *int32) (result features.ResourceListResultPage, err error)
ListComplete(ctx context.Context, filter string, expand string, top *int32) (result features.ResourceListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, expand string, top *int32) (result features.ResourceListResultPage, err error)
ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, expand string, top *int32) (result features.ResourceListResultIterator, err error)
MoveResources(ctx context.Context, sourceResourceGroupName string, parameters features.ResourcesMoveInfo) (result features.ResourcesMoveResourcesFuture, err error)
Update(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, APIVersion string, parameters features.GenericResource) (result features.ResourcesUpdateFuture, err error)
UpdateByID(ctx context.Context, resourceID string, APIVersion string, parameters features.GenericResource) (result features.ResourcesUpdateByIDFuture, err error)
ValidateMoveResources(ctx context.Context, sourceResourceGroupName string, parameters features.ResourcesMoveInfo) (result features.ResourcesValidateMoveResourcesFuture, err error)
}
var _ ResourcesClientAPI = (*features.ResourcesClient)(nil)
// ResourceGroupsClientAPI contains the set of methods on the ResourceGroupsClient type.
type ResourceGroupsClientAPI interface {
CheckExistence(ctx context.Context, resourceGroupName string) (result autorest.Response, err error)
CreateOrUpdate(ctx context.Context, resourceGroupName string, parameters features.ResourceGroup) (result features.ResourceGroup, err error)
Delete(ctx context.Context, resourceGroupName string) (result features.ResourceGroupsDeleteFuture, err error)
ExportTemplate(ctx context.Context, resourceGroupName string, parameters features.ExportTemplateRequest) (result features.ResourceGroupExportResult, err error)
Get(ctx context.Context, resourceGroupName string) (result features.ResourceGroup, err error)
List(ctx context.Context, filter string, top *int32) (result features.ResourceGroupListResultPage, err error)
ListComplete(ctx context.Context, filter string, top *int32) (result features.ResourceGroupListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, parameters features.ResourceGroupPatchable) (result features.ResourceGroup, err error)
}
var _ ResourceGroupsClientAPI = (*features.ResourceGroupsClient)(nil)
// TagsClientAPI contains the set of methods on the TagsClient type.
type TagsClientAPI interface {
CreateOrUpdate(ctx context.Context, tagName string) (result features.TagDetails, err error)
CreateOrUpdateValue(ctx context.Context, tagName string, tagValue string) (result features.TagValue, err error)
Delete(ctx context.Context, tagName string) (result autorest.Response, err error)
DeleteValue(ctx context.Context, tagName string, tagValue string) (result autorest.Response, err error)
List(ctx context.Context) (result features.TagsListResultPage, err error)
ListComplete(ctx context.Context) (result features.TagsListResultIterator, err error)
}
var _ TagsClientAPI = (*features.TagsClient)(nil)
// DeploymentOperationsClientAPI contains the set of methods on the DeploymentOperationsClient type.
type DeploymentOperationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, deploymentName string, operationID string) (result features.DeploymentOperation, err error)
GetAtManagementGroupScope(ctx context.Context, groupID string, deploymentName string, operationID string) (result features.DeploymentOperation, err error)
GetAtScope(ctx context.Context, scope string, deploymentName string, operationID string) (result features.DeploymentOperation, err error)
GetAtSubscriptionScope(ctx context.Context, deploymentName string, operationID string) (result features.DeploymentOperation, err error)
GetAtTenantScope(ctx context.Context, deploymentName string, operationID string) (result features.DeploymentOperation, err error)
List(ctx context.Context, resourceGroupName string, deploymentName string, top *int32) (result features.DeploymentOperationsListResultPage, err error)
ListComplete(ctx context.Context, resourceGroupName string, deploymentName string, top *int32) (result features.DeploymentOperationsListResultIterator, err error)
ListAtManagementGroupScope(ctx context.Context, groupID string, deploymentName string, top *int32) (result features.DeploymentOperationsListResultPage, err error)
ListAtManagementGroupScopeComplete(ctx context.Context, groupID string, deploymentName string, top *int32) (result features.DeploymentOperationsListResultIterator, err error)
ListAtScope(ctx context.Context, scope string, deploymentName string, top *int32) (result features.DeploymentOperationsListResultPage, err error)
ListAtScopeComplete(ctx context.Context, scope string, deploymentName string, top *int32) (result features.DeploymentOperationsListResultIterator, err error)
ListAtSubscriptionScope(ctx context.Context, deploymentName string, top *int32) (result features.DeploymentOperationsListResultPage, err error)
ListAtSubscriptionScopeComplete(ctx context.Context, deploymentName string, top *int32) (result features.DeploymentOperationsListResultIterator, err error)
ListAtTenantScope(ctx context.Context, deploymentName string, top *int32) (result features.DeploymentOperationsListResultPage, err error)
ListAtTenantScopeComplete(ctx context.Context, deploymentName string, top *int32) (result features.DeploymentOperationsListResultIterator, err error)
}
var _ DeploymentOperationsClientAPI = (*features.DeploymentOperationsClient)(nil)