1
2
3 package model
4
5 import (
6 "fmt"
7 "io"
8 "strconv"
9
10 "github.com/google/uuid"
11 )
12
13
14
15
16
17 type ICombinedStatus interface {
18 IsICombinedStatus()
19 GetInfraStatus() *InfraStatus
20 GetClusterStatus() *ClusterStatus
21 GetEvents() []*Event
22 }
23
24
25 type IStatus interface {
26 IsIStatus()
27 GetMessage() string
28 GetStatus() string
29 }
30
31
32 type APIStatusSummary struct {
33 BspAPI *bool `json:"bspAPI,omitempty"`
34 KubeAPI *bool `json:"kubeAPI,omitempty"`
35 Bff *bool `json:"bff,omitempty"`
36 }
37
38
39 type APIVersion struct {
40
41 DownloadLinks map[string]interface{} `json:"downloadLinks"`
42
43 DownloadCommands map[string]interface{} `json:"downloadCommands"`
44
45 Commit string `json:"commit"`
46
47 SemVar string `json:"semVar"`
48
49 ReleaseCandidate bool `json:"releaseCandidate"`
50
51 Timestamp string `json:"timestamp"`
52 }
53
54 type Action struct {
55 ActionID string `json:"actionID"`
56 Action string `json:"action"`
57 Time string `json:"time"`
58 Status ActionStatus `json:"status"`
59 TenantEdgeID string `json:"tenantEdgeID"`
60 BannerEdgeID *string `json:"bannerEdgeID,omitempty"`
61 ClusterEdgeID *string `json:"clusterEdgeID,omitempty"`
62 Username string `json:"username"`
63 Input string `json:"input"`
64 BatchID *string `json:"batchID,omitempty"`
65 Error *string `json:"error,omitempty"`
66 }
67
68 type Actions struct {
69 Edges []*Action `json:"edges,omitempty"`
70 PageInfo *PageInfo `json:"pageInfo"`
71 }
72
73
74 type Address struct {
75
76 City *string `json:"city,omitempty"`
77
78 Country *string `json:"country,omitempty"`
79
80 PostalCode *string `json:"postalCode,omitempty"`
81
82 State *string `json:"state,omitempty"`
83
84 Street *string `json:"street,omitempty"`
85 }
86
87
88 type AddressInput struct {
89
90 City *string `json:"city,omitempty"`
91
92 Country *string `json:"country,omitempty"`
93
94 PostalCode *string `json:"postalCode,omitempty"`
95
96 State *string `json:"state,omitempty"`
97
98 Street *string `json:"street,omitempty"`
99 }
100
101
102 type ArtifactCompatibility struct {
103
104 Artifact *ArtifactVersion `json:"artifact"`
105
106 NthIndex int `json:"nthIndex"`
107
108 CompatibleArtifacts []*ArtifactVersion `json:"compatibleArtifacts"`
109 }
110
111
112 type ArtifactCompatibilityPayload struct {
113
114 Artifact *ArtifactInput `json:"artifact"`
115
116 NthIndex *int `json:"nthIndex,omitempty"`
117
118 CompatibleArtifacts []*ArtifactInput `json:"compatibleArtifacts"`
119 }
120
121
122 type ArtifactInput struct {
123
124 Name string `json:"name"`
125
126 Version string `json:"version"`
127 }
128
129
130 type ArtifactRegistry struct {
131
132 RegistryEdgeID string `json:"registryEdgeId"`
133
134 BannerEdgeID string `json:"bannerEdgeId"`
135
136 Description *string `json:"description,omitempty"`
137
138 URL string `json:"url"`
139 }
140
141
142 type ArtifactRegistryCreateInput struct {
143
144 BannerEdgeID string `json:"bannerEdgeId"`
145
146 Description *string `json:"description,omitempty"`
147
148 URL string `json:"url"`
149 }
150
151
152 type ArtifactRegistryUpdateInput struct {
153
154 Description *string `json:"description,omitempty"`
155
156 URL string `json:"url"`
157 }
158
159
160 type ArtifactVersion struct {
161 Name string `json:"name"`
162 Version string `json:"version"`
163 }
164
165
166 type Attributes struct {
167
168 Key *string `json:"key,omitempty"`
169
170 Value *string `json:"value,omitempty"`
171 }
172
173
174 type AttributesInput struct {
175
176 Key *string `json:"key,omitempty"`
177
178 Value *string `json:"value,omitempty"`
179 }
180
181
182 type AuthPayload struct {
183
184 Token string `json:"token"`
185
186 FirstName *string `json:"firstName,omitempty"`
187
188 FullName string `json:"fullName"`
189
190 Roles []string `json:"roles,omitempty"`
191
192
193 Banners []*Banner `json:"banners,omitempty"`
194
195 CredentialsExpired bool `json:"credentialsExpired"`
196
197 SessionTime float64 `json:"sessionTime"`
198
199 Organization string `json:"organization"`
200 }
201
202
203 type Banner struct {
204
205 Name string `json:"name"`
206
207 Description *string `json:"description,omitempty"`
208
209 BannerBSLId string `json:"bannerBSLId"`
210
211 BannerEdgeID string `json:"bannerEdgeId"`
212
213 BannerType string `json:"bannerType"`
214 ProjectID string `json:"projectId"`
215 TenantEdgeID string `json:"tenantEdgeId"`
216
217 MismatchInfo []string `json:"mismatchInfo,omitempty"`
218
219 RemoteAccessIP string `json:"remoteAccessIp"`
220
221 BannerStatus *BannerStatus `json:"bannerStatus"`
222
223 BslDataSynced *bool `json:"bslDataSynced,omitempty"`
224
225 BslEntityTypes []string `json:"bslEntityTypes,omitempty"`
226
227 OptInEdgeSecurityCompliance bool `json:"optInEdgeSecurityCompliance"`
228 }
229
230 type BannerConfig struct {
231 VncReadWriteAuthRequired bool `json:"vncReadWriteAuthRequired"`
232 VncReadWriteAuthRequiredOverride bool `json:"vncReadWriteAuthRequiredOverride"`
233 VncReadAuthRequired bool `json:"vncReadAuthRequired"`
234 VncReadAuthRequiredOverride bool `json:"vncReadAuthRequiredOverride"`
235 }
236
237
238 type BannerInfo struct {
239 BannerBSLId string `json:"bannerBSLId"`
240 BannerEdgeID string `json:"bannerEdgeId"`
241 Name string `json:"name"`
242 BannerType string `json:"bannerType"`
243 }
244
245
246 type BannerStatus struct {
247
248 Message string `json:"message"`
249
250 Reason string `json:"reason"`
251
252 Ready bool `json:"ready"`
253
254 LastUpdatedAt string `json:"lastUpdatedAt"`
255 }
256
257
258 type BootstrapPayload struct {
259
260 ClusterEdgeID string `json:"clusterEdgeId"`
261
262 Force *bool `json:"force,omitempty"`
263
264 ClusterCaHash *string `json:"clusterCaHash,omitempty"`
265 }
266
267
268 type BootstrapResponse struct {
269
270 ProjectID *string `json:"projectId,omitempty"`
271
272 Secrets []string `json:"secrets,omitempty"`
273
274 FluxConfig *FluxBootstrapResponse `json:"fluxConfig,omitempty"`
275
276 InstallManifests []string `json:"installManifests,omitempty"`
277
278 PreBootstrapManifests []*string `json:"preBootstrapManifests,omitempty"`
279
280 PreBootstrapStaticManifests []string `json:"preBootstrapStaticManifests,omitempty"`
281 }
282
283
284 type BootstrapResponseBwc struct {
285
286 ProjectID *string `json:"projectId,omitempty"`
287
288 Secrets []string `json:"secrets,omitempty"`
289
290 FluxConfig *FluxBootstrapResponse `json:"fluxConfig,omitempty"`
291 }
292
293
294 type BucketStatusInformation struct {
295
296 Excludes string `json:"excludes"`
297
298 BucketName string `json:"bucketName"`
299
300 FluxStatus *FluxStatusInformation `json:"fluxStatus"`
301 }
302
303 type CaBundle struct {
304 CaBundle string `json:"caBundle"`
305 CaCerts []string `json:"caCerts"`
306 }
307
308 type Capability struct {
309 UUID string `json:"uuid"`
310 Name string `json:"name"`
311 Description *string `json:"description,omitempty"`
312 }
313
314 type CapabilityBannerMappingInput struct {
315 Capabilityid string `json:"capabilityid"`
316 BannerEdgeID string `json:"bannerEdgeId"`
317 }
318
319 type CapabilityInput struct {
320 Name string `json:"name"`
321 Description *string `json:"description,omitempty"`
322 }
323
324 type CapabilityUpdateInput struct {
325 UUID string `json:"uuid"`
326 Name *string `json:"name,omitempty"`
327 Description *string `json:"description,omitempty"`
328 }
329
330 type Channel struct {
331 ChannelID uuid.UUID `json:"channel_id"`
332 Name string `json:"name"`
333 Description string `json:"description"`
334 Team string `json:"team"`
335 ExpirationBufferDuration string `json:"expirationBufferDuration"`
336 RotationIntervalDuration string `json:"rotationIntervalDuration"`
337 }
338
339 type ChannelIAMPolicy struct {
340 ChannelSaID string `json:"channel_sa_id"`
341 ChannelID string `json:"channel_id"`
342 SaEmail string `json:"sa_email"`
343 CreatedAt string `json:"created_at"`
344 }
345
346 type ChannelInput struct {
347 Name string `json:"name"`
348 Description string `json:"description"`
349 }
350
351 type ClassDeviceMap struct {
352
353 Name string `json:"name"`
354
355 Devices []*Device `json:"devices,omitempty"`
356 }
357
358
359 type Close struct {
360
361 Day *string `json:"day,omitempty"`
362
363 Time *string `json:"time,omitempty"`
364 }
365
366
367 type CloseInput struct {
368
369 Day *string `json:"day,omitempty"`
370
371 Time *string `json:"time,omitempty"`
372 }
373
374
375 type Cluster struct {
376
377 ClusterEdgeID string `json:"clusterEdgeId"`
378
379 Name string `json:"name"`
380
381 ProjectID string `json:"projectId"`
382
383 BannerEdgeID string `json:"bannerEdgeId"`
384
385 Registered *bool `json:"registered,omitempty"`
386
387 Active *bool `json:"active,omitempty"`
388
389 Labels []*Label `json:"labels,omitempty"`
390
391 BslSiteID *string `json:"bslSiteID,omitempty"`
392
393 ClusterNetworkServices []*ClusterNetworkServiceInfo `json:"clusterNetworkServices"`
394
395 ClusterConfig *ClusterConfig `json:"clusterConfig"`
396
397 FleetVersion string `json:"fleetVersion"`
398
399 Status *CombinedStatus `json:"status"`
400 }
401
402
403 type ClusterArtifactRegistry struct {
404
405 ClusterRegistryEdgeID string `json:"clusterRegistryEdgeId"`
406
407 ClusterEdgeID string `json:"clusterEdgeId"`
408
409 RegistryEdgeID string `json:"registryEdgeId"`
410 }
411
412
413 type ClusterArtifactRegistryCreateInput struct {
414
415 ClusterEdgeID string `json:"clusterEdgeId"`
416
417 RegistryEdgeID string `json:"registryEdgeId"`
418 }
419
420
421 type ClusterConfig struct {
422
423 ClusterEdgeID string `json:"clusterEdgeId"`
424
425 AcRelay bool `json:"acRelay"`
426
427 PxeEnabled bool `json:"pxeEnabled"`
428
429 BootstrapAck bool `json:"bootstrapAck"`
430
431 VpnEnabled bool `json:"vpnEnabled"`
432
433 ThickPos bool `json:"thickPos"`
434
435 EgressGatewayEnabled bool `json:"egressGatewayEnabled"`
436
437 GatewayRateLimitingEnabled bool `json:"gatewayRateLimitingEnabled"`
438
439 UplinkRateLimit string `json:"uplinkRateLimit"`
440
441 DownlinkRateLimit string `json:"downlinkRateLimit"`
442
443 ClusterLogLevel string `json:"clusterLogLevel"`
444
445 NamespaceLogLevels []*NamespaceLogLevel `json:"namespaceLogLevels"`
446
447 MaximumLanOutageHours int `json:"maximumLanOutageHours"`
448
449
450 LinkerdIdentityIssuerCertDuration int `json:"linkerdIdentityIssuerCertDuration"`
451
452
453 LinkerdIdentityIssuerCertRenewBefore int `json:"linkerdIdentityIssuerCertRenewBefore"`
454
455 AutoUpdateEnabled bool `json:"autoUpdateEnabled"`
456
457
458 VncReadWriteAuthRequired *bool `json:"vncReadWriteAuthRequired,omitempty"`
459
460
461 VncReadAuthRequired *bool `json:"vncReadAuthRequired,omitempty"`
462 }
463
464
465 type ClusterDefaultSecret struct {
466 Secret string `json:"secret"`
467 RedactedSecret string `json:"redactedSecret"`
468 }
469
470
471 type ClusterInfo struct {
472
473 Location string `json:"location"`
474
475 NodeVersion *string `json:"nodeVersion,omitempty"`
476
477 MachineType string `json:"machineType"`
478
479 NumNodes int `json:"numNodes"`
480
481 Autoscale bool `json:"autoscale"`
482
483 MinNodes *int `json:"minNodes,omitempty"`
484
485 MaxNodes *int `json:"maxNodes,omitempty"`
486 }
487
488
489 type ClusterKubeconfig struct {
490 ClusterKubeConfig string `json:"clusterKubeConfig"`
491 RedactedClusterKubeConfig string `json:"redactedClusterKubeConfig"`
492 }
493
494
495 type ClusterLabel struct {
496
497 ClusterEdgeID string `json:"clusterEdgeId"`
498
499 LabelEdgeID string `json:"labelEdgeId"`
500 }
501
502
503 type ClusterNetworkServiceInfo struct {
504
505 NetworkServiceID string `json:"networkServiceId"`
506
507 ServiceType string `json:"serviceType"`
508
509 IP string `json:"ip"`
510
511 Family string `json:"family"`
512
513 Priority *int `json:"priority,omitempty"`
514 }
515
516
517 type ClusterSecretLease struct {
518 Owner string `json:"owner"`
519 ExpiresAt string `json:"expiresAt"`
520 SecretTypes []string `json:"secretTypes"`
521 }
522
523 type ClusterSecretVersionInfo struct {
524 Version string `json:"version"`
525 ExpiresAt string `json:"expiresAt"`
526 }
527
528
529 type ClusterStatus struct {
530 Status string `json:"status"`
531 Message string `json:"message"`
532 }
533
534 func (ClusterStatus) IsIStatus() {}
535 func (this ClusterStatus) GetMessage() string { return this.Message }
536 func (this ClusterStatus) GetStatus() string { return this.Status }
537
538
539 type ClusterStatusResponse struct {
540
541 Status *ClusterStatus `json:"status,omitempty"`
542
543 KubeVersion *string `json:"kubeVersion,omitempty"`
544
545 KustomizationStatus []*KustomizationStatusInformation `json:"kustomizationStatus,omitempty"`
546
547 BucketStatus []*BucketStatusInformation `json:"bucketStatus,omitempty"`
548 }
549
550
551 type CombinedStatus struct {
552 ClusterEdgeID string `json:"clusterEdgeID"`
553 Active bool `json:"active"`
554 InfraStatus *InfraStatus `json:"infraStatus,omitempty"`
555
556 ActiveVersion string `json:"activeVersion"`
557
558 Events []*Event `json:"events"`
559
560 ClusterStatus *ClusterStatus `json:"clusterStatus,omitempty"`
561
562 ReplicationStatus []*ReplicationStatus `json:"replicationStatus,omitempty"`
563
564 ComponentStatus []*ComponentStatus `json:"componentStatus,omitempty"`
565
566 SupportStatus *SupportStatus `json:"supportStatus,omitempty"`
567 }
568
569 func (CombinedStatus) IsICombinedStatus() {}
570 func (this CombinedStatus) GetInfraStatus() *InfraStatus { return this.InfraStatus }
571 func (this CombinedStatus) GetClusterStatus() *ClusterStatus { return this.ClusterStatus }
572 func (this CombinedStatus) GetEvents() []*Event {
573 if this.Events == nil {
574 return nil
575 }
576 interfaceSlice := make([]*Event, 0, len(this.Events))
577 for _, concrete := range this.Events {
578 interfaceSlice = append(interfaceSlice, concrete)
579 }
580 return interfaceSlice
581 }
582
583
584 type Command struct {
585 Name string `json:"name"`
586 }
587
588
589 type ComponentStatus struct {
590
591 Status *ClusterStatus `json:"status,omitempty"`
592
593 Component string `json:"component"`
594 }
595
596
597 type ConfigmapData struct {
598
599 Key *string `json:"key,omitempty"`
600
601 Value *string `json:"value,omitempty"`
602 }
603
604
605 type ConfigurationSetID struct {
606
607 Name *string `json:"name,omitempty"`
608 }
609
610
611 type ConfigurationSetIDInput struct {
612
613 Name *string `json:"name,omitempty"`
614 }
615
616
617 type ConfigurationSettings struct {
618
619 Key *string `json:"key,omitempty"`
620
621 Value *string `json:"value,omitempty"`
622 }
623
624
625 type ConfigurationSettingsInput struct {
626
627 Key *string `json:"key,omitempty"`
628
629 Value *string `json:"value,omitempty"`
630 }
631
632
633 type Contact struct {
634
635 ContactPerson *string `json:"contactPerson,omitempty"`
636
637 Email *string `json:"email,omitempty"`
638
639 PhoneNumber *string `json:"phoneNumber,omitempty"`
640
641 PhoneNumberCountryCode *string `json:"phoneNumberCountryCode,omitempty"`
642 }
643
644
645 type ContactInput struct {
646
647 ContactPerson *string `json:"contactPerson,omitempty"`
648
649 Email *string `json:"email,omitempty"`
650
651 PhoneNumber *string `json:"phoneNumber,omitempty"`
652
653 PhoneNumberCountryCode *string `json:"phoneNumberCountryCode,omitempty"`
654 }
655
656 type Contacts struct {
657 Identifier string `json:"identifier"`
658 Details *Contact `json:"details"`
659 }
660
661
662 type ContactsInput struct {
663
664 Identifier string `json:"Identifier"`
665
666 Contact *ContactInput `json:"Contact"`
667 }
668
669
670 type Coordinates struct {
671
672 Latitude float64 `json:"latitude"`
673
674 Longitude float64 `json:"longitude"`
675 }
676
677
678 type CoordinatesInput struct {
679
680 Latitude float64 `json:"latitude"`
681
682 Longitude float64 `json:"longitude"`
683 }
684
685 type CreateBannerConfig struct {
686 VncReadWriteAuthRequired *bool `json:"vncReadWriteAuthRequired,omitempty"`
687 VncReadWriteAuthRequiredOverride *bool `json:"vncReadWriteAuthRequiredOverride,omitempty"`
688 VncReadAuthRequired *bool `json:"vncReadAuthRequired,omitempty"`
689 VncReadAuthRequiredOverride *bool `json:"vncReadAuthRequiredOverride,omitempty"`
690 }
691
692
693
694 type CreateClassificationInput struct {
695
696 Description string `json:"description"`
697
698 Pod string `json:"pod"`
699
700 Container string `json:"container"`
701
702 Type string `json:"type"`
703
704 Class LogClassSelection `json:"class"`
705
706 Pattern string `json:"pattern"`
707 }
708
709 type CreateClusterConfig struct {
710 AcRelay *bool `json:"acRelay,omitempty"`
711 PxeEnabled *bool `json:"pxeEnabled,omitempty"`
712 BootstrapAck *bool `json:"bootstrapAck,omitempty"`
713 VpnEnabled *bool `json:"vpnEnabled,omitempty"`
714 ThickPos *bool `json:"thickPos,omitempty"`
715 EgressGatewayEnabled *bool `json:"egressGatewayEnabled,omitempty"`
716 GatewayRateLimitingEnabled *bool `json:"gatewayRateLimitingEnabled,omitempty"`
717 UplinkRateLimit *string `json:"uplinkRateLimit,omitempty"`
718 DownlinkRateLimit *string `json:"downlinkRateLimit,omitempty"`
719 ClusterLogLevel *string `json:"clusterLogLevel,omitempty"`
720 NamespaceLogLevels []*NamespaceLogLevelPayload `json:"namespaceLogLevels,omitempty"`
721 MaximumLanOutageHours *int `json:"maximumLanOutageHours,omitempty"`
722 AutoUpdateEnabled *bool `json:"autoUpdateEnabled,omitempty"`
723
724 LinkerdIdentityIssuerCertDuration *int `json:"linkerdIdentityIssuerCertDuration,omitempty"`
725
726 LinkerdIdentityIssuerCertRenewBefore *int `json:"linkerdIdentityIssuerCertRenewBefore,omitempty"`
727 VncReadWriteAuthRequired *bool `json:"vncReadWriteAuthRequired,omitempty"`
728 VncReadAuthRequired *bool `json:"vncReadAuthRequired,omitempty"`
729 }
730
731
732 type CreateLogReplayPayload struct {
733
734 Namespaces []string `json:"namespaces"`
735
736 StartTime string `json:"startTime"`
737
738 EndTime string `json:"endTime"`
739
740 LogLevel LogLevels `json:"logLevel"`
741 }
742
743 type CreateNetworkServiceInfo struct {
744
745 ServiceType string `json:"serviceType"`
746
747 IP string `json:"ip"`
748
749 Family string `json:"family"`
750
751 Priority *int `json:"priority,omitempty"`
752 }
753
754
755 type CreateOperatorInterventionCommandResponse struct {
756
757
758 Errors []*OperatorInterventionErrorResponse `json:"errors,omitempty"`
759 }
760
761
762 type CreateOperatorInterventionPrivilegeResponse struct {
763
764 Errors []*OperatorInterventionErrorResponse `json:"errors,omitempty"`
765 }
766
767
768 type CustomAttributeSets struct {
769
770 TypeName *string `json:"typeName,omitempty"`
771
772 Attributes []*Attributes `json:"attributes,omitempty"`
773 }
774
775
776 type CustomAttributeSetsInput struct {
777
778 TypeName *string `json:"typeName,omitempty"`
779
780 Attributes []*AttributesInput `json:"attributes,omitempty"`
781 }
782
783
784 type Dayparts struct {
785
786 Day *string `json:"day,omitempty"`
787
788 Description *string `json:"description,omitempty"`
789
790 EndTime *string `json:"endTime,omitempty"`
791
792 Name *string `json:"name,omitempty"`
793
794 StartTime *string `json:"startTime,omitempty"`
795 }
796
797
798 type DaypartsInput struct {
799
800 Day *string `json:"day,omitempty"`
801
802 Description *string `json:"description,omitempty"`
803
804 EndTime *string `json:"endTime,omitempty"`
805
806 Name *string `json:"name,omitempty"`
807
808 StartTime *string `json:"startTime,omitempty"`
809 }
810
811
812 type DeleteOperatorInterventionCommandResponse struct {
813
814
815 Errors []*OperatorInterventionErrorResponse `json:"errors,omitempty"`
816 }
817
818
819
820 type DeleteOperatorInterventionMappingInput struct {
821 Role string `json:"role"`
822 Privilege *OperatorInterventionPrivilegeInput `json:"privilege"`
823 }
824
825
826 type DeleteOperatorInterventionPrivilegeResponse struct {
827
828 Errors []*OperatorInterventionErrorResponse `json:"errors,omitempty"`
829 }
830
831
832 type DeleteOperatorInterventionResponse struct {
833
834
835 Errors []*OperatorInterventionErrorResponse `json:"errors,omitempty"`
836 }
837
838 type DeleteOperatorInterventionRuleInput struct {
839 Privilege string `json:"privilege"`
840 Command string `json:"command"`
841 }
842
843 type DeleteOperatorInterventionRuleResponse struct {
844
845 Errors []*OperatorInterventionErrorResponse `json:"errors,omitempty"`
846 }
847
848 type Device struct {
849
850 Name string `json:"name"`
851 }
852
853
854 type EdgeOsSupportStatus struct {
855 Status string `json:"status"`
856 Message string `json:"message"`
857 }
858
859 func (EdgeOsSupportStatus) IsIStatus() {}
860 func (this EdgeOsSupportStatus) GetMessage() string { return this.Message }
861 func (this EdgeOsSupportStatus) GetStatus() string { return this.Status }
862
863
864 type EdgeResponsePayload struct {
865 StatusCode int `json:"statusCode"`
866 Message string `json:"message"`
867 }
868
869 type EdgeRoles struct {
870 EdgeSuperAdmin *EdgeSuperAdmin `json:"EDGE_SUPER_ADMIN,omitempty"`
871 }
872
873
874 type EnterpriseSettings struct {
875
876 EnterpriseUnitID *string `json:"enterpriseUnitId,omitempty"`
877
878 ConfigurationSetID *ConfigurationSetID `json:"configurationSetId,omitempty"`
879
880 ConfigurationSettings []*ConfigurationSettings `json:"configurationSettings,omitempty"`
881 }
882
883
884 type EnterpriseSettingsInput struct {
885
886 EnterpriseUnitID *string `json:"enterpriseUnitId,omitempty"`
887
888 ConfigurationSetID *ConfigurationSetIDInput `json:"configurationSetId,omitempty"`
889
890 ConfigurationSettings []*ConfigurationSettingsInput `json:"configurationSettings,omitempty"`
891 }
892
893
894 type Event struct {
895
896 EventEdgeID string `json:"eventEdgeID"`
897
898 Name string `json:"name"`
899
900 ClusterEdgeID string `json:"clusterEdgeID"`
901
902 TerminalID *string `json:"terminalID,omitempty"`
903
904 Annotations *string `json:"annotations,omitempty"`
905
906 InvolvedObject *InvolvedObject `json:"involvedObject"`
907
908 Reason string `json:"reason"`
909
910 Message string `json:"message"`
911
912 Status string `json:"status"`
913
914 Source string `json:"source"`
915
916 CreatedAt string `json:"createdAt"`
917 }
918
919
920 type FluxBootstrapResponse struct {
921
922 FluxBucket []string `json:"fluxBucket,omitempty"`
923
924 FluxKustomize []string `json:"fluxKustomize,omitempty"`
925 }
926
927
928 type FluxStatusInformation struct {
929
930 Name string `json:"name"`
931
932 Error bool `json:"error"`
933
934 LastUpdated string `json:"lastUpdated"`
935
936 Revision string `json:"revision"`
937
938 StatusMessage string `json:"statusMessage"`
939
940 Suspended bool `json:"suspended"`
941 }
942
943
944 type HelmChart struct {
945
946 Name string `json:"name"`
947
948 Description string `json:"description"`
949
950 Version string `json:"version"`
951
952 AppVersion string `json:"appVersion"`
953
954 Icon string `json:"icon"`
955
956 Keywords []string `json:"keywords,omitempty"`
957
958 Sources []string `json:"sources,omitempty"`
959
960 Urls []string `json:"urls,omitempty"`
961
962 Created string `json:"created"`
963 }
964
965
966 type HelmChartResponse struct {
967
968 Name string `json:"name"`
969
970 Versions []*string `json:"versions,omitempty"`
971 }
972
973
974 type HelmCondition struct {
975
976 LastTransitionTime *string `json:"lastTransitionTime,omitempty"`
977
978 Message *string `json:"message,omitempty"`
979
980 Reason *string `json:"reason,omitempty"`
981
982 Status *string `json:"status,omitempty"`
983
984 Type *string `json:"type,omitempty"`
985
986 Installed *bool `json:"installed,omitempty"`
987
988 Ready *bool `json:"ready,omitempty"`
989 }
990
991
992 type HelmConfig struct {
993
994 ConfigVals *string `json:"configVals,omitempty"`
995
996 ConfigSchema *string `json:"configSchema,omitempty"`
997 }
998
999
1000 type HelmRelease struct {
1001 Name string `json:"name"`
1002 HelmChart string `json:"helmChart"`
1003 LastActionTime string `json:"lastActionTime"`
1004 StatusType string `json:"statusType"`
1005 VersionInstalled string `json:"versionInstalled"`
1006 VersionRequested string `json:"versionRequested"`
1007 InstallCondition *HelmCondition `json:"installCondition,omitempty"`
1008 ReadyCondition *HelmCondition `json:"readyCondition,omitempty"`
1009 ConfigValues *string `json:"configValues,omitempty"`
1010 Namespace string `json:"namespace"`
1011 UpdateAvailable *bool `json:"updateAvailable,omitempty"`
1012 UpgradeableVersions []*HelmVersion `json:"upgradeableVersions,omitempty"`
1013 DowngradeableVersions []*HelmVersion `json:"downgradeableVersions,omitempty"`
1014 }
1015
1016
1017 type HelmReleaseStatus struct {
1018
1019 Name string `json:"name"`
1020
1021 LastActionTime string `json:"lastActionTime"`
1022
1023 StatusType string `json:"statusType"`
1024
1025 VersionInstalled string `json:"versionInstalled"`
1026
1027 VersionRequested string `json:"versionRequested"`
1028
1029 InstallCondition *HelmCondition `json:"installCondition,omitempty"`
1030
1031 ReadyCondition *HelmCondition `json:"readyCondition,omitempty"`
1032
1033 ConfigValues *string `json:"configValues,omitempty"`
1034 }
1035
1036
1037 type HelmRepository struct {
1038
1039 Name string `json:"name"`
1040
1041 URL string `json:"url"`
1042
1043 Secret string `json:"secret"`
1044
1045 Workload string `json:"workload"`
1046
1047 CreatedOn string `json:"createdOn"`
1048 }
1049
1050
1051 type HelmRepositoryInfo struct {
1052
1053 Readme *string `json:"readme,omitempty"`
1054
1055 Metadata []*string `json:"metadata,omitempty"`
1056 }
1057
1058
1059 type HelmSecrets struct {
1060
1061 SecretEdgeID string `json:"secretEdgeID"`
1062
1063 Name string `json:"name"`
1064
1065 CreatedAt string `json:"createdAt"`
1066
1067 UpdatedAt string `json:"updatedAt"`
1068 }
1069
1070
1071 type HelmStatus struct {
1072
1073 Status string `json:"status"`
1074
1075 Message string `json:"message"`
1076
1077 Pods []*Pods `json:"pods"`
1078 }
1079
1080
1081 type HelmVersion struct {
1082 Version string `json:"version"`
1083 }
1084
1085
1086 type HelmWorkload struct {
1087
1088 HelmEdgeID string `json:"helmEdgeID"`
1089
1090 Name string `json:"name"`
1091
1092 HelmChart string `json:"helmChart"`
1093
1094 HelmRepository string `json:"helmRepository"`
1095
1096 CreatedAt string `json:"createdAt"`
1097
1098 UpdatedAt string `json:"updatedAt"`
1099
1100 HelmChartVersion string `json:"helmChartVersion"`
1101
1102 ConfigValues *string `json:"configValues,omitempty"`
1103
1104 Namespace string `json:"namespace"`
1105
1106 ClusterEdgeID string `json:"clusterEdgeID"`
1107
1108 BannerEdgeID string `json:"bannerEdgeID"`
1109
1110 HelmRepoSecret string `json:"helmRepoSecret"`
1111
1112 InstalledBy *string `json:"installedBy,omitempty"`
1113
1114 UpdateAvailable *bool `json:"updateAvailable,omitempty"`
1115
1116 Deleted *bool `json:"deleted,omitempty"`
1117
1118 UpgradeableVersions []*HelmVersion `json:"upgradeableVersions,omitempty"`
1119
1120 DowngradeableVersions []*HelmVersion `json:"downgradeableVersions,omitempty"`
1121
1122 Secrets []*HelmSecrets `json:"secrets,omitempty"`
1123
1124 InstallationType *WorkloadInstallationType `json:"installationType,omitempty"`
1125
1126 Labels []*Label `json:"labels"`
1127
1128 Configmaps []*HelmWorkloadConfigmaps `json:"configmaps"`
1129
1130 WorkloadStatus *HelmStatus `json:"workloadStatus"`
1131 }
1132
1133 type HelmWorkloadConfigmaps struct {
1134
1135 HelmWorkloadConfigmapEdgeID string `json:"helmWorkloadConfigmapEdgeID"`
1136
1137 HelmEdgeID string `json:"helmEdgeID"`
1138
1139 Namespace string `json:"namespace"`
1140
1141 ConfigMap string `json:"config_map"`
1142
1143 CreatedAt string `json:"createdAt"`
1144
1145 UpdatedAt string `json:"updatedAt"`
1146
1147
1148 ClusterEdgeID string `json:"clusterEdgeID"`
1149 }
1150
1151
1152 type Hours struct {
1153
1154 Close *Close `json:"close,omitempty"`
1155
1156 Open *Open `json:"open,omitempty"`
1157 }
1158
1159
1160 type HoursInput struct {
1161
1162 Close *CloseInput `json:"close,omitempty"`
1163
1164 Open *OpenInput `json:"open,omitempty"`
1165 }
1166
1167 type InfraStatus struct {
1168 Message string `json:"message"`
1169 Status string `json:"status"`
1170 }
1171
1172 func (InfraStatus) IsIStatus() {}
1173 func (this InfraStatus) GetMessage() string { return this.Message }
1174 func (this InfraStatus) GetStatus() string { return this.Status }
1175
1176
1177 type InfraSupportStatus struct {
1178 Status string `json:"status"`
1179 Message string `json:"message"`
1180 }
1181
1182 func (InfraSupportStatus) IsIStatus() {}
1183 func (this InfraSupportStatus) GetMessage() string { return this.Message }
1184 func (this InfraSupportStatus) GetStatus() string { return this.Status }
1185
1186
1187 type InvolvedObject struct {
1188
1189 Kind string `json:"kind"`
1190
1191 Name string `json:"name"`
1192
1193 Namespace *string `json:"namespace,omitempty"`
1194 }
1195
1196
1197 type KustomizationStatusInformation struct {
1198
1199 Path string `json:"path"`
1200
1201 Source string `json:"source"`
1202
1203 FluxStatus *FluxStatusInformation `json:"fluxStatus"`
1204 }
1205
1206
1207 type Label struct {
1208
1209 LabelEdgeID string `json:"labelEdgeId"`
1210
1211 Key string `json:"key"`
1212
1213 Color string `json:"color"`
1214
1215 Visible bool `json:"visible"`
1216
1217 Editable bool `json:"editable"`
1218
1219 Unique bool `json:"unique"`
1220
1221 BannerEdgeID *string `json:"bannerEdgeId,omitempty"`
1222
1223 Description string `json:"description"`
1224
1225 Type string `json:"type"`
1226 }
1227
1228
1229 type LabelInput struct {
1230
1231 Key string `json:"key"`
1232
1233 Color string `json:"color"`
1234
1235 Visible bool `json:"visible"`
1236
1237 Editable bool `json:"editable"`
1238
1239 Unique bool `json:"unique"`
1240
1241 BannerEdgeID string `json:"bannerEdgeId"`
1242
1243 Description string `json:"description"`
1244
1245 Type string `json:"type"`
1246 }
1247
1248
1249 type LabelUpdateInput struct {
1250
1251 LabelEdgeID string `json:"labelEdgeId"`
1252
1253 LabelValues *LabelInput `json:"labelValues"`
1254 }
1255
1256
1257
1258 type LogClassification struct {
1259
1260 BannerEdgeID string `json:"bannerEdgeID"`
1261
1262 LogClassificationEdgeID string `json:"logClassificationEdgeID"`
1263
1264 Description string `json:"description"`
1265
1266 Pod string `json:"pod"`
1267
1268 Container string `json:"container"`
1269
1270 Type string `json:"type"`
1271
1272 Class string `json:"class"`
1273
1274 Pattern string `json:"pattern"`
1275 }
1276
1277
1278
1279 type LogClassificationLabel struct {
1280
1281 LogClassificationLabelEdgeID string `json:"logClassificationLabelEdgeID"`
1282
1283 ClassificationEdgeID string `json:"classificationEdgeID"`
1284
1285 BannerEdgeID string `json:"bannerEdgeID"`
1286
1287 LabelEdgeID string `json:"labelEdgeId"`
1288
1289 LabelName string `json:"labelName"`
1290
1291 Description string `json:"description"`
1292
1293 Pod string `json:"pod"`
1294
1295 Container string `json:"container"`
1296
1297 Type string `json:"type"`
1298
1299 Class string `json:"class"`
1300
1301 Pattern string `json:"pattern"`
1302 }
1303
1304
1305 type LogReplay struct {
1306
1307 LogReplayID string `json:"logReplayId"`
1308
1309 ClusterEdgeID string `json:"clusterEdgeId"`
1310
1311 Namespaces []string `json:"namespaces,omitempty"`
1312
1313 StartTime string `json:"startTime"`
1314
1315 EndTime string `json:"endTime"`
1316
1317 LogLevel string `json:"logLevel"`
1318
1319 Queued bool `json:"queued"`
1320
1321 Executed bool `json:"executed"`
1322
1323 Status string `json:"status"`
1324
1325 UpdatedAt string `json:"updatedAt"`
1326 }
1327
1328
1329 type LogReplayJob struct {
1330
1331 LogReplayID string `json:"logReplayId"`
1332
1333 Queued bool `json:"queued"`
1334
1335 Executed bool `json:"executed"`
1336
1337 Status string `json:"status"`
1338
1339 Jsonpath string `json:"jsonpath"`
1340
1341 Value string `json:"value"`
1342
1343 Missing bool `json:"missing"`
1344
1345 Name string `json:"name"`
1346
1347 UpdatedAt string `json:"updatedAt"`
1348 }
1349
1350
1351 type LoqRequest struct {
1352 Kind string `json:"kind"`
1353 Group string `json:"group"`
1354 Version string `json:"version"`
1355 Name *string `json:"name,omitempty"`
1356 Namespace *string `json:"namespace,omitempty"`
1357 GetClusterEdgeID bool `json:"getClusterEdgeID"`
1358 }
1359
1360
1361 type MachineTypeInfo struct {
1362 Name string `json:"name"`
1363 GuestCPUs int `json:"guestCPUs"`
1364 MemoryGb int `json:"memoryGB"`
1365 }
1366
1367 type Mutation struct {
1368 }
1369
1370
1371 type Namespace struct {
1372
1373 NamespaceEdgeID string `json:"namespaceEdgeId"`
1374
1375 BannerEdgeID string `json:"bannerEdgeId"`
1376
1377 Name string `json:"name"`
1378
1379 Workload WorkloadType `json:"workload"`
1380 }
1381
1382
1383 type NamespaceCreateInput struct {
1384
1385 BannerEdgeID string `json:"bannerEdgeId"`
1386
1387 Name string `json:"name"`
1388
1389 Workload WorkloadType `json:"workload"`
1390 }
1391
1392
1393 type NamespaceLogLevel struct {
1394
1395 Namespace string `json:"namespace"`
1396
1397 Level string `json:"level"`
1398 }
1399
1400
1401 type NamespaceLogLevelPayload struct {
1402
1403 Namespace *string `json:"namespace,omitempty"`
1404
1405 Level *string `json:"level,omitempty"`
1406 }
1407
1408
1409 type NewClusterLabelInput struct {
1410
1411 ClusterEdgeID string `json:"clusterEdgeId"`
1412
1413 LabelEdgeID string `json:"labelEdgeId"`
1414 }
1415
1416
1417 type NewTerminalLabelInput struct {
1418
1419 TerminalID string `json:"terminalId"`
1420
1421 LabelEdgeID string `json:"labelEdgeId"`
1422 }
1423
1424
1425 type NodeStatus struct {
1426 Name string `json:"name"`
1427 ExternalIP string `json:"externalIP"`
1428 InternalIP string `json:"internalIP"`
1429 Source *string `json:"source,omitempty"`
1430 Status *string `json:"status,omitempty"`
1431 }
1432
1433
1434 type NodeStatusInput struct {
1435 Name string `json:"name"`
1436 ExternalIP string `json:"externalIP"`
1437 InternalIP string `json:"internalIP"`
1438 Source *string `json:"source,omitempty"`
1439 Status *string `json:"status,omitempty"`
1440 }
1441
1442
1443
1444 type ObjStatusCondition struct {
1445 Message *string `json:"message,omitempty"`
1446 Reason *string `json:"reason,omitempty"`
1447 Type string `json:"type"`
1448 Status bool `json:"status"`
1449 LastTransitionTime *string `json:"lastTransitionTime,omitempty"`
1450 }
1451
1452
1453 type OiRoleMapping struct {
1454 Role Role `json:"role"`
1455 Privileges []*Privilege `json:"privileges,omitempty"`
1456 }
1457
1458
1459 type OktaAuthPayload struct {
1460
1461 Token string `json:"token"`
1462
1463 RefreshToken string `json:"refreshToken"`
1464
1465 FirstName *string `json:"firstName,omitempty"`
1466
1467 LastName *string `json:"lastName,omitempty"`
1468
1469 FullName string `json:"fullName"`
1470
1471 Username string `json:"username"`
1472
1473 Roles []string `json:"roles,omitempty"`
1474
1475
1476 Banners []*Banner `json:"banners,omitempty"`
1477
1478 Email string `json:"email"`
1479
1480 Valid bool `json:"valid"`
1481
1482 SessionTime float64 `json:"sessionTime"`
1483
1484 Organization string `json:"organization"`
1485 }
1486
1487
1488 type Open struct {
1489
1490 Day *string `json:"day,omitempty"`
1491
1492 Time *string `json:"time,omitempty"`
1493 }
1494
1495
1496 type OpenInput struct {
1497
1498 Day *string `json:"day,omitempty"`
1499
1500 Time *string `json:"time,omitempty"`
1501 }
1502
1503
1504 type OperatorInterventionCommandInput struct {
1505 Name string `json:"name"`
1506 }
1507
1508
1509
1510 type OperatorInterventionErrorResponse struct {
1511
1512 Type OperatorInterventionErrorType `json:"type"`
1513
1514 Command *string `json:"command,omitempty"`
1515
1516 Privilege *string `json:"privilege,omitempty"`
1517
1518 Role *string `json:"role,omitempty"`
1519 }
1520
1521
1522 type OperatorInterventionPrivilegeInput struct {
1523
1524 Name string `json:"name"`
1525 }
1526
1527 type PageInfo struct {
1528 PreviousCursor string `json:"previousCursor"`
1529 CurrentCursor string `json:"currentCursor"`
1530 NextCursor string `json:"nextCursor"`
1531 HasNextPage bool `json:"hasNextPage"`
1532 TotalCount int `json:"totalCount"`
1533 }
1534
1535
1536 type Pods struct {
1537
1538 Status string `json:"status"`
1539
1540 Name string `json:"name"`
1541
1542 Message string `json:"message"`
1543 }
1544
1545
1546 type Privilege struct {
1547 Name string `json:"name"`
1548 }
1549
1550 type Provider struct {
1551 ProviderSettingsID string `json:"providerSettingsID"`
1552 PinAttempts int `json:"pinAttempts"`
1553 PinExpire string `json:"pinExpire"`
1554 PinHistory int `json:"pinHistory"`
1555 PinLength int `json:"pinLength"`
1556 BarcodeExpire string `json:"barcodeExpire"`
1557 BarcodePrefix string `json:"barcodePrefix"`
1558 BarcodeLength int `json:"barcodeLength"`
1559 BcryptCost int `json:"bcryptCost"`
1560 ProfileExpire string `json:"profileExpire"`
1561 }
1562
1563 type ProviderInput struct {
1564 PinAttempts *int `json:"pinAttempts,omitempty"`
1565 PinExpire *string `json:"pinExpire,omitempty"`
1566 PinHistory *int `json:"pinHistory,omitempty"`
1567 PinLength *int `json:"pinLength,omitempty"`
1568 BarcodeExpire *string `json:"barcodeExpire,omitempty"`
1569 BarcodePrefix *string `json:"barcodePrefix,omitempty"`
1570 BarcodeLength *int `json:"barcodeLength,omitempty"`
1571 BcryptCost *int `json:"bcryptCost,omitempty"`
1572 ProfileExpire *string `json:"profileExpire,omitempty"`
1573 }
1574
1575
1576 type Query struct {
1577 }
1578
1579
1580 type RegistrationPayload struct {
1581
1582 Name string `json:"name"`
1583
1584 ClusterType string `json:"clusterType"`
1585
1586 BannerName string `json:"bannerName"`
1587
1588 BannerEdgeID *string `json:"bannerEdgeID,omitempty"`
1589
1590 Fleet string `json:"fleet"`
1591
1592 FleetVersion *string `json:"fleetVersion,omitempty"`
1593
1594 AutoUpdateEnabled *bool `json:"autoUpdateEnabled,omitempty"`
1595
1596 StoreInfo *StoreInfo `json:"storeInfo,omitempty"`
1597
1598 ClusterInfo *ClusterInfo `json:"clusterInfo,omitempty"`
1599 }
1600
1601 type RegistrationResponse struct {
1602
1603 ClusterEdgeID string `json:"clusterEdgeId"`
1604
1605 SiteID *string `json:"siteId,omitempty"`
1606 }
1607
1608
1609 type ReplicationStatus struct {
1610 Name string `json:"name"`
1611 Status string `json:"status"`
1612 }
1613
1614 type Rule struct {
1615 Privilege *Privilege `json:"privilege"`
1616 Commands []*Command `json:"commands,omitempty"`
1617 }
1618
1619
1620 type SearchClusterLabelInput struct {
1621
1622 ClusterEdgeID *string `json:"clusterEdgeId,omitempty"`
1623
1624 LabelEdgeID *string `json:"labelEdgeId,omitempty"`
1625 }
1626
1627
1628 type SearchTerminalLabelInput struct {
1629
1630 TerminalID *string `json:"terminalId,omitempty"`
1631
1632 LabelEdgeID *string `json:"labelEdgeId,omitempty"`
1633
1634 ClusterEdgeID *string `json:"clusterEdgeId,omitempty"`
1635 }
1636
1637
1638 type Secret struct {
1639 Name string `json:"name"`
1640 Description *string `json:"description,omitempty"`
1641 FullDescription *string `json:"fullDescription,omitempty"`
1642 Namespace string `json:"namespace"`
1643 CreatedOn string `json:"createdOn"`
1644 }
1645
1646
1647 type SecretManagerResponse struct {
1648
1649 Name string `json:"name"`
1650
1651 Project string `json:"project"`
1652
1653 Created *string `json:"created,omitempty"`
1654
1655 Updated *string `json:"updated,omitempty"`
1656
1657 Values []*KeyValuesOutput `json:"values,omitempty"`
1658
1659 Type *string `json:"type,omitempty"`
1660
1661 Workload *string `json:"workload,omitempty"`
1662
1663 Owner *string `json:"owner,omitempty"`
1664 }
1665
1666
1667 type ServiceAccount struct {
1668 ProjectID *string `json:"Project_Id,omitempty"`
1669 PrivateKeyID *string `json:"Private_Key_Id,omitempty"`
1670 PrivateKey *string `json:"Private_Key,omitempty"`
1671 ClientEmail *string `json:"Client_Email,omitempty"`
1672 TokenURI *string `json:"Token_Uri,omitempty"`
1673 }
1674
1675 type Site struct {
1676
1677 SiteName *string `json:"siteName,omitempty"`
1678
1679 Status *string `json:"status,omitempty"`
1680
1681 EnterpriseUnitName *string `json:"enterpriseUnitName,omitempty"`
1682
1683 Coordinates *CoordinatesInput `json:"coordinates,omitempty"`
1684
1685 Description *string `json:"description,omitempty"`
1686
1687 ReferenceID *string `json:"referenceId,omitempty"`
1688
1689 TimeZone *string `json:"timeZone,omitempty"`
1690
1691 ParentEnterpriseUnitID *string `json:"parentEnterpriseUnitId,omitempty"`
1692
1693 Locked *bool `json:"locked,omitempty"`
1694
1695 Currency *string `json:"currency,omitempty"`
1696
1697 Contact *ContactInput `json:"contact,omitempty"`
1698
1699 Contacts []*ContactsInput `json:"contacts,omitempty"`
1700
1701 Address *AddressInput `json:"address,omitempty"`
1702
1703 Dayparts []*DaypartsInput `json:"dayparts,omitempty"`
1704
1705 CustomAttributeSets []*CustomAttributeSetsInput `json:"customAttributeSets,omitempty"`
1706
1707 EnterpriseSettings []*EnterpriseSettingsInput `json:"enterpriseSettings,omitempty"`
1708
1709 Hours []*HoursInput `json:"hours,omitempty"`
1710 }
1711
1712
1713 type Store struct {
1714 Name string `json:"name"`
1715 ClusterEdgeID string `json:"clusterEdgeId"`
1716 ClusterType string `json:"clusterType"`
1717 BannerEdgeID string `json:"bannerEdgeId"`
1718 CreatedOn string `json:"createdOn"`
1719 Endpoint *string `json:"endpoint,omitempty"`
1720 IsClusterReady bool `json:"isClusterReady"`
1721 Status *ClusterStatus `json:"status,omitempty"`
1722 MachineType *string `json:"machineType,omitempty"`
1723 KubeVersion *string `json:"kubeVersion,omitempty"`
1724 }
1725
1726
1727 type StoreInfo struct {
1728
1729 StoreID *string `json:"storeID,omitempty"`
1730
1731 SiteID *string `json:"siteID,omitempty"`
1732
1733 CreateSite *bool `json:"createSite,omitempty"`
1734
1735 Latitude *float64 `json:"latitude,omitempty"`
1736
1737 Longitude *float64 `json:"longitude,omitempty"`
1738
1739 ReferenceID *string `json:"referenceID,omitempty"`
1740
1741 BslOrganization *string `json:"bslOrganization,omitempty"`
1742 }
1743
1744
1745 type StoreSiteInfo struct {
1746
1747 SiteName string `json:"siteName"`
1748
1749 Status string `json:"status"`
1750
1751 EnterpriseUnitName string `json:"enterpriseUnitName"`
1752
1753 Coordinates *Coordinates `json:"coordinates"`
1754
1755 Description *string `json:"description,omitempty"`
1756
1757 ID *string `json:"id,omitempty"`
1758
1759 ReferenceID *string `json:"referenceId,omitempty"`
1760
1761 TimeZone *string `json:"timeZone,omitempty"`
1762
1763 ParentEnterpriseUnitID *string `json:"parentEnterpriseUnitId,omitempty"`
1764
1765 OrganizationName *string `json:"organizationName,omitempty"`
1766
1767 Locked *bool `json:"locked,omitempty"`
1768
1769 LastModifiedOn *string `json:"lastModifiedOn,omitempty"`
1770
1771 DeactivatedOn *string `json:"deactivatedOn,omitempty"`
1772
1773 CreatedOn *string `json:"createdOn,omitempty"`
1774
1775 Currency *string `json:"currency,omitempty"`
1776
1777 Contact *Contact `json:"contact,omitempty"`
1778
1779 Contacts []*Contacts `json:"contacts,omitempty"`
1780
1781 Address *Address `json:"address,omitempty"`
1782
1783 Dayparts []*Dayparts `json:"dayparts,omitempty"`
1784
1785 CustomAttributeSets []*CustomAttributeSets `json:"customAttributeSets,omitempty"`
1786
1787 EnterpriseSettings []*EnterpriseSettings `json:"enterpriseSettings,omitempty"`
1788
1789 Hours []*Hours `json:"hours,omitempty"`
1790
1791 ConfigMapError []string `json:"configMapError,omitempty"`
1792 }
1793
1794
1795 type StoreStatusInfo struct {
1796
1797 Name string `json:"name"`
1798
1799 BannerEdgeID string `json:"bannerEdgeId"`
1800
1801 Status *ClusterStatus `json:"status,omitempty"`
1802
1803 KubeVersion *string `json:"kubeVersion,omitempty"`
1804
1805 KustomizationStatus []*KustomizationStatusInformation `json:"kustomizationStatus,omitempty"`
1806
1807 BucketStatus []*BucketStatusInformation `json:"bucketStatus,omitempty"`
1808 }
1809
1810
1811 type SupportStatus struct {
1812 InfraSupportStatus *InfraSupportStatus `json:"infraSupportStatus,omitempty"`
1813 EdgeOsSupportStatus *EdgeOsSupportStatus `json:"edgeOsSupportStatus,omitempty"`
1814 }
1815
1816 type Tenant struct {
1817 TenantEdgeID string `json:"tenantEdgeId"`
1818 TenantBSLId string `json:"tenantBSLId"`
1819 OrgName string `json:"orgName"`
1820 }
1821
1822 type TenantInput struct {
1823 TenantBSLId string `json:"tenantBSLId"`
1824 OrgName string `json:"orgName"`
1825 }
1826
1827
1828 type Terminal struct {
1829
1830 TerminalID string `json:"terminalId"`
1831
1832 ClusterEdgeID string `json:"clusterEdgeId"`
1833
1834 ClusterName string `json:"clusterName"`
1835
1836 Hostname string `json:"hostname"`
1837
1838 Lane *string `json:"lane,omitempty"`
1839
1840 Role TerminalRoleType `json:"role"`
1841
1842 Class *TerminalClassType `json:"class,omitempty"`
1843
1844 DiscoverDisks *TerminalDiscoverDisksType `json:"discoverDisks,omitempty"`
1845
1846 BootDisk *string `json:"bootDisk,omitempty"`
1847
1848 Interfaces []*TerminalInterface `json:"interfaces"`
1849
1850 PrimaryInterface *string `json:"primaryInterface,omitempty"`
1851
1852 ActivationCode *string `json:"activationCode,omitempty"`
1853
1854 Version string `json:"version"`
1855
1856 Disks []*TerminalDisk `json:"disks,omitempty"`
1857
1858 ExistingEfiPart *string `json:"existingEfiPart,omitempty"`
1859
1860 SwapEnabled bool `json:"swapEnabled"`
1861
1862 Labels []*TerminalLabel `json:"labels,omitempty"`
1863
1864 Status *TerminalStatus `json:"status,omitempty"`
1865
1866 ReplicationStatus *ReplicationStatus `json:"replicationStatus,omitempty"`
1867 }
1868
1869
1870 type TerminalAddress struct {
1871
1872 TerminalAddressID string `json:"terminalAddressId"`
1873
1874 IP *string `json:"ip,omitempty"`
1875
1876 PrefixLen int `json:"prefixLen"`
1877
1878 Family InetType `json:"family"`
1879
1880 TerminalInterfaceID string `json:"terminalInterfaceId"`
1881 }
1882
1883
1884 type TerminalAddressCreateInput struct {
1885
1886 IP *string `json:"ip,omitempty"`
1887
1888 PrefixLen int `json:"prefixLen"`
1889
1890 Family InetType `json:"family"`
1891 }
1892
1893 type TerminalAddressIDInput struct {
1894
1895 TerminalAddressID string `json:"terminalAddressId"`
1896
1897 TerminalAddressValues *TerminalAddressUpdateInput `json:"terminalAddressValues"`
1898 }
1899
1900 type TerminalAddressUpdateInput struct {
1901
1902 IP *string `json:"ip,omitempty"`
1903
1904 PrefixLen *int `json:"prefixLen,omitempty"`
1905
1906 Family *InetType `json:"family,omitempty"`
1907 }
1908
1909
1910 type TerminalBootstrap struct {
1911
1912 Configuration string `json:"configuration"`
1913 }
1914
1915
1916 type TerminalCreateInput struct {
1917
1918 Hostname *string `json:"hostname,omitempty"`
1919
1920 Lane *string `json:"lane,omitempty"`
1921
1922 Role TerminalRoleType `json:"role"`
1923
1924 Class *TerminalClassType `json:"class,omitempty"`
1925
1926 DiscoverDisks *TerminalDiscoverDisksType `json:"discoverDisks,omitempty"`
1927
1928 BootDisk *string `json:"bootDisk,omitempty"`
1929
1930 ClusterEdgeID string `json:"clusterEdgeId"`
1931
1932 Interfaces []*TerminalInterfaceCreateInput `json:"interfaces"`
1933
1934 Disks []*TerminalDiskCreateInput `json:"disks,omitempty"`
1935
1936 ExistingEfiPart *string `json:"existingEfiPart,omitempty"`
1937
1938 SwapEnabled *bool `json:"swapEnabled,omitempty"`
1939 }
1940
1941 type TerminalDevices struct {
1942
1943 Classes []*ClassDeviceMap `json:"classes,omitempty"`
1944 }
1945
1946 type TerminalDisk struct {
1947
1948 TerminalDiskID string `json:"terminalDiskId"`
1949
1950 TerminalID string `json:"terminalId"`
1951
1952 IncludeDisk bool `json:"includeDisk"`
1953
1954 ExpectEmpty bool `json:"expectEmpty"`
1955
1956 DevicePath string `json:"devicePath"`
1957
1958 UsePart bool `json:"usePart"`
1959 }
1960
1961 type TerminalDiskCreateInput struct {
1962
1963 IncludeDisk bool `json:"includeDisk"`
1964
1965 ExpectEmpty bool `json:"expectEmpty"`
1966
1967 DevicePath string `json:"devicePath"`
1968
1969 UsePart bool `json:"usePart"`
1970 }
1971
1972 type TerminalDiskIDInput struct {
1973
1974 TerminalDiskID string `json:"terminalDiskId"`
1975
1976 TerminalDiskValues *TerminalDiskUpdateInput `json:"terminalDiskValues"`
1977 }
1978
1979 type TerminalDiskUpdateInput struct {
1980
1981 IncludeDisk *bool `json:"includeDisk,omitempty"`
1982
1983 ExpectEmpty *bool `json:"expectEmpty,omitempty"`
1984
1985 DevicePath *string `json:"devicePath,omitempty"`
1986
1987 UsePart *bool `json:"usePart,omitempty"`
1988 }
1989
1990
1991 type TerminalIDInput struct {
1992
1993 TerminalID string `json:"terminalId"`
1994
1995 TerminalValues *TerminalUpdateInput `json:"terminalValues"`
1996 }
1997
1998
1999 type TerminalInterface struct {
2000
2001 TerminalInterfaceID string `json:"terminalInterfaceId"`
2002
2003 TerminalID string `json:"terminalId"`
2004
2005 MacAddress string `json:"macAddress"`
2006
2007 Dhcp4 bool `json:"dhcp4"`
2008
2009 Dhcp6 bool `json:"dhcp6"`
2010
2011 Addresses []*TerminalAddress `json:"addresses,omitempty"`
2012
2013 Gateway4 *string `json:"gateway4,omitempty"`
2014
2015 Gateway6 *string `json:"gateway6,omitempty"`
2016 }
2017
2018
2019 type TerminalInterfaceCreateInput struct {
2020
2021 MacAddress string `json:"macAddress"`
2022
2023 Dhcp4 bool `json:"dhcp4"`
2024
2025 Dhcp6 bool `json:"dhcp6"`
2026
2027 Addresses []*TerminalAddressCreateInput `json:"addresses,omitempty"`
2028
2029 Gateway4 *string `json:"gateway4,omitempty"`
2030
2031 Gateway6 *string `json:"gateway6,omitempty"`
2032 }
2033
2034 type TerminalInterfaceIDInput struct {
2035
2036 TerminalInterfaceID string `json:"terminalInterfaceId"`
2037
2038 TerminalInterfaceValues *TerminalInterfaceUpdateInput `json:"terminalInterfaceValues"`
2039 }
2040
2041 type TerminalInterfaceUpdateInput struct {
2042
2043 MacAddress *string `json:"macAddress,omitempty"`
2044
2045 Dhcp4 *bool `json:"dhcp4,omitempty"`
2046
2047 Dhcp6 *bool `json:"dhcp6,omitempty"`
2048
2049 Addresses []*TerminalAddressIDInput `json:"addresses,omitempty"`
2050
2051 Gateway4 *string `json:"gateway4,omitempty"`
2052
2053 Gateway6 *string `json:"gateway6,omitempty"`
2054 }
2055
2056 type TerminalLabel struct {
2057
2058 TerminalID string `json:"terminalId"`
2059
2060 LabelEdgeID string `json:"labelEdgeId"`
2061
2062 TerminalLabelEdgeID string `json:"terminalLabelEdgeId"`
2063
2064 Label *Label `json:"label"`
2065 }
2066
2067 type TerminalStatus struct {
2068 Message string `json:"message"`
2069 Status string `json:"status"`
2070 }
2071
2072 func (TerminalStatus) IsIStatus() {}
2073 func (this TerminalStatus) GetMessage() string { return this.Message }
2074 func (this TerminalStatus) GetStatus() string { return this.Status }
2075
2076 type TerminalUpdateInput struct {
2077
2078 Lane *string `json:"lane,omitempty"`
2079
2080 Role *TerminalRoleType `json:"role,omitempty"`
2081
2082 Class *TerminalClassType `json:"class,omitempty"`
2083
2084 DiscoverDisks *TerminalDiscoverDisksType `json:"discoverDisks,omitempty"`
2085
2086 BootDisk *string `json:"bootDisk,omitempty"`
2087
2088 Interfaces []*TerminalInterfaceIDInput `json:"interfaces,omitempty"`
2089
2090 PrimaryInterface *string `json:"primaryInterface,omitempty"`
2091
2092 Disks []*TerminalDiskIDInput `json:"disks,omitempty"`
2093
2094 ExistingEfiPart *string `json:"existingEfiPart,omitempty"`
2095
2096 SwapEnabled *bool `json:"swapEnabled,omitempty"`
2097 }
2098
2099
2100 type Totp struct {
2101 Code string `json:"code"`
2102 CreatedAt string `json:"createdAt"`
2103 ExpiresAt string `json:"expiresAt"`
2104 Duration int `json:"duration"`
2105 }
2106
2107
2108 type UIConfig struct {
2109 Issuer string `json:"issuer"`
2110 ClientID string `json:"clientId"`
2111 LdKey string `json:"ldKey"`
2112 GaTrackingID string `json:"gaTrackingId"`
2113 }
2114
2115 type UpdateBannerConfig struct {
2116 VncReadWriteAuthRequired *bool `json:"vncReadWriteAuthRequired,omitempty"`
2117 VncReadWriteAuthRequiredOverride *bool `json:"vncReadWriteAuthRequiredOverride,omitempty"`
2118 VncReadAuthRequired *bool `json:"vncReadAuthRequired,omitempty"`
2119 VncReadAuthRequiredOverride *bool `json:"vncReadAuthRequiredOverride,omitempty"`
2120 }
2121
2122
2123
2124 type UpdateClassificationInput struct {
2125
2126 Description *string `json:"description,omitempty"`
2127
2128 Pod *string `json:"pod,omitempty"`
2129
2130 Container *string `json:"container,omitempty"`
2131
2132 Type *string `json:"type,omitempty"`
2133
2134 Class *LogClassSelection `json:"class,omitempty"`
2135
2136 Pattern *string `json:"pattern,omitempty"`
2137 }
2138
2139 type UpdateClusterConfig struct {
2140 AcRelay *bool `json:"acRelay,omitempty"`
2141 PxeEnabled *bool `json:"pxeEnabled,omitempty"`
2142 BootstrapAck *bool `json:"bootstrapAck,omitempty"`
2143 VpnEnabled *bool `json:"vpnEnabled,omitempty"`
2144 ThickPos *bool `json:"thickPos,omitempty"`
2145 EgressGatewayEnabled *bool `json:"egressGatewayEnabled,omitempty"`
2146 GatewayRateLimitingEnabled *bool `json:"gatewayRateLimitingEnabled,omitempty"`
2147 UplinkRateLimit *string `json:"uplinkRateLimit,omitempty"`
2148 DownlinkRateLimit *string `json:"downlinkRateLimit,omitempty"`
2149 ClusterLogLevel *string `json:"clusterLogLevel,omitempty"`
2150 NamespaceLogLevels []*NamespaceLogLevelPayload `json:"namespaceLogLevels,omitempty"`
2151 MaximumLanOutageHours *int `json:"maximumLanOutageHours,omitempty"`
2152 AutoUpdateEnabled *bool `json:"autoUpdateEnabled,omitempty"`
2153
2154 LinkerdIdentityIssuerCertDuration *int `json:"linkerdIdentityIssuerCertDuration,omitempty"`
2155
2156 LinkerdIdentityIssuerCertRenewBefore *int `json:"linkerdIdentityIssuerCertRenewBefore,omitempty"`
2157 VncReadWriteAuthRequired *bool `json:"vncReadWriteAuthRequired,omitempty"`
2158 VncReadAuthRequired *bool `json:"vncReadAuthRequired,omitempty"`
2159 }
2160
2161
2162 type UpdateLogReplayPayload struct {
2163
2164 Queued *bool `json:"queued,omitempty"`
2165
2166 Executed *bool `json:"executed,omitempty"`
2167
2168 Status *LogReplayStatus `json:"status,omitempty"`
2169 }
2170
2171 type UpdateNetworkServiceInfo struct {
2172
2173 NetworkServiceID string `json:"networkServiceId"`
2174
2175 IP string `json:"ip"`
2176
2177 Family string `json:"family"`
2178
2179 Priority *int `json:"priority,omitempty"`
2180 }
2181
2182
2183 type UpdateOperatorInterventionRoleMappingInput struct {
2184
2185 Role string `json:"role"`
2186
2187 Privileges []*OperatorInterventionPrivilegeInput `json:"privileges,omitempty"`
2188 }
2189
2190
2191 type UpdateOperatorInterventionRoleMappingResponse struct {
2192
2193
2194
2195 Errors []*OperatorInterventionErrorResponse `json:"errors,omitempty"`
2196 }
2197
2198 type UpdateOperatorInterventionRuleInput struct {
2199 Privilege *OperatorInterventionPrivilegeInput `json:"privilege"`
2200 Commands []*OperatorInterventionCommandInput `json:"commands,omitempty"`
2201 }
2202
2203 type UpdateOperatorInterventionRuleResponse struct {
2204
2205 Errors []*OperatorInterventionErrorResponse `json:"errors,omitempty"`
2206 }
2207
2208
2209 type UpdateUser struct {
2210
2211 Username string `json:"username" validate:"required,alphanum,min=3,max=30"`
2212
2213 FamilyName *string `json:"familyName,omitempty" validate:"alphanum,min=3,max=30"`
2214
2215 FullName *string `json:"fullName,omitempty" validate:"alphanum,min=3,max=30"`
2216
2217 GivenName *string `json:"givenName,omitempty" validate:"alphanum,min=3,max=30"`
2218
2219 Status *string `json:"status,omitempty" validate:"alphanum"`
2220
2221 Email *string `json:"email,omitempty" validate:"email"`
2222
2223 TelephoneNumber *string `json:"telephoneNumber,omitempty" validate:"number"`
2224
2225 Address *UpdateUserAddress `json:"address,omitempty"`
2226 }
2227
2228
2229 type UpdateUserAddress struct {
2230
2231 City *string `json:"city,omitempty" validate:"alphanum,min=3,max=30"`
2232
2233 Country *string `json:"country,omitempty" validate:"alphanum,min=3,max=30"`
2234
2235 PostalCode *string `json:"postalCode,omitempty" validate:"alphanum,min=3,max=30"`
2236
2237 State *string `json:"state,omitempty" validate:"alphanum,min=3,max=30"`
2238
2239 Street *string `json:"street,omitempty" validate:"alphanum,min=3,max=30"`
2240 }
2241
2242
2243 type User struct {
2244 Username string `json:"username"`
2245 FamilyName string `json:"familyName"`
2246 GivenName string `json:"givenName"`
2247 FullName string `json:"fullName"`
2248 Email *string `json:"email,omitempty"`
2249 Status string `json:"status"`
2250 UserData *UserData `json:"userData,omitempty"`
2251 }
2252
2253
2254 type UserData struct {
2255 AssignedBanners []*BannerInfo `json:"assignedBanners,omitempty"`
2256 Roles []string `json:"roles,omitempty"`
2257 }
2258
2259
2260 type VirtualMachine struct {
2261
2262 VirtualMachineID string `json:"virtualMachineId"`
2263
2264 Namespace string `json:"namespace"`
2265
2266 ClusterEdgeID string `json:"clusterEdgeId"`
2267
2268 ClusterName string `json:"clusterName"`
2269
2270 Hostname string `json:"hostname"`
2271
2272 TargetPowerState bool `json:"targetPowerState"`
2273
2274 Cpus int `json:"cpus"`
2275
2276 Memory string `json:"memory"`
2277
2278 MachineType MachineType `json:"machineType"`
2279
2280 Disks []*VirtualMachineDisk `json:"disks,omitempty"`
2281 }
2282
2283
2284 type VirtualMachineCreateInput struct {
2285
2286 NamespaceEdgeID string `json:"namespaceEdgeId"`
2287
2288 ClusterEdgeID string `json:"clusterEdgeId"`
2289
2290 Hostname string `json:"hostname"`
2291
2292 TargetPowerState *bool `json:"targetPowerState,omitempty"`
2293
2294 Cpus *int `json:"cpus,omitempty"`
2295
2296 Memory *string `json:"memory,omitempty"`
2297
2298 MachineType *MachineType `json:"machineType,omitempty"`
2299
2300 Disks []*VirtualMachineDiskCreateInput `json:"disks,omitempty"`
2301 }
2302
2303
2304 type VirtualMachineDisk struct {
2305
2306 DiskID string `json:"diskId"`
2307
2308 VirtualMachineID string `json:"virtualMachineId"`
2309
2310 Type DiskType `json:"type"`
2311
2312 Bus BusType `json:"bus"`
2313
2314 BootOrder int `json:"bootOrder"`
2315
2316 Size string `json:"size"`
2317
2318 ContainerImageURL string `json:"containerImageUrl"`
2319 }
2320
2321
2322 type VirtualMachineDiskCreateInput struct {
2323
2324 Type *DiskType `json:"type,omitempty"`
2325
2326 Bus *BusType `json:"bus,omitempty"`
2327
2328 BootOrder int `json:"bootOrder"`
2329
2330 Size *string `json:"size,omitempty"`
2331
2332 ContainerImageURL *string `json:"containerImageUrl,omitempty"`
2333 }
2334
2335
2336 type VirtualMachineDiskIDInput struct {
2337
2338 DiskID string `json:"diskId"`
2339
2340 VirtualMachineDiskValues *VirtualMachineDiskUpdateInput `json:"virtualMachineDiskValues"`
2341 }
2342
2343
2344 type VirtualMachineDiskUpdateInput struct {
2345
2346 Type *DiskType `json:"type,omitempty"`
2347
2348 Bus *BusType `json:"bus,omitempty"`
2349
2350 BootOrder *int `json:"bootOrder,omitempty"`
2351
2352 Size *string `json:"size,omitempty"`
2353
2354 ContainerImageURL *string `json:"containerImageUrl,omitempty"`
2355 }
2356
2357
2358 type VirtualMachineIDInput struct {
2359
2360 VirtualMachineID string `json:"virtualMachineId"`
2361
2362 VirtualMachineValues *VirtualMachineUpdateInput `json:"virtualMachineValues"`
2363 }
2364
2365
2366 type VirtualMachineMetadataInput struct {
2367
2368 Name string `json:"name"`
2369
2370 Namespace string `json:"namespace"`
2371 }
2372
2373 type VirtualMachineStatus struct {
2374 Name string `json:"name"`
2375 Namespace string `json:"namespace"`
2376 ClusterEdgeID string `json:"clusterEdgeId"`
2377 Conditions []*ObjStatusCondition `json:"conditions,omitempty"`
2378 Node *string `json:"node,omitempty"`
2379 HelmEdgeID *string `json:"helmEdgeId,omitempty"`
2380 }
2381
2382
2383 type VirtualMachineUpdateInput struct {
2384
2385 TargetPowerState *bool `json:"targetPowerState,omitempty"`
2386
2387 Cpus *int `json:"cpus,omitempty"`
2388
2389 Memory *string `json:"memory,omitempty"`
2390
2391 MachineType *MachineType `json:"machineType,omitempty"`
2392
2393 Disks []*VirtualMachineDiskIDInput `json:"disks,omitempty"`
2394 }
2395
2396
2397 type WorkloadLabelInput struct {
2398
2399 HelmEdgeID string `json:"helmEdgeId"`
2400
2401 LabelEdgeID string `json:"labelEdgeId"`
2402 }
2403
2404
2405 type HelmConfigSchemaParams struct {
2406
2407 SecretName string `json:"secretName"`
2408
2409 BannerEdgeID string `json:"bannerEdgeId"`
2410
2411 ChartName string `json:"chartName"`
2412
2413 ChartVersion string `json:"chartVersion"`
2414 }
2415
2416
2417 type HelmReleasePayload struct {
2418
2419 Name string `json:"name"`
2420
2421 Secret string `json:"secret"`
2422
2423 HelmRepository string `json:"helmRepository"`
2424
2425 HelmChart string `json:"helmChart"`
2426
2427 Version string `json:"version"`
2428
2429 ClusterEdgeID *string `json:"clusterEdgeId,omitempty"`
2430
2431 BannerEdgeID *string `json:"bannerEdgeId,omitempty"`
2432
2433 Namespace string `json:"namespace"`
2434
2435 ConfigValues *string `json:"configValues,omitempty"`
2436
2437 Secrets []string `json:"secrets,omitempty"`
2438
2439 InstallationType *WorkloadInstallationType `json:"installationType,omitempty"`
2440
2441 Labels []string `json:"labels,omitempty"`
2442
2443 InjectConfigmaps []InjectableConfigmaps `json:"injectConfigmaps,omitempty"`
2444 }
2445
2446
2447 type HTTPGet struct {
2448 Path string `json:"path"`
2449 Port int `json:"port"`
2450 Scheme string `json:"scheme"`
2451 }
2452
2453
2454 type KeyValues struct {
2455 Key string `json:"key"`
2456 Value string `json:"value"`
2457 }
2458
2459
2460 type KeyValuesOutput struct {
2461 Key string `json:"key"`
2462 Value string `json:"value"`
2463 }
2464
2465
2466 type LivenessReadinessResponse struct {
2467 ReadinessProbe *Probe `json:"readinessProbe,omitempty"`
2468 LivenessProbe *Probe `json:"livenessProbe,omitempty"`
2469 PodStatus []*PodStatus `json:"podStatus,omitempty"`
2470 }
2471
2472
2473 type PodCondition struct {
2474 LastProbeTime *string `json:"lastProbeTime,omitempty"`
2475 LastTransitionTime string `json:"lastTransitionTime"`
2476 Status string `json:"status"`
2477 Type string `json:"type"`
2478 }
2479
2480
2481 type PodStatus struct {
2482 Name string `json:"name"`
2483 RestartCount int `json:"restartCount"`
2484 Ready bool `json:"ready"`
2485 Started bool `json:"started"`
2486 Conditions []*PodCondition `json:"conditions,omitempty"`
2487 }
2488
2489
2490 type Probe struct {
2491 FailureThreshold string `json:"failureThreshold"`
2492 HTTPGet *HTTPGet `json:"httpGet,omitempty"`
2493 PeriodSeconds int `json:"periodSeconds"`
2494 SuccessThreshold int `json:"successThreshold"`
2495 TimeoutSeconds int `json:"timeoutSeconds"`
2496 }
2497
2498
2499 type ValidateHelmConfigParams struct {
2500
2501 SecretName string `json:"secretName"`
2502
2503 BannerEdgeID string `json:"bannerEdgeId"`
2504
2505 ChartName string `json:"chartName"`
2506
2507 ChartVersion string `json:"chartVersion"`
2508
2509 HelmConfig string `json:"helmConfig"`
2510 }
2511
2512
2513 type ActionStatus string
2514
2515 const (
2516
2517 ActionStatusSuccess ActionStatus = "SUCCESS"
2518
2519 ActionStatusFailed ActionStatus = "FAILED"
2520
2521 ActionStatusPartialfailure ActionStatus = "PARTIALFAILURE"
2522 )
2523
2524 var AllActionStatus = []ActionStatus{
2525 ActionStatusSuccess,
2526 ActionStatusFailed,
2527 ActionStatusPartialfailure,
2528 }
2529
2530 func (e ActionStatus) IsValid() bool {
2531 switch e {
2532 case ActionStatusSuccess, ActionStatusFailed, ActionStatusPartialfailure:
2533 return true
2534 }
2535 return false
2536 }
2537
2538 func (e ActionStatus) String() string {
2539 return string(e)
2540 }
2541
2542 func (e *ActionStatus) UnmarshalGQL(v interface{}) error {
2543 str, ok := v.(string)
2544 if !ok {
2545 return fmt.Errorf("enums must be strings")
2546 }
2547
2548 *e = ActionStatus(str)
2549 if !e.IsValid() {
2550 return fmt.Errorf("%s is not a valid ActionStatus", str)
2551 }
2552 return nil
2553 }
2554
2555 func (e ActionStatus) MarshalGQL(w io.Writer) {
2556 fmt.Fprint(w, strconv.Quote(e.String()))
2557 }
2558
2559
2560 type AuthProvider string
2561
2562 const (
2563 AuthProviderBsl AuthProvider = "bsl"
2564 AuthProviderOkta AuthProvider = "okta"
2565 )
2566
2567 var AllAuthProvider = []AuthProvider{
2568 AuthProviderBsl,
2569 AuthProviderOkta,
2570 }
2571
2572 func (e AuthProvider) IsValid() bool {
2573 switch e {
2574 case AuthProviderBsl, AuthProviderOkta:
2575 return true
2576 }
2577 return false
2578 }
2579
2580 func (e AuthProvider) String() string {
2581 return string(e)
2582 }
2583
2584 func (e *AuthProvider) UnmarshalGQL(v interface{}) error {
2585 str, ok := v.(string)
2586 if !ok {
2587 return fmt.Errorf("enums must be strings")
2588 }
2589
2590 *e = AuthProvider(str)
2591 if !e.IsValid() {
2592 return fmt.Errorf("%s is not a valid AuthProvider", str)
2593 }
2594 return nil
2595 }
2596
2597 func (e AuthProvider) MarshalGQL(w io.Writer) {
2598 fmt.Fprint(w, strconv.Quote(e.String()))
2599 }
2600
2601
2602 type BusType string
2603
2604 const (
2605 BusTypeSata BusType = "sata"
2606 BusTypeVirtio BusType = "virtio"
2607 )
2608
2609 var AllBusType = []BusType{
2610 BusTypeSata,
2611 BusTypeVirtio,
2612 }
2613
2614 func (e BusType) IsValid() bool {
2615 switch e {
2616 case BusTypeSata, BusTypeVirtio:
2617 return true
2618 }
2619 return false
2620 }
2621
2622 func (e BusType) String() string {
2623 return string(e)
2624 }
2625
2626 func (e *BusType) UnmarshalGQL(v interface{}) error {
2627 str, ok := v.(string)
2628 if !ok {
2629 return fmt.Errorf("enums must be strings")
2630 }
2631
2632 *e = BusType(str)
2633 if !e.IsValid() {
2634 return fmt.Errorf("%s is not a valid BusType", str)
2635 }
2636 return nil
2637 }
2638
2639 func (e BusType) MarshalGQL(w io.Writer) {
2640 fmt.Fprint(w, strconv.Quote(e.String()))
2641 }
2642
2643
2644 type ClusterSecretType string
2645
2646 const (
2647 ClusterSecretTypeBreakglass ClusterSecretType = "breakglass"
2648 ClusterSecretTypeGrub ClusterSecretType = "grub"
2649 )
2650
2651 var AllClusterSecretType = []ClusterSecretType{
2652 ClusterSecretTypeBreakglass,
2653 ClusterSecretTypeGrub,
2654 }
2655
2656 func (e ClusterSecretType) IsValid() bool {
2657 switch e {
2658 case ClusterSecretTypeBreakglass, ClusterSecretTypeGrub:
2659 return true
2660 }
2661 return false
2662 }
2663
2664 func (e ClusterSecretType) String() string {
2665 return string(e)
2666 }
2667
2668 func (e *ClusterSecretType) UnmarshalGQL(v interface{}) error {
2669 str, ok := v.(string)
2670 if !ok {
2671 return fmt.Errorf("enums must be strings")
2672 }
2673
2674 *e = ClusterSecretType(str)
2675 if !e.IsValid() {
2676 return fmt.Errorf("%s is not a valid ClusterSecretType", str)
2677 }
2678 return nil
2679 }
2680
2681 func (e ClusterSecretType) MarshalGQL(w io.Writer) {
2682 fmt.Fprint(w, strconv.Quote(e.String()))
2683 }
2684
2685
2686 type DiskType string
2687
2688 const (
2689 DiskTypeCdrom DiskType = "cdrom"
2690 DiskTypeDisk DiskType = "disk"
2691 )
2692
2693 var AllDiskType = []DiskType{
2694 DiskTypeCdrom,
2695 DiskTypeDisk,
2696 }
2697
2698 func (e DiskType) IsValid() bool {
2699 switch e {
2700 case DiskTypeCdrom, DiskTypeDisk:
2701 return true
2702 }
2703 return false
2704 }
2705
2706 func (e DiskType) String() string {
2707 return string(e)
2708 }
2709
2710 func (e *DiskType) UnmarshalGQL(v interface{}) error {
2711 str, ok := v.(string)
2712 if !ok {
2713 return fmt.Errorf("enums must be strings")
2714 }
2715
2716 *e = DiskType(str)
2717 if !e.IsValid() {
2718 return fmt.Errorf("%s is not a valid DiskType", str)
2719 }
2720 return nil
2721 }
2722
2723 func (e DiskType) MarshalGQL(w io.Writer) {
2724 fmt.Fprint(w, strconv.Quote(e.String()))
2725 }
2726
2727
2728 type EdgeBannerAdmin string
2729
2730 const (
2731 EdgeBannerAdminNepEnterpriseViewer EdgeBannerAdmin = "NEP_ENTERPRISE_VIEWER"
2732 EdgeBannerAdminNepEnterpriseGrantAdministrator EdgeBannerAdmin = "NEP_ENTERPRISE_GRANT_ADMINISTRATOR"
2733 EdgeBannerAdminNepIDEntityViewer EdgeBannerAdmin = "NEP_IDENTITY_VIEWER"
2734 EdgeBannerAdminNepOrganizationViewer EdgeBannerAdmin = "NEP_ORGANIZATION_VIEWER"
2735 EdgeBannerAdminSiteCreate EdgeBannerAdmin = "SITE_CREATE"
2736 EdgeBannerAdminSiteRead EdgeBannerAdmin = "SITE_READ"
2737 EdgeBannerAdminSiteUpdate EdgeBannerAdmin = "SITE_UPDATE"
2738 EdgeBannerAdminNepTokenExchanger EdgeBannerAdmin = "NEP_TOKEN_EXCHANGER"
2739 EdgeBannerAdminNepIDEntityGroupAddMembers EdgeBannerAdmin = "NEP_IDENTITY_GROUP_ADD_MEMBERS"
2740 EdgeBannerAdminNepIDEntityGroupRemoveMembers EdgeBannerAdmin = "NEP_IDENTITY_GROUP_REMOVE_MEMBERS"
2741 )
2742
2743 var AllEdgeBannerAdmin = []EdgeBannerAdmin{
2744 EdgeBannerAdminNepEnterpriseViewer,
2745 EdgeBannerAdminNepEnterpriseGrantAdministrator,
2746 EdgeBannerAdminNepIDEntityViewer,
2747 EdgeBannerAdminNepOrganizationViewer,
2748 EdgeBannerAdminSiteCreate,
2749 EdgeBannerAdminSiteRead,
2750 EdgeBannerAdminSiteUpdate,
2751 EdgeBannerAdminNepTokenExchanger,
2752 EdgeBannerAdminNepIDEntityGroupAddMembers,
2753 EdgeBannerAdminNepIDEntityGroupRemoveMembers,
2754 }
2755
2756 func (e EdgeBannerAdmin) IsValid() bool {
2757 switch e {
2758 case EdgeBannerAdminNepEnterpriseViewer, EdgeBannerAdminNepEnterpriseGrantAdministrator, EdgeBannerAdminNepIDEntityViewer, EdgeBannerAdminNepOrganizationViewer, EdgeBannerAdminSiteCreate, EdgeBannerAdminSiteRead, EdgeBannerAdminSiteUpdate, EdgeBannerAdminNepTokenExchanger, EdgeBannerAdminNepIDEntityGroupAddMembers, EdgeBannerAdminNepIDEntityGroupRemoveMembers:
2759 return true
2760 }
2761 return false
2762 }
2763
2764 func (e EdgeBannerAdmin) String() string {
2765 return string(e)
2766 }
2767
2768 func (e *EdgeBannerAdmin) UnmarshalGQL(v interface{}) error {
2769 str, ok := v.(string)
2770 if !ok {
2771 return fmt.Errorf("enums must be strings")
2772 }
2773
2774 *e = EdgeBannerAdmin(str)
2775 if !e.IsValid() {
2776 return fmt.Errorf("%s is not a valid EDGE_BANNER_ADMIN", str)
2777 }
2778 return nil
2779 }
2780
2781 func (e EdgeBannerAdmin) MarshalGQL(w io.Writer) {
2782 fmt.Fprint(w, strconv.Quote(e.String()))
2783 }
2784
2785
2786 type EdgeBannerOperator string
2787
2788 const (
2789 EdgeBannerOperatorNepEnterpriseViewer EdgeBannerOperator = "NEP_ENTERPRISE_VIEWER"
2790 EdgeBannerOperatorNepEnterpriseGrantViewer EdgeBannerOperator = "NEP_ENTERPRISE_GRANT_VIEWER"
2791 EdgeBannerOperatorNepIDEntityViewer EdgeBannerOperator = "NEP_IDENTITY_VIEWER"
2792 EdgeBannerOperatorNepOrganizationViewer EdgeBannerOperator = "NEP_ORGANIZATION_VIEWER"
2793 EdgeBannerOperatorSiteCreate EdgeBannerOperator = "SITE_CREATE"
2794 EdgeBannerOperatorSiteRead EdgeBannerOperator = "SITE_READ"
2795 EdgeBannerOperatorSiteUpdate EdgeBannerOperator = "SITE_UPDATE"
2796 EdgeBannerOperatorNepTokenExchanger EdgeBannerOperator = "NEP_TOKEN_EXCHANGER"
2797 )
2798
2799 var AllEdgeBannerOperator = []EdgeBannerOperator{
2800 EdgeBannerOperatorNepEnterpriseViewer,
2801 EdgeBannerOperatorNepEnterpriseGrantViewer,
2802 EdgeBannerOperatorNepIDEntityViewer,
2803 EdgeBannerOperatorNepOrganizationViewer,
2804 EdgeBannerOperatorSiteCreate,
2805 EdgeBannerOperatorSiteRead,
2806 EdgeBannerOperatorSiteUpdate,
2807 EdgeBannerOperatorNepTokenExchanger,
2808 }
2809
2810 func (e EdgeBannerOperator) IsValid() bool {
2811 switch e {
2812 case EdgeBannerOperatorNepEnterpriseViewer, EdgeBannerOperatorNepEnterpriseGrantViewer, EdgeBannerOperatorNepIDEntityViewer, EdgeBannerOperatorNepOrganizationViewer, EdgeBannerOperatorSiteCreate, EdgeBannerOperatorSiteRead, EdgeBannerOperatorSiteUpdate, EdgeBannerOperatorNepTokenExchanger:
2813 return true
2814 }
2815 return false
2816 }
2817
2818 func (e EdgeBannerOperator) String() string {
2819 return string(e)
2820 }
2821
2822 func (e *EdgeBannerOperator) UnmarshalGQL(v interface{}) error {
2823 str, ok := v.(string)
2824 if !ok {
2825 return fmt.Errorf("enums must be strings")
2826 }
2827
2828 *e = EdgeBannerOperator(str)
2829 if !e.IsValid() {
2830 return fmt.Errorf("%s is not a valid EDGE_BANNER_OPERATOR", str)
2831 }
2832 return nil
2833 }
2834
2835 func (e EdgeBannerOperator) MarshalGQL(w io.Writer) {
2836 fmt.Fprint(w, strconv.Quote(e.String()))
2837 }
2838
2839
2840 type EdgeBannerViewer string
2841
2842 const (
2843 EdgeBannerViewerNepEnterpriseViewer EdgeBannerViewer = "NEP_ENTERPRISE_VIEWER"
2844 EdgeBannerViewerNepEnterpriseGrantViewer EdgeBannerViewer = "NEP_ENTERPRISE_GRANT_VIEWER"
2845 EdgeBannerViewerNepIDEntityViewer EdgeBannerViewer = "NEP_IDENTITY_VIEWER"
2846 EdgeBannerViewerNepOrganizationViewer EdgeBannerViewer = "NEP_ORGANIZATION_VIEWER"
2847 EdgeBannerViewerNepTokenExchanger EdgeBannerViewer = "NEP_TOKEN_EXCHANGER"
2848 EdgeBannerViewerSiteRead EdgeBannerViewer = "SITE_READ"
2849 )
2850
2851 var AllEdgeBannerViewer = []EdgeBannerViewer{
2852 EdgeBannerViewerNepEnterpriseViewer,
2853 EdgeBannerViewerNepEnterpriseGrantViewer,
2854 EdgeBannerViewerNepIDEntityViewer,
2855 EdgeBannerViewerNepOrganizationViewer,
2856 EdgeBannerViewerNepTokenExchanger,
2857 EdgeBannerViewerSiteRead,
2858 }
2859
2860 func (e EdgeBannerViewer) IsValid() bool {
2861 switch e {
2862 case EdgeBannerViewerNepEnterpriseViewer, EdgeBannerViewerNepEnterpriseGrantViewer, EdgeBannerViewerNepIDEntityViewer, EdgeBannerViewerNepOrganizationViewer, EdgeBannerViewerNepTokenExchanger, EdgeBannerViewerSiteRead:
2863 return true
2864 }
2865 return false
2866 }
2867
2868 func (e EdgeBannerViewer) String() string {
2869 return string(e)
2870 }
2871
2872 func (e *EdgeBannerViewer) UnmarshalGQL(v interface{}) error {
2873 str, ok := v.(string)
2874 if !ok {
2875 return fmt.Errorf("enums must be strings")
2876 }
2877
2878 *e = EdgeBannerViewer(str)
2879 if !e.IsValid() {
2880 return fmt.Errorf("%s is not a valid EDGE_BANNER_VIEWER", str)
2881 }
2882 return nil
2883 }
2884
2885 func (e EdgeBannerViewer) MarshalGQL(w io.Writer) {
2886 fmt.Fprint(w, strconv.Quote(e.String()))
2887 }
2888
2889
2890 type EdgeEngineeringLeads string
2891
2892 const (
2893 EdgeEngineeringLeadsNepEnterpriseAdministrator EdgeEngineeringLeads = "NEP_ENTERPRISE_ADMINISTRATOR"
2894 EdgeEngineeringLeadsNepEnterpriseGrantAdministrator EdgeEngineeringLeads = "NEP_ENTERPRISE_GRANT_ADMINISTRATOR"
2895 EdgeEngineeringLeadsNepRolegrantAdministrator EdgeEngineeringLeads = "NEP_ROLEGRANT_ADMINISTRATOR"
2896 EdgeEngineeringLeadsNepIDEntityAdministrator EdgeEngineeringLeads = "NEP_IDENTITY_ADMINISTRATOR"
2897 EdgeEngineeringLeadsOrganizationInternalAdministrator EdgeEngineeringLeads = "ORGANIZATION_INTERNAL_ADMINISTRATOR"
2898 EdgeEngineeringLeadsSiteCreate EdgeEngineeringLeads = "SITE_CREATE"
2899 EdgeEngineeringLeadsSiteRead EdgeEngineeringLeads = "SITE_READ"
2900 EdgeEngineeringLeadsSiteUpdate EdgeEngineeringLeads = "SITE_UPDATE"
2901 EdgeEngineeringLeadsNepTokenExchanger EdgeEngineeringLeads = "NEP_TOKEN_EXCHANGER"
2902 )
2903
2904 var AllEdgeEngineeringLeads = []EdgeEngineeringLeads{
2905 EdgeEngineeringLeadsNepEnterpriseAdministrator,
2906 EdgeEngineeringLeadsNepEnterpriseGrantAdministrator,
2907 EdgeEngineeringLeadsNepRolegrantAdministrator,
2908 EdgeEngineeringLeadsNepIDEntityAdministrator,
2909 EdgeEngineeringLeadsOrganizationInternalAdministrator,
2910 EdgeEngineeringLeadsSiteCreate,
2911 EdgeEngineeringLeadsSiteRead,
2912 EdgeEngineeringLeadsSiteUpdate,
2913 EdgeEngineeringLeadsNepTokenExchanger,
2914 }
2915
2916 func (e EdgeEngineeringLeads) IsValid() bool {
2917 switch e {
2918 case EdgeEngineeringLeadsNepEnterpriseAdministrator, EdgeEngineeringLeadsNepEnterpriseGrantAdministrator, EdgeEngineeringLeadsNepRolegrantAdministrator, EdgeEngineeringLeadsNepIDEntityAdministrator, EdgeEngineeringLeadsOrganizationInternalAdministrator, EdgeEngineeringLeadsSiteCreate, EdgeEngineeringLeadsSiteRead, EdgeEngineeringLeadsSiteUpdate, EdgeEngineeringLeadsNepTokenExchanger:
2919 return true
2920 }
2921 return false
2922 }
2923
2924 func (e EdgeEngineeringLeads) String() string {
2925 return string(e)
2926 }
2927
2928 func (e *EdgeEngineeringLeads) UnmarshalGQL(v interface{}) error {
2929 str, ok := v.(string)
2930 if !ok {
2931 return fmt.Errorf("enums must be strings")
2932 }
2933
2934 *e = EdgeEngineeringLeads(str)
2935 if !e.IsValid() {
2936 return fmt.Errorf("%s is not a valid EDGE_ENGINEERING_LEADS", str)
2937 }
2938 return nil
2939 }
2940
2941 func (e EdgeEngineeringLeads) MarshalGQL(w io.Writer) {
2942 fmt.Fprint(w, strconv.Quote(e.String()))
2943 }
2944
2945
2946 type EdgeOiAdmin string
2947
2948 const (
2949 EdgeOiAdminNepIDEntityGroupAddMembers EdgeOiAdmin = "NEP_IDENTITY_GROUP_ADD_MEMBERS"
2950 EdgeOiAdminNepIDEntityGroupRemoveMembers EdgeOiAdmin = "NEP_IDENTITY_GROUP_REMOVE_MEMBERS"
2951 )
2952
2953 var AllEdgeOiAdmin = []EdgeOiAdmin{
2954 EdgeOiAdminNepIDEntityGroupAddMembers,
2955 EdgeOiAdminNepIDEntityGroupRemoveMembers,
2956 }
2957
2958 func (e EdgeOiAdmin) IsValid() bool {
2959 switch e {
2960 case EdgeOiAdminNepIDEntityGroupAddMembers, EdgeOiAdminNepIDEntityGroupRemoveMembers:
2961 return true
2962 }
2963 return false
2964 }
2965
2966 func (e EdgeOiAdmin) String() string {
2967 return string(e)
2968 }
2969
2970 func (e *EdgeOiAdmin) UnmarshalGQL(v interface{}) error {
2971 str, ok := v.(string)
2972 if !ok {
2973 return fmt.Errorf("enums must be strings")
2974 }
2975
2976 *e = EdgeOiAdmin(str)
2977 if !e.IsValid() {
2978 return fmt.Errorf("%s is not a valid EDGE_OI_ADMIN", str)
2979 }
2980 return nil
2981 }
2982
2983 func (e EdgeOiAdmin) MarshalGQL(w io.Writer) {
2984 fmt.Fprint(w, strconv.Quote(e.String()))
2985 }
2986
2987
2988 type EdgeOrgAdmin string
2989
2990 const (
2991 EdgeOrgAdminNepEnterpriseAdministrator EdgeOrgAdmin = "NEP_ENTERPRISE_ADMINISTRATOR"
2992 EdgeOrgAdminNepEnterpriseGrantAdministrator EdgeOrgAdmin = "NEP_ENTERPRISE_GRANT_ADMINISTRATOR"
2993 EdgeOrgAdminNepRolegrantAdministrator EdgeOrgAdmin = "NEP_ROLEGRANT_ADMINISTRATOR"
2994 EdgeOrgAdminNepIDEntityAdministrator EdgeOrgAdmin = "NEP_IDENTITY_ADMINISTRATOR"
2995 EdgeOrgAdminOrganizationInternalAdministrator EdgeOrgAdmin = "ORGANIZATION_INTERNAL_ADMINISTRATOR"
2996 EdgeOrgAdminSiteCreate EdgeOrgAdmin = "SITE_CREATE"
2997 EdgeOrgAdminSiteRead EdgeOrgAdmin = "SITE_READ"
2998 EdgeOrgAdminSiteUpdate EdgeOrgAdmin = "SITE_UPDATE"
2999 EdgeOrgAdminNepTokenExchanger EdgeOrgAdmin = "NEP_TOKEN_EXCHANGER"
3000 )
3001
3002 var AllEdgeOrgAdmin = []EdgeOrgAdmin{
3003 EdgeOrgAdminNepEnterpriseAdministrator,
3004 EdgeOrgAdminNepEnterpriseGrantAdministrator,
3005 EdgeOrgAdminNepRolegrantAdministrator,
3006 EdgeOrgAdminNepIDEntityAdministrator,
3007 EdgeOrgAdminOrganizationInternalAdministrator,
3008 EdgeOrgAdminSiteCreate,
3009 EdgeOrgAdminSiteRead,
3010 EdgeOrgAdminSiteUpdate,
3011 EdgeOrgAdminNepTokenExchanger,
3012 }
3013
3014 func (e EdgeOrgAdmin) IsValid() bool {
3015 switch e {
3016 case EdgeOrgAdminNepEnterpriseAdministrator, EdgeOrgAdminNepEnterpriseGrantAdministrator, EdgeOrgAdminNepRolegrantAdministrator, EdgeOrgAdminNepIDEntityAdministrator, EdgeOrgAdminOrganizationInternalAdministrator, EdgeOrgAdminSiteCreate, EdgeOrgAdminSiteRead, EdgeOrgAdminSiteUpdate, EdgeOrgAdminNepTokenExchanger:
3017 return true
3018 }
3019 return false
3020 }
3021
3022 func (e EdgeOrgAdmin) String() string {
3023 return string(e)
3024 }
3025
3026 func (e *EdgeOrgAdmin) UnmarshalGQL(v interface{}) error {
3027 str, ok := v.(string)
3028 if !ok {
3029 return fmt.Errorf("enums must be strings")
3030 }
3031
3032 *e = EdgeOrgAdmin(str)
3033 if !e.IsValid() {
3034 return fmt.Errorf("%s is not a valid EDGE_ORG_ADMIN", str)
3035 }
3036 return nil
3037 }
3038
3039 func (e EdgeOrgAdmin) MarshalGQL(w io.Writer) {
3040 fmt.Fprint(w, strconv.Quote(e.String()))
3041 }
3042
3043
3044 type EdgeSuperAdmin string
3045
3046 const (
3047 EdgeSuperAdminNepEnterpriseAdministrator EdgeSuperAdmin = "NEP_ENTERPRISE_ADMINISTRATOR"
3048 EdgeSuperAdminNepEnterpriseGrantAdministrator EdgeSuperAdmin = "NEP_ENTERPRISE_GRANT_ADMINISTRATOR"
3049 EdgeSuperAdminNepRolegrantAdministrator EdgeSuperAdmin = "NEP_ROLEGRANT_ADMINISTRATOR"
3050 EdgeSuperAdminNepIDEntityAdministrator EdgeSuperAdmin = "NEP_IDENTITY_ADMINISTRATOR"
3051 EdgeSuperAdminOrganizationInternalAdministrator EdgeSuperAdmin = "ORGANIZATION_INTERNAL_ADMINISTRATOR"
3052 EdgeSuperAdminSiteCreate EdgeSuperAdmin = "SITE_CREATE"
3053 EdgeSuperAdminSiteRead EdgeSuperAdmin = "SITE_READ"
3054 EdgeSuperAdminSiteUpdate EdgeSuperAdmin = "SITE_UPDATE"
3055 EdgeSuperAdminNepEnterpriseSuperAdministrator EdgeSuperAdmin = "NEP_ENTERPRISE_SUPER_ADMINISTRATOR"
3056 EdgeSuperAdminNepTokenExchanger EdgeSuperAdmin = "NEP_TOKEN_EXCHANGER"
3057 )
3058
3059 var AllEdgeSuperAdmin = []EdgeSuperAdmin{
3060 EdgeSuperAdminNepEnterpriseAdministrator,
3061 EdgeSuperAdminNepEnterpriseGrantAdministrator,
3062 EdgeSuperAdminNepRolegrantAdministrator,
3063 EdgeSuperAdminNepIDEntityAdministrator,
3064 EdgeSuperAdminOrganizationInternalAdministrator,
3065 EdgeSuperAdminSiteCreate,
3066 EdgeSuperAdminSiteRead,
3067 EdgeSuperAdminSiteUpdate,
3068 EdgeSuperAdminNepEnterpriseSuperAdministrator,
3069 EdgeSuperAdminNepTokenExchanger,
3070 }
3071
3072 func (e EdgeSuperAdmin) IsValid() bool {
3073 switch e {
3074 case EdgeSuperAdminNepEnterpriseAdministrator, EdgeSuperAdminNepEnterpriseGrantAdministrator, EdgeSuperAdminNepRolegrantAdministrator, EdgeSuperAdminNepIDEntityAdministrator, EdgeSuperAdminOrganizationInternalAdministrator, EdgeSuperAdminSiteCreate, EdgeSuperAdminSiteRead, EdgeSuperAdminSiteUpdate, EdgeSuperAdminNepEnterpriseSuperAdministrator, EdgeSuperAdminNepTokenExchanger:
3075 return true
3076 }
3077 return false
3078 }
3079
3080 func (e EdgeSuperAdmin) String() string {
3081 return string(e)
3082 }
3083
3084 func (e *EdgeSuperAdmin) UnmarshalGQL(v interface{}) error {
3085 str, ok := v.(string)
3086 if !ok {
3087 return fmt.Errorf("enums must be strings")
3088 }
3089
3090 *e = EdgeSuperAdmin(str)
3091 if !e.IsValid() {
3092 return fmt.Errorf("%s is not a valid EDGE_SUPER_ADMIN", str)
3093 }
3094 return nil
3095 }
3096
3097 func (e EdgeSuperAdmin) MarshalGQL(w io.Writer) {
3098 fmt.Fprint(w, strconv.Quote(e.String()))
3099 }
3100
3101
3102 type EdgeSecurityComplianceOptions string
3103
3104 const (
3105 EdgeSecurityComplianceOptionsOptOut EdgeSecurityComplianceOptions = "optOut"
3106 EdgeSecurityComplianceOptionsOptIn EdgeSecurityComplianceOptions = "optIn"
3107 EdgeSecurityComplianceOptionsDefault EdgeSecurityComplianceOptions = "default"
3108 )
3109
3110 var AllEdgeSecurityComplianceOptions = []EdgeSecurityComplianceOptions{
3111 EdgeSecurityComplianceOptionsOptOut,
3112 EdgeSecurityComplianceOptionsOptIn,
3113 EdgeSecurityComplianceOptionsDefault,
3114 }
3115
3116 func (e EdgeSecurityComplianceOptions) IsValid() bool {
3117 switch e {
3118 case EdgeSecurityComplianceOptionsOptOut, EdgeSecurityComplianceOptionsOptIn, EdgeSecurityComplianceOptionsDefault:
3119 return true
3120 }
3121 return false
3122 }
3123
3124 func (e EdgeSecurityComplianceOptions) String() string {
3125 return string(e)
3126 }
3127
3128 func (e *EdgeSecurityComplianceOptions) UnmarshalGQL(v interface{}) error {
3129 str, ok := v.(string)
3130 if !ok {
3131 return fmt.Errorf("enums must be strings")
3132 }
3133
3134 *e = EdgeSecurityComplianceOptions(str)
3135 if !e.IsValid() {
3136 return fmt.Errorf("%s is not a valid EdgeSecurityComplianceOptions", str)
3137 }
3138 return nil
3139 }
3140
3141 func (e EdgeSecurityComplianceOptions) MarshalGQL(w io.Writer) {
3142 fmt.Fprint(w, strconv.Quote(e.String()))
3143 }
3144
3145
3146 type InetType string
3147
3148 const (
3149 InetTypeInet InetType = "inet"
3150 InetTypeInet6 InetType = "inet6"
3151 )
3152
3153 var AllInetType = []InetType{
3154 InetTypeInet,
3155 InetTypeInet6,
3156 }
3157
3158 func (e InetType) IsValid() bool {
3159 switch e {
3160 case InetTypeInet, InetTypeInet6:
3161 return true
3162 }
3163 return false
3164 }
3165
3166 func (e InetType) String() string {
3167 return string(e)
3168 }
3169
3170 func (e *InetType) UnmarshalGQL(v interface{}) error {
3171 str, ok := v.(string)
3172 if !ok {
3173 return fmt.Errorf("enums must be strings")
3174 }
3175
3176 *e = InetType(str)
3177 if !e.IsValid() {
3178 return fmt.Errorf("%s is not a valid InetType", str)
3179 }
3180 return nil
3181 }
3182
3183 func (e InetType) MarshalGQL(w io.Writer) {
3184 fmt.Fprint(w, strconv.Quote(e.String()))
3185 }
3186
3187
3188 type InjectableConfigmaps string
3189
3190 const (
3191
3192 InjectableConfigmapsEdgeInfo InjectableConfigmaps = "EdgeInfo"
3193
3194 InjectableConfigmapsBSLInfo InjectableConfigmaps = "BSLInfo"
3195 )
3196
3197 var AllInjectableConfigmaps = []InjectableConfigmaps{
3198 InjectableConfigmapsEdgeInfo,
3199 InjectableConfigmapsBSLInfo,
3200 }
3201
3202 func (e InjectableConfigmaps) IsValid() bool {
3203 switch e {
3204 case InjectableConfigmapsEdgeInfo, InjectableConfigmapsBSLInfo:
3205 return true
3206 }
3207 return false
3208 }
3209
3210 func (e InjectableConfigmaps) String() string {
3211 return string(e)
3212 }
3213
3214 func (e *InjectableConfigmaps) UnmarshalGQL(v interface{}) error {
3215 str, ok := v.(string)
3216 if !ok {
3217 return fmt.Errorf("enums must be strings")
3218 }
3219
3220 *e = InjectableConfigmaps(str)
3221 if !e.IsValid() {
3222 return fmt.Errorf("%s is not a valid InjectableConfigmaps", str)
3223 }
3224 return nil
3225 }
3226
3227 func (e InjectableConfigmaps) MarshalGQL(w io.Writer) {
3228 fmt.Fprint(w, strconv.Quote(e.String()))
3229 }
3230
3231
3232
3233 type LogClassSelection string
3234
3235 const (
3236 LogClassSelectionAudit LogClassSelection = "Audit"
3237 LogClassSelectionSecurity LogClassSelection = "Security"
3238 )
3239
3240 var AllLogClassSelection = []LogClassSelection{
3241 LogClassSelectionAudit,
3242 LogClassSelectionSecurity,
3243 }
3244
3245 func (e LogClassSelection) IsValid() bool {
3246 switch e {
3247 case LogClassSelectionAudit, LogClassSelectionSecurity:
3248 return true
3249 }
3250 return false
3251 }
3252
3253 func (e LogClassSelection) String() string {
3254 return string(e)
3255 }
3256
3257 func (e *LogClassSelection) UnmarshalGQL(v interface{}) error {
3258 str, ok := v.(string)
3259 if !ok {
3260 return fmt.Errorf("enums must be strings")
3261 }
3262
3263 *e = LogClassSelection(str)
3264 if !e.IsValid() {
3265 return fmt.Errorf("%s is not a valid LogClassSelection", str)
3266 }
3267 return nil
3268 }
3269
3270 func (e LogClassSelection) MarshalGQL(w io.Writer) {
3271 fmt.Fprint(w, strconv.Quote(e.String()))
3272 }
3273
3274 type LogLevels string
3275
3276 const (
3277 LogLevelsDebug LogLevels = "DEBUG"
3278 LogLevelsInfo LogLevels = "INFO"
3279 LogLevelsNotice LogLevels = "NOTICE"
3280 LogLevelsWarning LogLevels = "WARNING"
3281 LogLevelsError LogLevels = "ERROR"
3282 LogLevelsCritical LogLevels = "CRITICAL"
3283 LogLevelsAlert LogLevels = "ALERT"
3284 LogLevelsEmergency LogLevels = "EMERGENCY"
3285 )
3286
3287 var AllLogLevels = []LogLevels{
3288 LogLevelsDebug,
3289 LogLevelsInfo,
3290 LogLevelsNotice,
3291 LogLevelsWarning,
3292 LogLevelsError,
3293 LogLevelsCritical,
3294 LogLevelsAlert,
3295 LogLevelsEmergency,
3296 }
3297
3298 func (e LogLevels) IsValid() bool {
3299 switch e {
3300 case LogLevelsDebug, LogLevelsInfo, LogLevelsNotice, LogLevelsWarning, LogLevelsError, LogLevelsCritical, LogLevelsAlert, LogLevelsEmergency:
3301 return true
3302 }
3303 return false
3304 }
3305
3306 func (e LogLevels) String() string {
3307 return string(e)
3308 }
3309
3310 func (e *LogLevels) UnmarshalGQL(v interface{}) error {
3311 str, ok := v.(string)
3312 if !ok {
3313 return fmt.Errorf("enums must be strings")
3314 }
3315
3316 *e = LogLevels(str)
3317 if !e.IsValid() {
3318 return fmt.Errorf("%s is not a valid LogLevels", str)
3319 }
3320 return nil
3321 }
3322
3323 func (e LogLevels) MarshalGQL(w io.Writer) {
3324 fmt.Fprint(w, strconv.Quote(e.String()))
3325 }
3326
3327 type LogReplayStatus string
3328
3329 const (
3330 LogReplayStatusNotStarted LogReplayStatus = "NOT_STARTED"
3331 LogReplayStatusPending LogReplayStatus = "PENDING"
3332 LogReplayStatusSucceeded LogReplayStatus = "SUCCEEDED"
3333 LogReplayStatusFailed LogReplayStatus = "FAILED"
3334 LogReplayStatusTimeout LogReplayStatus = "TIMEOUT"
3335 )
3336
3337 var AllLogReplayStatus = []LogReplayStatus{
3338 LogReplayStatusNotStarted,
3339 LogReplayStatusPending,
3340 LogReplayStatusSucceeded,
3341 LogReplayStatusFailed,
3342 LogReplayStatusTimeout,
3343 }
3344
3345 func (e LogReplayStatus) IsValid() bool {
3346 switch e {
3347 case LogReplayStatusNotStarted, LogReplayStatusPending, LogReplayStatusSucceeded, LogReplayStatusFailed, LogReplayStatusTimeout:
3348 return true
3349 }
3350 return false
3351 }
3352
3353 func (e LogReplayStatus) String() string {
3354 return string(e)
3355 }
3356
3357 func (e *LogReplayStatus) UnmarshalGQL(v interface{}) error {
3358 str, ok := v.(string)
3359 if !ok {
3360 return fmt.Errorf("enums must be strings")
3361 }
3362
3363 *e = LogReplayStatus(str)
3364 if !e.IsValid() {
3365 return fmt.Errorf("%s is not a valid LogReplayStatus", str)
3366 }
3367 return nil
3368 }
3369
3370 func (e LogReplayStatus) MarshalGQL(w io.Writer) {
3371 fmt.Fprint(w, strconv.Quote(e.String()))
3372 }
3373
3374
3375 type MachineType string
3376
3377 const (
3378 MachineTypeQ35 MachineType = "q35"
3379 MachineTypeI440fx MachineType = "i440fx"
3380 )
3381
3382 var AllMachineType = []MachineType{
3383 MachineTypeQ35,
3384 MachineTypeI440fx,
3385 }
3386
3387 func (e MachineType) IsValid() bool {
3388 switch e {
3389 case MachineTypeQ35, MachineTypeI440fx:
3390 return true
3391 }
3392 return false
3393 }
3394
3395 func (e MachineType) String() string {
3396 return string(e)
3397 }
3398
3399 func (e *MachineType) UnmarshalGQL(v interface{}) error {
3400 str, ok := v.(string)
3401 if !ok {
3402 return fmt.Errorf("enums must be strings")
3403 }
3404
3405 *e = MachineType(str)
3406 if !e.IsValid() {
3407 return fmt.Errorf("%s is not a valid MachineType", str)
3408 }
3409 return nil
3410 }
3411
3412 func (e MachineType) MarshalGQL(w io.Writer) {
3413 fmt.Fprint(w, strconv.Quote(e.String()))
3414 }
3415
3416 type OperatorInterventionErrorType string
3417
3418 const (
3419
3420 OperatorInterventionErrorTypeConflict OperatorInterventionErrorType = "CONFLICT"
3421
3422 OperatorInterventionErrorTypeInvalidInput OperatorInterventionErrorType = "INVALID_INPUT"
3423
3424 OperatorInterventionErrorTypeUnknownCommand OperatorInterventionErrorType = "UNKNOWN_COMMAND"
3425 OperatorInterventionErrorTypeUnknownRole OperatorInterventionErrorType = "UNKNOWN_ROLE"
3426 OperatorInterventionErrorTypeUnknownRoleMapping OperatorInterventionErrorType = "UNKNOWN_ROLE_MAPPING"
3427 OperatorInterventionErrorTypeUnknownPrivilege OperatorInterventionErrorType = "UNKNOWN_PRIVILEGE"
3428 OperatorInterventionErrorTypeUnknownRule OperatorInterventionErrorType = "UNKNOWN_RULE"
3429 )
3430
3431 var AllOperatorInterventionErrorType = []OperatorInterventionErrorType{
3432 OperatorInterventionErrorTypeConflict,
3433 OperatorInterventionErrorTypeInvalidInput,
3434 OperatorInterventionErrorTypeUnknownCommand,
3435 OperatorInterventionErrorTypeUnknownRole,
3436 OperatorInterventionErrorTypeUnknownRoleMapping,
3437 OperatorInterventionErrorTypeUnknownPrivilege,
3438 OperatorInterventionErrorTypeUnknownRule,
3439 }
3440
3441 func (e OperatorInterventionErrorType) IsValid() bool {
3442 switch e {
3443 case OperatorInterventionErrorTypeConflict, OperatorInterventionErrorTypeInvalidInput, OperatorInterventionErrorTypeUnknownCommand, OperatorInterventionErrorTypeUnknownRole, OperatorInterventionErrorTypeUnknownRoleMapping, OperatorInterventionErrorTypeUnknownPrivilege, OperatorInterventionErrorTypeUnknownRule:
3444 return true
3445 }
3446 return false
3447 }
3448
3449 func (e OperatorInterventionErrorType) String() string {
3450 return string(e)
3451 }
3452
3453 func (e *OperatorInterventionErrorType) UnmarshalGQL(v interface{}) error {
3454 str, ok := v.(string)
3455 if !ok {
3456 return fmt.Errorf("enums must be strings")
3457 }
3458
3459 *e = OperatorInterventionErrorType(str)
3460 if !e.IsValid() {
3461 return fmt.Errorf("%s is not a valid OperatorInterventionErrorType", str)
3462 }
3463 return nil
3464 }
3465
3466 func (e OperatorInterventionErrorType) MarshalGQL(w io.Writer) {
3467 fmt.Fprint(w, strconv.Quote(e.String()))
3468 }
3469
3470
3471 type Role string
3472
3473 const (
3474 RoleEdgeSuperAdmin Role = "EDGE_SUPER_ADMIN"
3475 RoleEdgeOrgAdmin Role = "EDGE_ORG_ADMIN"
3476 RoleEdgeBannerAdmin Role = "EDGE_BANNER_ADMIN"
3477 RoleEdgeBannerOperator Role = "EDGE_BANNER_OPERATOR"
3478 RoleEdgeBannerViewer Role = "EDGE_BANNER_VIEWER"
3479 RoleTotpRole Role = "TOTP_ROLE"
3480 RoleEdgeTerminal Role = "EDGE_TERMINAL"
3481 RoleEdgeBootstrap Role = "EDGE_BOOTSTRAP"
3482 RoleEdgeEngineeringLeads Role = "EDGE_ENGINEERING_LEADS"
3483 RoleEdgeOiAdmin Role = "EDGE_OI_ADMIN"
3484 RoleEdgeSuperUser Role = "EDGE_SUPER_USER"
3485 RoleEdgeL1 Role = "EDGE_L1"
3486 RoleEdgeL2 Role = "EDGE_L2"
3487 RoleEdgeL3 Role = "EDGE_L3"
3488 RoleEdgeL4 Role = "EDGE_L4"
3489 )
3490
3491 var AllRole = []Role{
3492 RoleEdgeSuperAdmin,
3493 RoleEdgeOrgAdmin,
3494 RoleEdgeBannerAdmin,
3495 RoleEdgeBannerOperator,
3496 RoleEdgeBannerViewer,
3497 RoleTotpRole,
3498 RoleEdgeTerminal,
3499 RoleEdgeBootstrap,
3500 RoleEdgeEngineeringLeads,
3501 RoleEdgeOiAdmin,
3502 RoleEdgeSuperUser,
3503 RoleEdgeL1,
3504 RoleEdgeL2,
3505 RoleEdgeL3,
3506 RoleEdgeL4,
3507 }
3508
3509 func (e Role) IsValid() bool {
3510 switch e {
3511 case RoleEdgeSuperAdmin, RoleEdgeOrgAdmin, RoleEdgeBannerAdmin, RoleEdgeBannerOperator, RoleEdgeBannerViewer, RoleTotpRole, RoleEdgeTerminal, RoleEdgeBootstrap, RoleEdgeEngineeringLeads, RoleEdgeOiAdmin, RoleEdgeSuperUser, RoleEdgeL1, RoleEdgeL2, RoleEdgeL3, RoleEdgeL4:
3512 return true
3513 }
3514 return false
3515 }
3516
3517 func (e Role) String() string {
3518 return string(e)
3519 }
3520
3521 func (e *Role) UnmarshalGQL(v interface{}) error {
3522 str, ok := v.(string)
3523 if !ok {
3524 return fmt.Errorf("enums must be strings")
3525 }
3526
3527 *e = Role(str)
3528 if !e.IsValid() {
3529 return fmt.Errorf("%s is not a valid Role", str)
3530 }
3531 return nil
3532 }
3533
3534 func (e Role) MarshalGQL(w io.Writer) {
3535 fmt.Fprint(w, strconv.Quote(e.String()))
3536 }
3537
3538
3539 type TerminalClassType string
3540
3541 const (
3542 TerminalClassTypeServer TerminalClassType = "server"
3543 TerminalClassTypeTouchpoint TerminalClassType = "touchpoint"
3544 )
3545
3546 var AllTerminalClassType = []TerminalClassType{
3547 TerminalClassTypeServer,
3548 TerminalClassTypeTouchpoint,
3549 }
3550
3551 func (e TerminalClassType) IsValid() bool {
3552 switch e {
3553 case TerminalClassTypeServer, TerminalClassTypeTouchpoint:
3554 return true
3555 }
3556 return false
3557 }
3558
3559 func (e TerminalClassType) String() string {
3560 return string(e)
3561 }
3562
3563 func (e *TerminalClassType) UnmarshalGQL(v interface{}) error {
3564 str, ok := v.(string)
3565 if !ok {
3566 return fmt.Errorf("enums must be strings")
3567 }
3568
3569 *e = TerminalClassType(str)
3570 if !e.IsValid() {
3571 return fmt.Errorf("%s is not a valid TerminalClassType", str)
3572 }
3573 return nil
3574 }
3575
3576 func (e TerminalClassType) MarshalGQL(w io.Writer) {
3577 fmt.Fprint(w, strconv.Quote(e.String()))
3578 }
3579
3580
3581 type TerminalDiscoverDisksType string
3582
3583 const (
3584 TerminalDiscoverDisksTypeAll TerminalDiscoverDisksType = "all"
3585 TerminalDiscoverDisksTypeEmpty TerminalDiscoverDisksType = "empty"
3586 TerminalDiscoverDisksTypeNone TerminalDiscoverDisksType = "none"
3587 )
3588
3589 var AllTerminalDiscoverDisksType = []TerminalDiscoverDisksType{
3590 TerminalDiscoverDisksTypeAll,
3591 TerminalDiscoverDisksTypeEmpty,
3592 TerminalDiscoverDisksTypeNone,
3593 }
3594
3595 func (e TerminalDiscoverDisksType) IsValid() bool {
3596 switch e {
3597 case TerminalDiscoverDisksTypeAll, TerminalDiscoverDisksTypeEmpty, TerminalDiscoverDisksTypeNone:
3598 return true
3599 }
3600 return false
3601 }
3602
3603 func (e TerminalDiscoverDisksType) String() string {
3604 return string(e)
3605 }
3606
3607 func (e *TerminalDiscoverDisksType) UnmarshalGQL(v interface{}) error {
3608 str, ok := v.(string)
3609 if !ok {
3610 return fmt.Errorf("enums must be strings")
3611 }
3612
3613 *e = TerminalDiscoverDisksType(str)
3614 if !e.IsValid() {
3615 return fmt.Errorf("%s is not a valid TerminalDiscoverDisksType", str)
3616 }
3617 return nil
3618 }
3619
3620 func (e TerminalDiscoverDisksType) MarshalGQL(w io.Writer) {
3621 fmt.Fprint(w, strconv.Quote(e.String()))
3622 }
3623
3624
3625 type TerminalRoleType string
3626
3627 const (
3628 TerminalRoleTypeControlplane TerminalRoleType = "controlplane"
3629 TerminalRoleTypeWorker TerminalRoleType = "worker"
3630 )
3631
3632 var AllTerminalRoleType = []TerminalRoleType{
3633 TerminalRoleTypeControlplane,
3634 TerminalRoleTypeWorker,
3635 }
3636
3637 func (e TerminalRoleType) IsValid() bool {
3638 switch e {
3639 case TerminalRoleTypeControlplane, TerminalRoleTypeWorker:
3640 return true
3641 }
3642 return false
3643 }
3644
3645 func (e TerminalRoleType) String() string {
3646 return string(e)
3647 }
3648
3649 func (e *TerminalRoleType) UnmarshalGQL(v interface{}) error {
3650 str, ok := v.(string)
3651 if !ok {
3652 return fmt.Errorf("enums must be strings")
3653 }
3654
3655 *e = TerminalRoleType(str)
3656 if !e.IsValid() {
3657 return fmt.Errorf("%s is not a valid TerminalRoleType", str)
3658 }
3659 return nil
3660 }
3661
3662 func (e TerminalRoleType) MarshalGQL(w io.Writer) {
3663 fmt.Fprint(w, strconv.Quote(e.String()))
3664 }
3665
3666
3667 type WorkloadInstallationType string
3668
3669 const (
3670
3671 WorkloadInstallationTypeServer WorkloadInstallationType = "SERVER"
3672
3673 WorkloadInstallationTypeTouchpoint WorkloadInstallationType = "TOUCHPOINT"
3674
3675 WorkloadInstallationTypeAny WorkloadInstallationType = "ANY"
3676
3677 WorkloadInstallationTypeNoMod WorkloadInstallationType = "NO_MOD"
3678
3679 WorkloadInstallationTypeServerPreferred WorkloadInstallationType = "SERVER_PREFERRED"
3680
3681 WorkloadInstallationTypeAdvanced WorkloadInstallationType = "ADVANCED"
3682 )
3683
3684 var AllWorkloadInstallationType = []WorkloadInstallationType{
3685 WorkloadInstallationTypeServer,
3686 WorkloadInstallationTypeTouchpoint,
3687 WorkloadInstallationTypeAny,
3688 WorkloadInstallationTypeNoMod,
3689 WorkloadInstallationTypeServerPreferred,
3690 WorkloadInstallationTypeAdvanced,
3691 }
3692
3693 func (e WorkloadInstallationType) IsValid() bool {
3694 switch e {
3695 case WorkloadInstallationTypeServer, WorkloadInstallationTypeTouchpoint, WorkloadInstallationTypeAny, WorkloadInstallationTypeNoMod, WorkloadInstallationTypeServerPreferred, WorkloadInstallationTypeAdvanced:
3696 return true
3697 }
3698 return false
3699 }
3700
3701 func (e WorkloadInstallationType) String() string {
3702 return string(e)
3703 }
3704
3705 func (e *WorkloadInstallationType) UnmarshalGQL(v interface{}) error {
3706 str, ok := v.(string)
3707 if !ok {
3708 return fmt.Errorf("enums must be strings")
3709 }
3710
3711 *e = WorkloadInstallationType(str)
3712 if !e.IsValid() {
3713 return fmt.Errorf("%s is not a valid WorkloadInstallationType", str)
3714 }
3715 return nil
3716 }
3717
3718 func (e WorkloadInstallationType) MarshalGQL(w io.Writer) {
3719 fmt.Fprint(w, strconv.Quote(e.String()))
3720 }
3721
3722
3723 type WorkloadType string
3724
3725 const (
3726 WorkloadTypePlatform WorkloadType = "platform"
3727 WorkloadTypeTenant WorkloadType = "tenant"
3728 WorkloadTypeNcr WorkloadType = "ncr"
3729 WorkloadTypeHelm WorkloadType = "helm"
3730 )
3731
3732 var AllWorkloadType = []WorkloadType{
3733 WorkloadTypePlatform,
3734 WorkloadTypeTenant,
3735 WorkloadTypeNcr,
3736 WorkloadTypeHelm,
3737 }
3738
3739 func (e WorkloadType) IsValid() bool {
3740 switch e {
3741 case WorkloadTypePlatform, WorkloadTypeTenant, WorkloadTypeNcr, WorkloadTypeHelm:
3742 return true
3743 }
3744 return false
3745 }
3746
3747 func (e WorkloadType) String() string {
3748 return string(e)
3749 }
3750
3751 func (e *WorkloadType) UnmarshalGQL(v interface{}) error {
3752 str, ok := v.(string)
3753 if !ok {
3754 return fmt.Errorf("enums must be strings")
3755 }
3756
3757 *e = WorkloadType(str)
3758 if !e.IsValid() {
3759 return fmt.Errorf("%s is not a valid WorkloadType", str)
3760 }
3761 return nil
3762 }
3763
3764 func (e WorkloadType) MarshalGQL(w io.Writer) {
3765 fmt.Fprint(w, strconv.Quote(e.String()))
3766 }
3767
View as plain text