/
models.go
471 lines (351 loc) · 13.1 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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
//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 armredhatopenshift
import "time"
// APIServerProfile represents an API server profile.
type APIServerProfile struct {
// The IP of the cluster API server.
IP *string
// The URL to access the cluster API server.
URL *string
// API server visibility.
Visibility *Visibility
}
// ClusterProfile represents a cluster profile.
type ClusterProfile struct {
// The domain for the cluster.
Domain *string
// If FIPS validated crypto modules are used
FipsValidatedModules *FipsValidatedModules
// The pull secret for the cluster.
PullSecret *string
// The ID of the cluster resource group.
ResourceGroupID *string
// The version of the cluster.
Version *string
}
// ConsoleProfile represents a console profile.
type ConsoleProfile struct {
// The URL to access the cluster console.
URL *string
}
// Display represents the display details of an operation.
type Display struct {
// Friendly name of the operation.
Description *string
// Operation type: read, write, delete, listKeys/action, etc.
Operation *string
// Friendly name of the resource provider.
Provider *string
// Resource type on which the operation is performed.
Resource *string
}
// IngressProfile represents an ingress profile.
type IngressProfile struct {
// The IP of the ingress.
IP *string
// The ingress profile name.
Name *string
// Ingress visibility.
Visibility *Visibility
}
// MachinePool represents a MachinePool
type MachinePool struct {
// The MachinePool Properties
Properties *MachinePoolProperties
// 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; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// MachinePoolList represents a list of MachinePools
type MachinePoolList struct {
// The link used to get the next page of operations.
NextLink *string
// The list of Machine Pools.
Value []*MachinePool
}
// MachinePoolProperties represents the properties of a MachinePool
type MachinePoolProperties struct {
Resources *string
}
// MachinePoolUpdate - MachinePool represents a MachinePool
type MachinePoolUpdate struct {
// The MachinePool Properties
Properties *MachinePoolProperties
// READ-ONLY; The system meta data relating to this resource.
SystemData *SystemData
}
// MasterProfile represents a master profile.
type MasterProfile struct {
// The resource ID of an associated DiskEncryptionSet, if applicable.
DiskEncryptionSetID *string
// Whether master virtual machines are encrypted at host.
EncryptionAtHost *EncryptionAtHost
// The Azure resource ID of the master subnet.
SubnetID *string
// The size of the master VMs.
VMSize *string
}
// NetworkProfile represents a network profile.
type NetworkProfile struct {
// The OutboundType used for egress traffic.
OutboundType *OutboundType
// The CIDR used for OpenShift/Kubernetes Pods.
PodCidr *string
// Specifies whether subnets are pre-attached with an NSG
PreconfiguredNSG *PreconfiguredNSG
// The CIDR used for OpenShift/Kubernetes Services.
ServiceCidr *string
}
// OpenShiftCluster represents an Azure Red Hat OpenShift cluster.
type OpenShiftCluster struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// The cluster properties.
Properties *OpenShiftClusterProperties
// 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; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// OpenShiftClusterAdminKubeconfig represents an OpenShift cluster's admin kubeconfig.
type OpenShiftClusterAdminKubeconfig struct {
// The base64-encoded kubeconfig file.
Kubeconfig *string
}
// OpenShiftClusterCredentials represents an OpenShift cluster's credentials.
type OpenShiftClusterCredentials struct {
// The password for the kubeadmin user.
KubeadminPassword *string
// The username for the kubeadmin user.
KubeadminUsername *string
}
// OpenShiftClusterList represents a list of OpenShift clusters.
type OpenShiftClusterList struct {
// The link used to get the next page of operations.
NextLink *string
// The list of OpenShift clusters.
Value []*OpenShiftCluster
}
// OpenShiftClusterProperties represents an OpenShift cluster's properties.
type OpenShiftClusterProperties struct {
// The cluster API server profile.
ApiserverProfile *APIServerProfile
// The cluster profile.
ClusterProfile *ClusterProfile
// The console profile.
ConsoleProfile *ConsoleProfile
// The cluster ingress profiles.
IngressProfiles []*IngressProfile
// The cluster master profile.
MasterProfile *MasterProfile
// The cluster network profile.
NetworkProfile *NetworkProfile
// The cluster provisioning state.
ProvisioningState *ProvisioningState
// The cluster service principal profile.
ServicePrincipalProfile *ServicePrincipalProfile
// The cluster worker profiles.
WorkerProfiles []*WorkerProfile
// READ-ONLY; The cluster worker profiles status.
WorkerProfilesStatus []*WorkerProfile
}
// OpenShiftClusterUpdate - OpenShiftCluster represents an Azure Red Hat OpenShift cluster.
type OpenShiftClusterUpdate struct {
// The cluster properties.
Properties *OpenShiftClusterProperties
// The resource tags.
Tags map[string]*string
// READ-ONLY; The system meta data relating to this resource.
SystemData *SystemData
}
// OpenShiftVersion represents an OpenShift version that can be installed.
type OpenShiftVersion struct {
// The properties for the OpenShiftVersion resource.
Properties *OpenShiftVersionProperties
// 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; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// OpenShiftVersionList represents a List of available versions.
type OpenShiftVersionList struct {
// Next Link to next operation.
NextLink *string
// The List of available versions.
Value []*OpenShiftVersion
}
// OpenShiftVersionProperties represents the properties of an OpenShiftVersion.
type OpenShiftVersionProperties struct {
// Version represents the version to create the cluster at.
Version *string
}
// Operation represents an RP operation.
type Operation struct {
// The object that describes the operation.
Display *Display
// Operation name: {provider}/{resource}/{operation}.
Name *string
// Sources of requests to this operation. Comma separated list with valid values user or system, e.g. "user,system".
Origin *string
}
// OperationList represents an RP operation list.
type OperationList struct {
// The link used to get the next page of operations.
NextLink *string
// List of operations supported by the resource provider.
Value []*Operation
}
// Secret represents a secret.
type Secret struct {
// The Secret Properties
Properties *SecretProperties
// 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; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// SecretList represents a list of Secrets
type SecretList struct {
// The link used to get the next page of operations.
NextLink *string
// The list of secrets.
Value []*Secret
}
// SecretProperties represents the properties of a Secret
type SecretProperties struct {
// The Secrets Resources.
SecretResources *string
}
// SecretUpdate - Secret represents a secret.
type SecretUpdate struct {
// The Secret Properties
Properties *SecretProperties
// READ-ONLY; The system meta data relating to this resource.
SystemData *SystemData
}
// ServicePrincipalProfile represents a service principal profile.
type ServicePrincipalProfile struct {
// The client ID used for the cluster.
ClientID *string
// The client secret used for the cluster.
ClientSecret *string
}
// SyncIdentityProvider represents a SyncIdentityProvider
type SyncIdentityProvider struct {
// The SyncIdentityProvider Properties
Properties *SyncIdentityProviderProperties
// 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; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// SyncIdentityProviderList - SyncSetList represents a list of SyncSets
type SyncIdentityProviderList struct {
// The link used to get the next page of operations.
NextLink *string
// The list of sync identity providers
Value []*SyncIdentityProvider
}
// SyncIdentityProviderProperties - SyncSetProperties represents the properties of a SyncSet
type SyncIdentityProviderProperties struct {
Resources *string
}
// SyncIdentityProviderUpdate - SyncIdentityProvider represents a SyncIdentityProvider
type SyncIdentityProviderUpdate struct {
// The SyncIdentityProvider Properties
Properties *SyncIdentityProviderProperties
// READ-ONLY; The system meta data relating to this resource.
SystemData *SystemData
}
// SyncSet represents a SyncSet for an Azure Red Hat OpenShift Cluster.
type SyncSet struct {
// The Syncsets properties
Properties *SyncSetProperties
// 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; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// SyncSetList represents a list of SyncSets
type SyncSetList struct {
// The link used to get the next page of operations.
NextLink *string
// The list of syncsets.
Value []*SyncSet
}
// SyncSetProperties represents the properties of a SyncSet
type SyncSetProperties struct {
// Resources represents the SyncSets configuration.
Resources *string
}
// SyncSetUpdate - SyncSet represents a SyncSet for an Azure Red Hat OpenShift Cluster.
type SyncSetUpdate struct {
// The Syncsets properties
Properties *SyncSetProperties
// READ-ONLY; The system meta data relating to this resource.
SystemData *SystemData
}
// 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
}
// WorkerProfile represents a worker profile.
type WorkerProfile struct {
// The number of worker VMs.
Count *int32
// The resource ID of an associated DiskEncryptionSet, if applicable.
DiskEncryptionSetID *string
// The disk size of the worker VMs.
DiskSizeGB *int32
// Whether master virtual machines are encrypted at host.
EncryptionAtHost *EncryptionAtHost
// The worker profile name.
Name *string
// The Azure resource ID of the worker subnet.
SubnetID *string
// The size of the worker VMs.
VMSize *string
}