/
models.go
294 lines (218 loc) · 9.12 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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
//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 armextendedlocation
import "time"
// CustomLocation - Custom Locations definition.
type CustomLocation struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// Identity for the resource.
Identity *Identity
// The set of properties specific to a Custom Location
Properties *CustomLocationProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Metadata pertaining to creation and last modification of the resource
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// CustomLocationListResult - The List Custom Locations operation response.
type CustomLocationListResult struct {
// READ-ONLY; The URL to use for getting the next set of results.
NextLink *string
// READ-ONLY; The list of Custom Locations.
Value []*CustomLocation
}
// CustomLocationOperation - Custom Locations operation.
type CustomLocationOperation struct {
// Describes the properties of a Custom Locations Operation Value Display.
Display *CustomLocationOperationValueDisplay
// READ-ONLY; Is this Operation a data plane operation
IsDataAction *bool
// READ-ONLY; The name of the compute operation.
Name *string
// READ-ONLY; The origin of the compute operation.
Origin *string
}
// CustomLocationOperationValueDisplay - Describes the properties of a Custom Locations Operation Value Display.
type CustomLocationOperationValueDisplay struct {
// READ-ONLY; The description of the operation.
Description *string
// READ-ONLY; The display name of the compute operation.
Operation *string
// READ-ONLY; The resource provider for the operation.
Provider *string
// READ-ONLY; The display name of the resource the operation applies to.
Resource *string
}
// CustomLocationOperationsList - Lists of Custom Locations operations.
type CustomLocationOperationsList struct {
// REQUIRED; Array of customLocationOperation
Value []*CustomLocationOperation
// Next page of operations.
NextLink *string
}
// CustomLocationProperties - Properties for a custom location.
type CustomLocationProperties struct {
// This is optional input that contains the authentication that should be used to generate the namespace.
Authentication *CustomLocationPropertiesAuthentication
// Contains the reference to the add-on that contains charts to deploy CRDs and operators.
ClusterExtensionIDs []*string
// Display name for the Custom Locations location.
DisplayName *string
// Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.
HostResourceID *string
// Type of host the Custom Locations is referencing (Kubernetes, etc…).
HostType *HostType
// Kubernetes namespace that will be created on the specified cluster.
Namespace *string
// Provisioning State for the Custom Location.
ProvisioningState *string
}
// CustomLocationPropertiesAuthentication - This is optional input that contains the authentication that should be used to
// generate the namespace.
type CustomLocationPropertiesAuthentication struct {
// The type of the Custom Locations authentication
Type *string
// The kubeconfig value.
Value *string
}
// EnabledResourceType definition.
type EnabledResourceType struct {
// The set of properties for EnabledResourceType specific to a Custom Location
Properties *EnabledResourceTypeProperties
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Metadata pertaining to creation and last modification of the resource
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// EnabledResourceTypeProperties - Properties for EnabledResourceType of a custom location.
type EnabledResourceTypeProperties struct {
// Cluster Extension ID
ClusterExtensionID *string
// Cluster Extension Type
ExtensionType *string
// Metadata of the Resource Type
TypesMetadata []*EnabledResourceTypePropertiesTypesMetadataItem
}
// EnabledResourceTypePropertiesTypesMetadataItem - Metadata of the Resource Type.
type EnabledResourceTypePropertiesTypesMetadataItem struct {
// Api Version of Resource Type
APIVersion *string
// Resource Provider Namespace of Resource Type
ResourceProviderNamespace *string
// Resource Type
ResourceType *string
}
// EnabledResourceTypesListResult - List of EnabledResourceTypes definition.
type EnabledResourceTypesListResult struct {
// READ-ONLY; The URL to use for getting the next set of results.
NextLink *string
// READ-ONLY; The list of EnabledResourceTypes available for a customLocation.
Value []*EnabledResourceType
}
// ErrorAdditionalInfo - The resource management error additional info.
type ErrorAdditionalInfo struct {
// READ-ONLY; The additional info.
Info any
// READ-ONLY; The additional info type.
Type *string
}
// ErrorDetail - The error detail.
type ErrorDetail struct {
// READ-ONLY; The error additional info.
AdditionalInfo []*ErrorAdditionalInfo
// READ-ONLY; The error code.
Code *string
// READ-ONLY; The error details.
Details []*ErrorDetail
// READ-ONLY; The error message.
Message *string
// READ-ONLY; The error target.
Target *string
}
// ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations.
// (This also follows the OData error response format.).
type ErrorResponse struct {
// The error object.
Error *ErrorDetail
}
// Identity for the resource.
type Identity struct {
// The identity type.
Type *ResourceIdentityType
// READ-ONLY; The principal ID of resource identity.
PrincipalID *string
// READ-ONLY; The tenant ID of resource.
TenantID *string
}
// PatchableCustomLocations - The Custom Locations patchable resource definition.
type PatchableCustomLocations struct {
// Identity for the resource.
Identity *Identity
// The Custom Locations patchable properties.
Properties *CustomLocationProperties
// Resource tags
Tags map[string]*string
}
// ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a
// location
type ProxyResource struct {
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// Resource - Common fields that are returned in the response for all Azure Resource Manager resources
type Resource struct {
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// SystemData - Metadata pertaining to creation and last modification of the resource.
type SystemData struct {
// The timestamp of resource creation (UTC).
CreatedAt *time.Time
// The identity that created the resource.
CreatedBy *string
// The type of identity that created the resource.
CreatedByType *CreatedByType
// The timestamp of resource last modification (UTC)
LastModifiedAt *time.Time
// The identity that last modified the resource.
LastModifiedBy *string
// The type of identity that last modified the resource.
LastModifiedByType *CreatedByType
}
// TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags'
// and a 'location'
type TrackedResource struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}