/
models.go
214 lines (164 loc) · 6.9 KB
/
models.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
//go:build go1.18
// +build go1.18
// 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. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armcustomproviders
// Association - The resource definition of this association.
type Association struct {
// The properties of the association.
Properties *AssociationProperties
// READ-ONLY; The association id.
ID *string
// READ-ONLY; The association name.
Name *string
// READ-ONLY; The association type.
Type *string
}
// AssociationProperties - The properties of the association.
type AssociationProperties struct {
// The REST resource instance of the target resource for this association.
TargetResourceID *string
// READ-ONLY; The provisioning state of the association.
ProvisioningState *ProvisioningState
}
// AssociationsList - List of associations.
type AssociationsList struct {
// The URL to use for getting the next set of results.
NextLink *string
// The array of associations.
Value []*Association
}
// CustomRPActionRouteDefinition - The route definition for an action implemented by the custom resource provider.
type CustomRPActionRouteDefinition struct {
// REQUIRED; The route definition endpoint URI that the custom resource provider will proxy requests to. This can be in the
// form of a flat URI (e.g. 'https://testendpoint/') or can specify to route via a path
// (e.g. 'https://testendpoint/{requestPath}')
Endpoint *string
// REQUIRED; The name of the route definition. This becomes the name for the ARM extension (e.g.
// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/{name}')
Name *string
// The routing types that are supported for action requests.
RoutingType *ActionRouting
}
// CustomRPManifest - A manifest file that defines the custom resource provider resources.
type CustomRPManifest struct {
// REQUIRED; Resource location
Location *string
// The manifest for the custom resource provider
Properties *CustomRPManifestProperties
// Resource tags
Tags map[string]*string
// READ-ONLY; Resource Id
ID *string
// READ-ONLY; Resource name
Name *string
// READ-ONLY; Resource type
Type *string
}
// CustomRPManifestProperties - The manifest for the custom resource provider
type CustomRPManifestProperties struct {
// A list of actions that the custom resource provider implements.
Actions []*CustomRPActionRouteDefinition
// A list of resource types that the custom resource provider implements.
ResourceTypes []*CustomRPResourceTypeRouteDefinition
// A list of validations to run on the custom resource provider's requests.
Validations []*CustomRPValidations
// READ-ONLY; The provisioning state of the resource provider.
ProvisioningState *ProvisioningState
}
// CustomRPResourceTypeRouteDefinition - The route definition for a resource implemented by the custom resource provider.
type CustomRPResourceTypeRouteDefinition struct {
// REQUIRED; The route definition endpoint URI that the custom resource provider will proxy requests to. This can be in the
// form of a flat URI (e.g. 'https://testendpoint/') or can specify to route via a path
// (e.g. 'https://testendpoint/{requestPath}')
Endpoint *string
// REQUIRED; The name of the route definition. This becomes the name for the ARM extension (e.g.
// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/{name}')
Name *string
// The routing types that are supported for resource requests.
RoutingType *ResourceTypeRouting
}
// CustomRPRouteDefinition - A route definition that defines an action or resource that can be interacted with through the
// custom resource provider.
type CustomRPRouteDefinition struct {
// REQUIRED; The route definition endpoint URI that the custom resource provider will proxy requests to. This can be in the
// form of a flat URI (e.g. 'https://testendpoint/') or can specify to route via a path
// (e.g. 'https://testendpoint/{requestPath}')
Endpoint *string
// REQUIRED; The name of the route definition. This becomes the name for the ARM extension (e.g.
// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/{name}')
Name *string
}
// CustomRPValidations - A validation to apply on custom resource provider requests.
type CustomRPValidations struct {
// REQUIRED; A link to the validation specification. The specification must be hosted on raw.githubusercontent.com.
Specification *string
// The type of validation to run against a matching request.
ValidationType *ValidationType
}
// ErrorDefinition - Error definition.
type ErrorDefinition struct {
// READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code.
Code *string
// READ-ONLY; Internal error details.
Details []*ErrorDefinition
// READ-ONLY; Description of the error.
Message *string
}
// ErrorResponse - Error response.
type ErrorResponse struct {
// The error details.
Error *ErrorDefinition
}
// ListByCustomRPManifest - List of custom resource providers.
type ListByCustomRPManifest struct {
// The URL to use for getting the next set of results.
NextLink *string
// The array of custom resource provider manifests.
Value []*CustomRPManifest
}
// Resource - The resource definition.
type Resource struct {
// REQUIRED; Resource location
Location *string
// Resource tags
Tags map[string]*string
// READ-ONLY; Resource Id
ID *string
// READ-ONLY; Resource name
Name *string
// READ-ONLY; Resource type
Type *string
}
// ResourceProviderOperation - Supported operations of this resource provider.
type ResourceProviderOperation struct {
// Display metadata associated with the operation.
Display *ResourceProviderOperationDisplay
// Operation name, in format of {provider}/{resource}/{operation}
Name *string
}
// ResourceProviderOperationDisplay - Display metadata associated with the operation.
type ResourceProviderOperationDisplay struct {
// Description of this operation.
Description *string
// Type of operation: get, read, delete, etc.
Operation *string
// Resource provider: Microsoft Custom Providers.
Provider *string
// Resource on which the operation is performed.
Resource *string
}
// ResourceProviderOperationList - Results of the request to list operations.
type ResourceProviderOperationList struct {
// The URL to use for getting the next set of results.
NextLink *string
// List of operations supported by this resource provider.
Value []*ResourceProviderOperation
}
// ResourceProvidersUpdate - custom resource provider update information.
type ResourceProvidersUpdate struct {
// Resource tags
Tags map[string]*string
}