-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathgenerated.go
More file actions
1265 lines (1007 loc) · 56.7 KB
/
generated.go
File metadata and controls
1265 lines (1007 loc) · 56.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package graphqlclient
import (
"context"
"time"
"github.com/Khan/genqlient/graphql"
)
// This enum should be removed after removing allowExternalTrafficPolicy from IntentsOperatorConfigurationInput, it is here for backward compatibility
type AllowExternalTrafficPolicy string
const (
AllowExternalTrafficPolicyOff AllowExternalTrafficPolicy = "OFF"
AllowExternalTrafficPolicyAlways AllowExternalTrafficPolicy = "ALWAYS"
AllowExternalTrafficPolicyIfBlockedByOtterize AllowExternalTrafficPolicy = "IF_BLOCKED_BY_OTTERIZE"
)
type AutomateThirdPartyNetworkPolicy string
const (
AutomateThirdPartyNetworkPolicyOff AutomateThirdPartyNetworkPolicy = "OFF"
AutomateThirdPartyNetworkPolicyAlways AutomateThirdPartyNetworkPolicy = "ALWAYS"
AutomateThirdPartyNetworkPolicyIfBlockedByOtterize AutomateThirdPartyNetworkPolicy = "IF_BLOCKED_BY_OTTERIZE"
)
type AutomatedThirdPartyPolicyTypes string
const (
AutomatedThirdPartyPolicyTypesExternalTraffic AutomatedThirdPartyPolicyTypes = "EXTERNAL_TRAFFIC"
AutomatedThirdPartyPolicyTypesMetricsTraffic AutomatedThirdPartyPolicyTypes = "METRICS_TRAFFIC"
AutomatedThirdPartyPolicyTypesWebhookTraffic AutomatedThirdPartyPolicyTypes = "WEBHOOK_TRAFFIC"
)
type AzureKeyVaultPolicyInput struct {
CertificatePermissions []*string `json:"certificatePermissions"`
KeyPermissions []*string `json:"keyPermissions"`
SecretPermissions []*string `json:"secretPermissions"`
StoragePermissions []*string `json:"storagePermissions"`
}
// GetCertificatePermissions returns AzureKeyVaultPolicyInput.CertificatePermissions, and is useful for accessing the field via an interface.
func (v *AzureKeyVaultPolicyInput) GetCertificatePermissions() []*string {
return v.CertificatePermissions
}
// GetKeyPermissions returns AzureKeyVaultPolicyInput.KeyPermissions, and is useful for accessing the field via an interface.
func (v *AzureKeyVaultPolicyInput) GetKeyPermissions() []*string { return v.KeyPermissions }
// GetSecretPermissions returns AzureKeyVaultPolicyInput.SecretPermissions, and is useful for accessing the field via an interface.
func (v *AzureKeyVaultPolicyInput) GetSecretPermissions() []*string { return v.SecretPermissions }
// GetStoragePermissions returns AzureKeyVaultPolicyInput.StoragePermissions, and is useful for accessing the field via an interface.
func (v *AzureKeyVaultPolicyInput) GetStoragePermissions() []*string { return v.StoragePermissions }
type ClientIntentEventInput struct {
ClientName string `json:"clientName"`
ClientWorkloadKind string `json:"clientWorkloadKind"`
Namespace string `json:"namespace"`
Name string `json:"name"`
Labels []KeyValueInput `json:"labels"`
Annotations []KeyValueInput `json:"annotations"`
Count int `json:"count"`
ClientIntentName string `json:"clientIntentName"`
FirstTimestamp time.Time `json:"firstTimestamp"`
LastTimestamp time.Time `json:"lastTimestamp"`
ReportingComponent string `json:"reportingComponent"`
ReportingInstance string `json:"reportingInstance"`
SourceComponent string `json:"sourceComponent"`
Type string `json:"type"`
Reason string `json:"reason"`
Message string `json:"message"`
}
// GetClientName returns ClientIntentEventInput.ClientName, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetClientName() string { return v.ClientName }
// GetClientWorkloadKind returns ClientIntentEventInput.ClientWorkloadKind, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetClientWorkloadKind() string { return v.ClientWorkloadKind }
// GetNamespace returns ClientIntentEventInput.Namespace, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetNamespace() string { return v.Namespace }
// GetName returns ClientIntentEventInput.Name, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetName() string { return v.Name }
// GetLabels returns ClientIntentEventInput.Labels, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetLabels() []KeyValueInput { return v.Labels }
// GetAnnotations returns ClientIntentEventInput.Annotations, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetAnnotations() []KeyValueInput { return v.Annotations }
// GetCount returns ClientIntentEventInput.Count, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetCount() int { return v.Count }
// GetClientIntentName returns ClientIntentEventInput.ClientIntentName, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetClientIntentName() string { return v.ClientIntentName }
// GetFirstTimestamp returns ClientIntentEventInput.FirstTimestamp, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetFirstTimestamp() time.Time { return v.FirstTimestamp }
// GetLastTimestamp returns ClientIntentEventInput.LastTimestamp, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetLastTimestamp() time.Time { return v.LastTimestamp }
// GetReportingComponent returns ClientIntentEventInput.ReportingComponent, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetReportingComponent() string { return v.ReportingComponent }
// GetReportingInstance returns ClientIntentEventInput.ReportingInstance, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetReportingInstance() string { return v.ReportingInstance }
// GetSourceComponent returns ClientIntentEventInput.SourceComponent, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetSourceComponent() string { return v.SourceComponent }
// GetType returns ClientIntentEventInput.Type, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetType() string { return v.Type }
// GetReason returns ClientIntentEventInput.Reason, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetReason() string { return v.Reason }
// GetMessage returns ClientIntentEventInput.Message, and is useful for accessing the field via an interface.
func (v *ClientIntentEventInput) GetMessage() string { return v.Message }
type ClientIntentStatusInput struct {
Namespace string `json:"namespace"`
ClientName string `json:"clientName"`
ClientWorkloadKind string `json:"clientWorkloadKind"`
ClientIntentName string `json:"clientIntentName"`
Generation int `json:"generation"`
Timestamp time.Time `json:"timestamp"`
ObservedGeneration int `json:"observedGeneration"`
UpToDate bool `json:"upToDate"`
}
// GetNamespace returns ClientIntentStatusInput.Namespace, and is useful for accessing the field via an interface.
func (v *ClientIntentStatusInput) GetNamespace() string { return v.Namespace }
// GetClientName returns ClientIntentStatusInput.ClientName, and is useful for accessing the field via an interface.
func (v *ClientIntentStatusInput) GetClientName() string { return v.ClientName }
// GetClientWorkloadKind returns ClientIntentStatusInput.ClientWorkloadKind, and is useful for accessing the field via an interface.
func (v *ClientIntentStatusInput) GetClientWorkloadKind() string { return v.ClientWorkloadKind }
// GetClientIntentName returns ClientIntentStatusInput.ClientIntentName, and is useful for accessing the field via an interface.
func (v *ClientIntentStatusInput) GetClientIntentName() string { return v.ClientIntentName }
// GetGeneration returns ClientIntentStatusInput.Generation, and is useful for accessing the field via an interface.
func (v *ClientIntentStatusInput) GetGeneration() int { return v.Generation }
// GetTimestamp returns ClientIntentStatusInput.Timestamp, and is useful for accessing the field via an interface.
func (v *ClientIntentStatusInput) GetTimestamp() time.Time { return v.Timestamp }
// GetObservedGeneration returns ClientIntentStatusInput.ObservedGeneration, and is useful for accessing the field via an interface.
func (v *ClientIntentStatusInput) GetObservedGeneration() int { return v.ObservedGeneration }
// GetUpToDate returns ClientIntentStatusInput.UpToDate, and is useful for accessing the field via an interface.
func (v *ClientIntentStatusInput) GetUpToDate() bool { return v.UpToDate }
type ComponentType string
const (
ComponentTypeIntentsOperator ComponentType = "INTENTS_OPERATOR"
ComponentTypeCredentialsOperator ComponentType = "CREDENTIALS_OPERATOR"
ComponentTypeNetworkMapper ComponentType = "NETWORK_MAPPER"
)
type ConnectionsCount struct {
Current *int `json:"current"`
Removed *int `json:"removed"`
Added *int `json:"added"`
}
// GetCurrent returns ConnectionsCount.Current, and is useful for accessing the field via an interface.
func (v *ConnectionsCount) GetCurrent() *int { return v.Current }
// GetRemoved returns ConnectionsCount.Removed, and is useful for accessing the field via an interface.
func (v *ConnectionsCount) GetRemoved() *int { return v.Removed }
// GetAdded returns ConnectionsCount.Added, and is useful for accessing the field via an interface.
func (v *ConnectionsCount) GetAdded() *int { return v.Added }
type DNSIPPairInput struct {
DnsName *string `json:"dnsName"`
Ips []*string `json:"ips"`
}
// GetDnsName returns DNSIPPairInput.DnsName, and is useful for accessing the field via an interface.
func (v *DNSIPPairInput) GetDnsName() *string { return v.DnsName }
// GetIps returns DNSIPPairInput.Ips, and is useful for accessing the field via an interface.
func (v *DNSIPPairInput) GetIps() []*string { return v.Ips }
type DatabaseConfigInput struct {
Dbname *string `json:"dbname"`
Table *string `json:"table"`
Operations []*DatabaseOperation `json:"operations"`
}
// GetDbname returns DatabaseConfigInput.Dbname, and is useful for accessing the field via an interface.
func (v *DatabaseConfigInput) GetDbname() *string { return v.Dbname }
// GetTable returns DatabaseConfigInput.Table, and is useful for accessing the field via an interface.
func (v *DatabaseConfigInput) GetTable() *string { return v.Table }
// GetOperations returns DatabaseConfigInput.Operations, and is useful for accessing the field via an interface.
func (v *DatabaseConfigInput) GetOperations() []*DatabaseOperation { return v.Operations }
type DatabaseOperation string
const (
DatabaseOperationAll DatabaseOperation = "ALL"
DatabaseOperationSelect DatabaseOperation = "SELECT"
DatabaseOperationInsert DatabaseOperation = "INSERT"
DatabaseOperationUpdate DatabaseOperation = "UPDATE"
DatabaseOperationDelete DatabaseOperation = "DELETE"
)
type ExternallyAccessibleServiceInput struct {
Namespace string `json:"namespace"`
ServerName string `json:"serverName"`
ServiceName string `json:"serviceName"`
ReferredByIngress bool `json:"referredByIngress"`
HasInternetFacingAWSALBIngress bool `json:"hasInternetFacingAWSALBIngress"`
ServiceType KubernetesServiceType `json:"serviceType"`
}
// GetNamespace returns ExternallyAccessibleServiceInput.Namespace, and is useful for accessing the field via an interface.
func (v *ExternallyAccessibleServiceInput) GetNamespace() string { return v.Namespace }
// GetServerName returns ExternallyAccessibleServiceInput.ServerName, and is useful for accessing the field via an interface.
func (v *ExternallyAccessibleServiceInput) GetServerName() string { return v.ServerName }
// GetServiceName returns ExternallyAccessibleServiceInput.ServiceName, and is useful for accessing the field via an interface.
func (v *ExternallyAccessibleServiceInput) GetServiceName() string { return v.ServiceName }
// GetReferredByIngress returns ExternallyAccessibleServiceInput.ReferredByIngress, and is useful for accessing the field via an interface.
func (v *ExternallyAccessibleServiceInput) GetReferredByIngress() bool { return v.ReferredByIngress }
// GetHasInternetFacingAWSALBIngress returns ExternallyAccessibleServiceInput.HasInternetFacingAWSALBIngress, and is useful for accessing the field via an interface.
func (v *ExternallyAccessibleServiceInput) GetHasInternetFacingAWSALBIngress() bool {
return v.HasInternetFacingAWSALBIngress
}
// GetServiceType returns ExternallyAccessibleServiceInput.ServiceType, and is useful for accessing the field via an interface.
func (v *ExternallyAccessibleServiceInput) GetServiceType() KubernetesServiceType {
return v.ServiceType
}
type ExternallyManagedPolicyWorkloadInput struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Kind string `json:"kind"`
}
// GetName returns ExternallyManagedPolicyWorkloadInput.Name, and is useful for accessing the field via an interface.
func (v *ExternallyManagedPolicyWorkloadInput) GetName() string { return v.Name }
// GetNamespace returns ExternallyManagedPolicyWorkloadInput.Namespace, and is useful for accessing the field via an interface.
func (v *ExternallyManagedPolicyWorkloadInput) GetNamespace() string { return v.Namespace }
// GetKind returns ExternallyManagedPolicyWorkloadInput.Kind, and is useful for accessing the field via an interface.
func (v *ExternallyManagedPolicyWorkloadInput) GetKind() string { return v.Kind }
type HTTPConfigInput struct {
Path *string `json:"path"`
Methods []*HTTPMethod `json:"methods"`
}
// GetPath returns HTTPConfigInput.Path, and is useful for accessing the field via an interface.
func (v *HTTPConfigInput) GetPath() *string { return v.Path }
// GetMethods returns HTTPConfigInput.Methods, and is useful for accessing the field via an interface.
func (v *HTTPConfigInput) GetMethods() []*HTTPMethod { return v.Methods }
type HTTPMethod string
const (
HTTPMethodGet HTTPMethod = "GET"
HTTPMethodPost HTTPMethod = "POST"
HTTPMethodPut HTTPMethod = "PUT"
HTTPMethodDelete HTTPMethod = "DELETE"
HTTPMethodOptions HTTPMethod = "OPTIONS"
HTTPMethodTrace HTTPMethod = "TRACE"
HTTPMethodPatch HTTPMethod = "PATCH"
HTTPMethodConnect HTTPMethod = "CONNECT"
HTTPMethodAll HTTPMethod = "ALL"
)
type IngressControllerConfigInput struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Kind string `json:"kind"`
}
// GetName returns IngressControllerConfigInput.Name, and is useful for accessing the field via an interface.
func (v *IngressControllerConfigInput) GetName() string { return v.Name }
// GetNamespace returns IngressControllerConfigInput.Namespace, and is useful for accessing the field via an interface.
func (v *IngressControllerConfigInput) GetNamespace() string { return v.Namespace }
// GetKind returns IngressControllerConfigInput.Kind, and is useful for accessing the field via an interface.
func (v *IngressControllerConfigInput) GetKind() string { return v.Kind }
type IntentInput struct {
Namespace *string `json:"namespace"`
ClientName *string `json:"clientName"`
ClientResolutionData *string `json:"clientResolutionData"`
ClientWorkloadKind *string `json:"clientWorkloadKind"`
ClientNameResolvedUsingAnnotation *bool `json:"clientNameResolvedUsingAnnotation"`
ServerName *string `json:"serverName"`
ServerResolutionData *string `json:"serverResolutionData"`
ServerWorkloadKind *string `json:"serverWorkloadKind"`
ServerNameResolvedUsingAnnotation *bool `json:"serverNameResolvedUsingAnnotation"`
ServerAlias *ServerAliasInput `json:"serverAlias"`
ServerNamespace *string `json:"serverNamespace"`
Type *IntentType `json:"type"`
Topics []*KafkaConfigInput `json:"topics"`
Resources []*HTTPConfigInput `json:"resources"`
DatabaseResources []*DatabaseConfigInput `json:"databaseResources"`
AwsRole *string `json:"awsRole"`
AwsActions []*string `json:"awsActions"`
AzureRoles []*string `json:"azureRoles"`
AzureActions []*string `json:"azureActions"`
AzureDataActions []*string `json:"azureDataActions"`
AzureKeyVaultPolicy *AzureKeyVaultPolicyInput `json:"azureKeyVaultPolicy"`
GcpPermissions []*string `json:"gcpPermissions"`
Internet *InternetConfigInput `json:"internet"`
Status *IntentStatusInput `json:"status"`
ResolutionData *string `json:"resolutionData"`
ConnectionsCount *ConnectionsCount `json:"connectionsCount"`
}
// GetNamespace returns IntentInput.Namespace, and is useful for accessing the field via an interface.
func (v *IntentInput) GetNamespace() *string { return v.Namespace }
// GetClientName returns IntentInput.ClientName, and is useful for accessing the field via an interface.
func (v *IntentInput) GetClientName() *string { return v.ClientName }
// GetClientResolutionData returns IntentInput.ClientResolutionData, and is useful for accessing the field via an interface.
func (v *IntentInput) GetClientResolutionData() *string { return v.ClientResolutionData }
// GetClientWorkloadKind returns IntentInput.ClientWorkloadKind, and is useful for accessing the field via an interface.
func (v *IntentInput) GetClientWorkloadKind() *string { return v.ClientWorkloadKind }
// GetClientNameResolvedUsingAnnotation returns IntentInput.ClientNameResolvedUsingAnnotation, and is useful for accessing the field via an interface.
func (v *IntentInput) GetClientNameResolvedUsingAnnotation() *bool {
return v.ClientNameResolvedUsingAnnotation
}
// GetServerName returns IntentInput.ServerName, and is useful for accessing the field via an interface.
func (v *IntentInput) GetServerName() *string { return v.ServerName }
// GetServerResolutionData returns IntentInput.ServerResolutionData, and is useful for accessing the field via an interface.
func (v *IntentInput) GetServerResolutionData() *string { return v.ServerResolutionData }
// GetServerWorkloadKind returns IntentInput.ServerWorkloadKind, and is useful for accessing the field via an interface.
func (v *IntentInput) GetServerWorkloadKind() *string { return v.ServerWorkloadKind }
// GetServerNameResolvedUsingAnnotation returns IntentInput.ServerNameResolvedUsingAnnotation, and is useful for accessing the field via an interface.
func (v *IntentInput) GetServerNameResolvedUsingAnnotation() *bool {
return v.ServerNameResolvedUsingAnnotation
}
// GetServerAlias returns IntentInput.ServerAlias, and is useful for accessing the field via an interface.
func (v *IntentInput) GetServerAlias() *ServerAliasInput { return v.ServerAlias }
// GetServerNamespace returns IntentInput.ServerNamespace, and is useful for accessing the field via an interface.
func (v *IntentInput) GetServerNamespace() *string { return v.ServerNamespace }
// GetType returns IntentInput.Type, and is useful for accessing the field via an interface.
func (v *IntentInput) GetType() *IntentType { return v.Type }
// GetTopics returns IntentInput.Topics, and is useful for accessing the field via an interface.
func (v *IntentInput) GetTopics() []*KafkaConfigInput { return v.Topics }
// GetResources returns IntentInput.Resources, and is useful for accessing the field via an interface.
func (v *IntentInput) GetResources() []*HTTPConfigInput { return v.Resources }
// GetDatabaseResources returns IntentInput.DatabaseResources, and is useful for accessing the field via an interface.
func (v *IntentInput) GetDatabaseResources() []*DatabaseConfigInput { return v.DatabaseResources }
// GetAwsRole returns IntentInput.AwsRole, and is useful for accessing the field via an interface.
func (v *IntentInput) GetAwsRole() *string { return v.AwsRole }
// GetAwsActions returns IntentInput.AwsActions, and is useful for accessing the field via an interface.
func (v *IntentInput) GetAwsActions() []*string { return v.AwsActions }
// GetAzureRoles returns IntentInput.AzureRoles, and is useful for accessing the field via an interface.
func (v *IntentInput) GetAzureRoles() []*string { return v.AzureRoles }
// GetAzureActions returns IntentInput.AzureActions, and is useful for accessing the field via an interface.
func (v *IntentInput) GetAzureActions() []*string { return v.AzureActions }
// GetAzureDataActions returns IntentInput.AzureDataActions, and is useful for accessing the field via an interface.
func (v *IntentInput) GetAzureDataActions() []*string { return v.AzureDataActions }
// GetAzureKeyVaultPolicy returns IntentInput.AzureKeyVaultPolicy, and is useful for accessing the field via an interface.
func (v *IntentInput) GetAzureKeyVaultPolicy() *AzureKeyVaultPolicyInput {
return v.AzureKeyVaultPolicy
}
// GetGcpPermissions returns IntentInput.GcpPermissions, and is useful for accessing the field via an interface.
func (v *IntentInput) GetGcpPermissions() []*string { return v.GcpPermissions }
// GetInternet returns IntentInput.Internet, and is useful for accessing the field via an interface.
func (v *IntentInput) GetInternet() *InternetConfigInput { return v.Internet }
// GetStatus returns IntentInput.Status, and is useful for accessing the field via an interface.
func (v *IntentInput) GetStatus() *IntentStatusInput { return v.Status }
// GetResolutionData returns IntentInput.ResolutionData, and is useful for accessing the field via an interface.
func (v *IntentInput) GetResolutionData() *string { return v.ResolutionData }
// GetConnectionsCount returns IntentInput.ConnectionsCount, and is useful for accessing the field via an interface.
func (v *IntentInput) GetConnectionsCount() *ConnectionsCount { return v.ConnectionsCount }
type IntentStatusInput struct {
IstioStatus *IstioStatusInput `json:"istioStatus"`
}
// GetIstioStatus returns IntentStatusInput.IstioStatus, and is useful for accessing the field via an interface.
func (v *IntentStatusInput) GetIstioStatus() *IstioStatusInput { return v.IstioStatus }
type IntentType string
const (
IntentTypeKubernetes IntentType = "KUBERNETES"
IntentTypeHttp IntentType = "HTTP"
IntentTypeKafka IntentType = "KAFKA"
IntentTypeDatabase IntentType = "DATABASE"
IntentTypeAws IntentType = "AWS"
IntentTypeGcp IntentType = "GCP"
IntentTypeAzure IntentType = "AZURE"
IntentTypeS3 IntentType = "S3"
IntentTypeInternet IntentType = "INTERNET"
)
type IntentsOperatorConfigurationInput struct {
GlobalEnforcementEnabled bool `json:"globalEnforcementEnabled"`
NetworkPolicyEnforcementEnabled bool `json:"networkPolicyEnforcementEnabled"`
KafkaACLEnforcementEnabled bool `json:"kafkaACLEnforcementEnabled"`
IstioPolicyEnforcementEnabled bool `json:"istioPolicyEnforcementEnabled"`
LinkerdPolicyEnforcementEnabled bool `json:"linkerdPolicyEnforcementEnabled"`
ProtectedServicesEnabled bool `json:"protectedServicesEnabled"`
EgressNetworkPolicyEnforcementEnabled bool `json:"egressNetworkPolicyEnforcementEnabled"`
AwsIAMPolicyEnforcementEnabled bool `json:"awsIAMPolicyEnforcementEnabled"`
GcpIAMPolicyEnforcementEnabled bool `json:"gcpIAMPolicyEnforcementEnabled"`
AzureIAMPolicyEnforcementEnabled bool `json:"azureIAMPolicyEnforcementEnabled"`
DatabaseEnforcementEnabled bool `json:"databaseEnforcementEnabled"`
StrictModeEnabled bool `json:"strictModeEnabled"`
ExcludedStrictModeNamespaces []string `json:"excludedStrictModeNamespaces"`
EnforcedNamespaces []string `json:"enforcedNamespaces"`
IngressControllerConfig []IngressControllerConfigInput `json:"ingressControllerConfig"`
AwsALBLoadBalancerExemptionEnabled bool `json:"awsALBLoadBalancerExemptionEnabled"`
AllowExternalTrafficPolicy AllowExternalTrafficPolicy `json:"allowExternalTrafficPolicy"`
ExternallyManagedPolicyWorkloads []ExternallyManagedPolicyWorkloadInput `json:"externallyManagedPolicyWorkloads"`
AutomateThirdPartyNetworkPolicies AutomateThirdPartyNetworkPolicy `json:"automateThirdPartyNetworkPolicies"`
PrometheusServerConfigs []PrometheusServerConfigInput `json:"prometheusServerConfigs"`
AutomatedThirdPartyPolicyTypes []AutomatedThirdPartyPolicyTypes `json:"automatedThirdPartyPolicyTypes"`
}
// GetGlobalEnforcementEnabled returns IntentsOperatorConfigurationInput.GlobalEnforcementEnabled, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetGlobalEnforcementEnabled() bool {
return v.GlobalEnforcementEnabled
}
// GetNetworkPolicyEnforcementEnabled returns IntentsOperatorConfigurationInput.NetworkPolicyEnforcementEnabled, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetNetworkPolicyEnforcementEnabled() bool {
return v.NetworkPolicyEnforcementEnabled
}
// GetKafkaACLEnforcementEnabled returns IntentsOperatorConfigurationInput.KafkaACLEnforcementEnabled, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetKafkaACLEnforcementEnabled() bool {
return v.KafkaACLEnforcementEnabled
}
// GetIstioPolicyEnforcementEnabled returns IntentsOperatorConfigurationInput.IstioPolicyEnforcementEnabled, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetIstioPolicyEnforcementEnabled() bool {
return v.IstioPolicyEnforcementEnabled
}
// GetLinkerdPolicyEnforcementEnabled returns IntentsOperatorConfigurationInput.LinkerdPolicyEnforcementEnabled, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetLinkerdPolicyEnforcementEnabled() bool {
return v.LinkerdPolicyEnforcementEnabled
}
// GetProtectedServicesEnabled returns IntentsOperatorConfigurationInput.ProtectedServicesEnabled, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetProtectedServicesEnabled() bool {
return v.ProtectedServicesEnabled
}
// GetEgressNetworkPolicyEnforcementEnabled returns IntentsOperatorConfigurationInput.EgressNetworkPolicyEnforcementEnabled, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetEgressNetworkPolicyEnforcementEnabled() bool {
return v.EgressNetworkPolicyEnforcementEnabled
}
// GetAwsIAMPolicyEnforcementEnabled returns IntentsOperatorConfigurationInput.AwsIAMPolicyEnforcementEnabled, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetAwsIAMPolicyEnforcementEnabled() bool {
return v.AwsIAMPolicyEnforcementEnabled
}
// GetGcpIAMPolicyEnforcementEnabled returns IntentsOperatorConfigurationInput.GcpIAMPolicyEnforcementEnabled, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetGcpIAMPolicyEnforcementEnabled() bool {
return v.GcpIAMPolicyEnforcementEnabled
}
// GetAzureIAMPolicyEnforcementEnabled returns IntentsOperatorConfigurationInput.AzureIAMPolicyEnforcementEnabled, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetAzureIAMPolicyEnforcementEnabled() bool {
return v.AzureIAMPolicyEnforcementEnabled
}
// GetDatabaseEnforcementEnabled returns IntentsOperatorConfigurationInput.DatabaseEnforcementEnabled, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetDatabaseEnforcementEnabled() bool {
return v.DatabaseEnforcementEnabled
}
// GetStrictModeEnabled returns IntentsOperatorConfigurationInput.StrictModeEnabled, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetStrictModeEnabled() bool { return v.StrictModeEnabled }
// GetExcludedStrictModeNamespaces returns IntentsOperatorConfigurationInput.ExcludedStrictModeNamespaces, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetExcludedStrictModeNamespaces() []string {
return v.ExcludedStrictModeNamespaces
}
// GetEnforcedNamespaces returns IntentsOperatorConfigurationInput.EnforcedNamespaces, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetEnforcedNamespaces() []string {
return v.EnforcedNamespaces
}
// GetIngressControllerConfig returns IntentsOperatorConfigurationInput.IngressControllerConfig, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetIngressControllerConfig() []IngressControllerConfigInput {
return v.IngressControllerConfig
}
// GetAwsALBLoadBalancerExemptionEnabled returns IntentsOperatorConfigurationInput.AwsALBLoadBalancerExemptionEnabled, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetAwsALBLoadBalancerExemptionEnabled() bool {
return v.AwsALBLoadBalancerExemptionEnabled
}
// GetAllowExternalTrafficPolicy returns IntentsOperatorConfigurationInput.AllowExternalTrafficPolicy, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetAllowExternalTrafficPolicy() AllowExternalTrafficPolicy {
return v.AllowExternalTrafficPolicy
}
// GetExternallyManagedPolicyWorkloads returns IntentsOperatorConfigurationInput.ExternallyManagedPolicyWorkloads, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetExternallyManagedPolicyWorkloads() []ExternallyManagedPolicyWorkloadInput {
return v.ExternallyManagedPolicyWorkloads
}
// GetAutomateThirdPartyNetworkPolicies returns IntentsOperatorConfigurationInput.AutomateThirdPartyNetworkPolicies, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetAutomateThirdPartyNetworkPolicies() AutomateThirdPartyNetworkPolicy {
return v.AutomateThirdPartyNetworkPolicies
}
// GetPrometheusServerConfigs returns IntentsOperatorConfigurationInput.PrometheusServerConfigs, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetPrometheusServerConfigs() []PrometheusServerConfigInput {
return v.PrometheusServerConfigs
}
// GetAutomatedThirdPartyPolicyTypes returns IntentsOperatorConfigurationInput.AutomatedThirdPartyPolicyTypes, and is useful for accessing the field via an interface.
func (v *IntentsOperatorConfigurationInput) GetAutomatedThirdPartyPolicyTypes() []AutomatedThirdPartyPolicyTypes {
return v.AutomatedThirdPartyPolicyTypes
}
type InternetConfigInput struct {
Domains []*string `json:"domains"`
DiscoveredTarget *DNSIPPairInput `json:"discoveredTarget"`
Ips []*string `json:"ips"`
Ports []*int `json:"ports"`
}
// GetDomains returns InternetConfigInput.Domains, and is useful for accessing the field via an interface.
func (v *InternetConfigInput) GetDomains() []*string { return v.Domains }
// GetDiscoveredTarget returns InternetConfigInput.DiscoveredTarget, and is useful for accessing the field via an interface.
func (v *InternetConfigInput) GetDiscoveredTarget() *DNSIPPairInput { return v.DiscoveredTarget }
// GetIps returns InternetConfigInput.Ips, and is useful for accessing the field via an interface.
func (v *InternetConfigInput) GetIps() []*string { return v.Ips }
// GetPorts returns InternetConfigInput.Ports, and is useful for accessing the field via an interface.
func (v *InternetConfigInput) GetPorts() []*int { return v.Ports }
type IstioStatusInput struct {
ServiceAccountName *string `json:"serviceAccountName"`
IsServiceAccountShared *bool `json:"isServiceAccountShared"`
IsServerMissingSidecar *bool `json:"isServerMissingSidecar"`
IsClientMissingSidecar *bool `json:"isClientMissingSidecar"`
}
// GetServiceAccountName returns IstioStatusInput.ServiceAccountName, and is useful for accessing the field via an interface.
func (v *IstioStatusInput) GetServiceAccountName() *string { return v.ServiceAccountName }
// GetIsServiceAccountShared returns IstioStatusInput.IsServiceAccountShared, and is useful for accessing the field via an interface.
func (v *IstioStatusInput) GetIsServiceAccountShared() *bool { return v.IsServiceAccountShared }
// GetIsServerMissingSidecar returns IstioStatusInput.IsServerMissingSidecar, and is useful for accessing the field via an interface.
func (v *IstioStatusInput) GetIsServerMissingSidecar() *bool { return v.IsServerMissingSidecar }
// GetIsClientMissingSidecar returns IstioStatusInput.IsClientMissingSidecar, and is useful for accessing the field via an interface.
func (v *IstioStatusInput) GetIsClientMissingSidecar() *bool { return v.IsClientMissingSidecar }
type KafkaConfigInput struct {
Name *string `json:"name"`
Operations []*KafkaOperation `json:"operations"`
}
// GetName returns KafkaConfigInput.Name, and is useful for accessing the field via an interface.
func (v *KafkaConfigInput) GetName() *string { return v.Name }
// GetOperations returns KafkaConfigInput.Operations, and is useful for accessing the field via an interface.
func (v *KafkaConfigInput) GetOperations() []*KafkaOperation { return v.Operations }
type KafkaOperation string
const (
KafkaOperationAll KafkaOperation = "ALL"
KafkaOperationConsume KafkaOperation = "CONSUME"
KafkaOperationProduce KafkaOperation = "PRODUCE"
KafkaOperationCreate KafkaOperation = "CREATE"
KafkaOperationAlter KafkaOperation = "ALTER"
KafkaOperationDelete KafkaOperation = "DELETE"
KafkaOperationDescribe KafkaOperation = "DESCRIBE"
KafkaOperationClusterAction KafkaOperation = "CLUSTER_ACTION"
KafkaOperationDescribeConfigs KafkaOperation = "DESCRIBE_CONFIGS"
KafkaOperationAlterConfigs KafkaOperation = "ALTER_CONFIGS"
KafkaOperationIdempotentWrite KafkaOperation = "IDEMPOTENT_WRITE"
)
type KafkaServerConfigInput struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Address string `json:"address"`
Topics []KafkaTopicInput `json:"topics"`
}
// GetName returns KafkaServerConfigInput.Name, and is useful for accessing the field via an interface.
func (v *KafkaServerConfigInput) GetName() string { return v.Name }
// GetNamespace returns KafkaServerConfigInput.Namespace, and is useful for accessing the field via an interface.
func (v *KafkaServerConfigInput) GetNamespace() string { return v.Namespace }
// GetAddress returns KafkaServerConfigInput.Address, and is useful for accessing the field via an interface.
func (v *KafkaServerConfigInput) GetAddress() string { return v.Address }
// GetTopics returns KafkaServerConfigInput.Topics, and is useful for accessing the field via an interface.
func (v *KafkaServerConfigInput) GetTopics() []KafkaTopicInput { return v.Topics }
type KafkaTopicInput struct {
ClientIdentityRequired bool `json:"clientIdentityRequired"`
IntentsRequired bool `json:"intentsRequired"`
Pattern KafkaTopicPattern `json:"pattern"`
Topic string `json:"topic"`
}
// GetClientIdentityRequired returns KafkaTopicInput.ClientIdentityRequired, and is useful for accessing the field via an interface.
func (v *KafkaTopicInput) GetClientIdentityRequired() bool { return v.ClientIdentityRequired }
// GetIntentsRequired returns KafkaTopicInput.IntentsRequired, and is useful for accessing the field via an interface.
func (v *KafkaTopicInput) GetIntentsRequired() bool { return v.IntentsRequired }
// GetPattern returns KafkaTopicInput.Pattern, and is useful for accessing the field via an interface.
func (v *KafkaTopicInput) GetPattern() KafkaTopicPattern { return v.Pattern }
// GetTopic returns KafkaTopicInput.Topic, and is useful for accessing the field via an interface.
func (v *KafkaTopicInput) GetTopic() string { return v.Topic }
type KafkaTopicPattern string
const (
KafkaTopicPatternLiteral KafkaTopicPattern = "LITERAL"
KafkaTopicPatternPrefix KafkaTopicPattern = "PREFIX"
)
type KeyValueInput struct {
Key string `json:"key"`
Value string `json:"value"`
}
// GetKey returns KeyValueInput.Key, and is useful for accessing the field via an interface.
func (v *KeyValueInput) GetKey() string { return v.Key }
// GetValue returns KeyValueInput.Value, and is useful for accessing the field via an interface.
func (v *KeyValueInput) GetValue() string { return v.Value }
type KubernetesServiceType string
const (
KubernetesServiceTypeLoadBalancer KubernetesServiceType = "LOAD_BALANCER"
KubernetesServiceTypeNodePort KubernetesServiceType = "NODE_PORT"
KubernetesServiceTypeClusterIp KubernetesServiceType = "CLUSTER_IP"
KubernetesServiceTypeExternalName KubernetesServiceType = "EXTERNAL_NAME"
)
type NetworkPolicyInput struct {
Name string `json:"name"`
Yaml string `json:"yaml"`
}
// GetName returns NetworkPolicyInput.Name, and is useful for accessing the field via an interface.
func (v *NetworkPolicyInput) GetName() string { return v.Name }
// GetYaml returns NetworkPolicyInput.Yaml, and is useful for accessing the field via an interface.
func (v *NetworkPolicyInput) GetYaml() string { return v.Yaml }
type PrometheusServerConfigInput struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Kind string `json:"kind"`
}
// GetName returns PrometheusServerConfigInput.Name, and is useful for accessing the field via an interface.
func (v *PrometheusServerConfigInput) GetName() string { return v.Name }
// GetNamespace returns PrometheusServerConfigInput.Namespace, and is useful for accessing the field via an interface.
func (v *PrometheusServerConfigInput) GetNamespace() string { return v.Namespace }
// GetKind returns PrometheusServerConfigInput.Kind, and is useful for accessing the field via an interface.
func (v *PrometheusServerConfigInput) GetKind() string { return v.Kind }
type ProtectedServiceInput struct {
Name string `json:"name"`
}
// GetName returns ProtectedServiceInput.Name, and is useful for accessing the field via an interface.
func (v *ProtectedServiceInput) GetName() string { return v.Name }
// ReportAppliedKubernetesIntentsResponse is returned by ReportAppliedKubernetesIntents on success.
type ReportAppliedKubernetesIntentsResponse struct {
ReportAppliedKubernetesIntents *bool `json:"reportAppliedKubernetesIntents"`
}
// GetReportAppliedKubernetesIntents returns ReportAppliedKubernetesIntentsResponse.ReportAppliedKubernetesIntents, and is useful for accessing the field via an interface.
func (v *ReportAppliedKubernetesIntentsResponse) GetReportAppliedKubernetesIntents() *bool {
return v.ReportAppliedKubernetesIntents
}
// ReportClientIntentEventsResponse is returned by ReportClientIntentEvents on success.
type ReportClientIntentEventsResponse struct {
ReportClientIntentEvent bool `json:"reportClientIntentEvent"`
}
// GetReportClientIntentEvent returns ReportClientIntentEventsResponse.ReportClientIntentEvent, and is useful for accessing the field via an interface.
func (v *ReportClientIntentEventsResponse) GetReportClientIntentEvent() bool {
return v.ReportClientIntentEvent
}
// ReportClientIntentStatusesResponse is returned by ReportClientIntentStatuses on success.
type ReportClientIntentStatusesResponse struct {
ReportClientIntentStatus bool `json:"reportClientIntentStatus"`
}
// GetReportClientIntentStatus returns ReportClientIntentStatusesResponse.ReportClientIntentStatus, and is useful for accessing the field via an interface.
func (v *ReportClientIntentStatusesResponse) GetReportClientIntentStatus() bool {
return v.ReportClientIntentStatus
}
// ReportComponentStatusResponse is returned by ReportComponentStatus on success.
type ReportComponentStatusResponse struct {
// Report integration components status
ReportIntegrationComponentStatus bool `json:"reportIntegrationComponentStatus"`
}
// GetReportIntegrationComponentStatus returns ReportComponentStatusResponse.ReportIntegrationComponentStatus, and is useful for accessing the field via an interface.
func (v *ReportComponentStatusResponse) GetReportIntegrationComponentStatus() bool {
return v.ReportIntegrationComponentStatus
}
// ReportExternallyAccessibleServicesResponse is returned by ReportExternallyAccessibleServices on success.
type ReportExternallyAccessibleServicesResponse struct {
ReportExternallyAccessibleServices bool `json:"reportExternallyAccessibleServices"`
}
// GetReportExternallyAccessibleServices returns ReportExternallyAccessibleServicesResponse.ReportExternallyAccessibleServices, and is useful for accessing the field via an interface.
func (v *ReportExternallyAccessibleServicesResponse) GetReportExternallyAccessibleServices() bool {
return v.ReportExternallyAccessibleServices
}
// ReportIntentsOperatorConfigurationResponse is returned by ReportIntentsOperatorConfiguration on success.
type ReportIntentsOperatorConfigurationResponse struct {
ReportIntentsOperatorConfiguration bool `json:"reportIntentsOperatorConfiguration"`
}
// GetReportIntentsOperatorConfiguration returns ReportIntentsOperatorConfigurationResponse.ReportIntentsOperatorConfiguration, and is useful for accessing the field via an interface.
func (v *ReportIntentsOperatorConfigurationResponse) GetReportIntentsOperatorConfiguration() bool {
return v.ReportIntentsOperatorConfiguration
}
// ReportKafkaServerConfigResponse is returned by ReportKafkaServerConfig on success.
type ReportKafkaServerConfigResponse struct {
ReportKafkaServerConfigs bool `json:"reportKafkaServerConfigs"`
}
// GetReportKafkaServerConfigs returns ReportKafkaServerConfigResponse.ReportKafkaServerConfigs, and is useful for accessing the field via an interface.
func (v *ReportKafkaServerConfigResponse) GetReportKafkaServerConfigs() bool {
return v.ReportKafkaServerConfigs
}
// ReportNetworkPoliciesResponse is returned by ReportNetworkPolicies on success.
type ReportNetworkPoliciesResponse struct {
ReportNetworkPolicies bool `json:"reportNetworkPolicies"`
}
// GetReportNetworkPolicies returns ReportNetworkPoliciesResponse.ReportNetworkPolicies, and is useful for accessing the field via an interface.
func (v *ReportNetworkPoliciesResponse) GetReportNetworkPolicies() bool {
return v.ReportNetworkPolicies
}
// ReportProtectedServicesSnapshotResponse is returned by ReportProtectedServicesSnapshot on success.
type ReportProtectedServicesSnapshotResponse struct {
ReportProtectedServicesSnapshot bool `json:"reportProtectedServicesSnapshot"`
}
// GetReportProtectedServicesSnapshot returns ReportProtectedServicesSnapshotResponse.ReportProtectedServicesSnapshot, and is useful for accessing the field via an interface.
func (v *ReportProtectedServicesSnapshotResponse) GetReportProtectedServicesSnapshot() bool {
return v.ReportProtectedServicesSnapshot
}
type ServerAliasInput struct {
Name *string `json:"name"`
Kind *string `json:"kind"`
}
// GetName returns ServerAliasInput.Name, and is useful for accessing the field via an interface.
func (v *ServerAliasInput) GetName() *string { return v.Name }
// GetKind returns ServerAliasInput.Kind, and is useful for accessing the field via an interface.
func (v *ServerAliasInput) GetKind() *string { return v.Kind }
type UserErrorType string
const (
UserErrorTypeUnauthenticated UserErrorType = "UNAUTHENTICATED"
UserErrorTypeNotFound UserErrorType = "NOT_FOUND"
UserErrorTypeInternalServerError UserErrorType = "INTERNAL_SERVER_ERROR"
UserErrorTypeBadRequest UserErrorType = "BAD_REQUEST"
UserErrorTypeForbidden UserErrorType = "FORBIDDEN"
UserErrorTypeConflict UserErrorType = "CONFLICT"
UserErrorTypeBadUserInput UserErrorType = "BAD_USER_INPUT"
UserErrorTypeAppliedIntentsError UserErrorType = "APPLIED_INTENTS_ERROR"
UserErrorTypeTimeout UserErrorType = "TIMEOUT"
)
// __ReportAppliedKubernetesIntentsInput is used internally by genqlient
type __ReportAppliedKubernetesIntentsInput struct {
Namespace *string `json:"namespace"`
Intents []*IntentInput `json:"intents"`
ClusterId *string `json:"clusterId"`
}
// GetNamespace returns __ReportAppliedKubernetesIntentsInput.Namespace, and is useful for accessing the field via an interface.
func (v *__ReportAppliedKubernetesIntentsInput) GetNamespace() *string { return v.Namespace }
// GetIntents returns __ReportAppliedKubernetesIntentsInput.Intents, and is useful for accessing the field via an interface.
func (v *__ReportAppliedKubernetesIntentsInput) GetIntents() []*IntentInput { return v.Intents }
// GetClusterId returns __ReportAppliedKubernetesIntentsInput.ClusterId, and is useful for accessing the field via an interface.
func (v *__ReportAppliedKubernetesIntentsInput) GetClusterId() *string { return v.ClusterId }
// __ReportClientIntentEventsInput is used internally by genqlient
type __ReportClientIntentEventsInput struct {
Events []ClientIntentEventInput `json:"events"`
}
// GetEvents returns __ReportClientIntentEventsInput.Events, and is useful for accessing the field via an interface.
func (v *__ReportClientIntentEventsInput) GetEvents() []ClientIntentEventInput { return v.Events }
// __ReportClientIntentStatusesInput is used internally by genqlient
type __ReportClientIntentStatusesInput struct {
Statuses []ClientIntentStatusInput `json:"statuses"`
}
// GetStatuses returns __ReportClientIntentStatusesInput.Statuses, and is useful for accessing the field via an interface.
func (v *__ReportClientIntentStatusesInput) GetStatuses() []ClientIntentStatusInput {
return v.Statuses
}
// __ReportComponentStatusInput is used internally by genqlient
type __ReportComponentStatusInput struct {
Component ComponentType `json:"component"`
}
// GetComponent returns __ReportComponentStatusInput.Component, and is useful for accessing the field via an interface.
func (v *__ReportComponentStatusInput) GetComponent() ComponentType { return v.Component }
// __ReportExternallyAccessibleServicesInput is used internally by genqlient
type __ReportExternallyAccessibleServicesInput struct {
Namespace string `json:"namespace"`
Services []ExternallyAccessibleServiceInput `json:"services"`
}
// GetNamespace returns __ReportExternallyAccessibleServicesInput.Namespace, and is useful for accessing the field via an interface.
func (v *__ReportExternallyAccessibleServicesInput) GetNamespace() string { return v.Namespace }
// GetServices returns __ReportExternallyAccessibleServicesInput.Services, and is useful for accessing the field via an interface.
func (v *__ReportExternallyAccessibleServicesInput) GetServices() []ExternallyAccessibleServiceInput {
return v.Services
}
// __ReportIntentsOperatorConfigurationInput is used internally by genqlient
type __ReportIntentsOperatorConfigurationInput struct {
Configuration IntentsOperatorConfigurationInput `json:"configuration"`
}
// GetConfiguration returns __ReportIntentsOperatorConfigurationInput.Configuration, and is useful for accessing the field via an interface.
func (v *__ReportIntentsOperatorConfigurationInput) GetConfiguration() IntentsOperatorConfigurationInput {
return v.Configuration
}
// __ReportKafkaServerConfigInput is used internally by genqlient
type __ReportKafkaServerConfigInput struct {
Namespace string `json:"namespace"`
KafkaServerConfigs []KafkaServerConfigInput `json:"kafkaServerConfigs"`
}
// GetNamespace returns __ReportKafkaServerConfigInput.Namespace, and is useful for accessing the field via an interface.
func (v *__ReportKafkaServerConfigInput) GetNamespace() string { return v.Namespace }
// GetKafkaServerConfigs returns __ReportKafkaServerConfigInput.KafkaServerConfigs, and is useful for accessing the field via an interface.
func (v *__ReportKafkaServerConfigInput) GetKafkaServerConfigs() []KafkaServerConfigInput {
return v.KafkaServerConfigs
}
// __ReportNetworkPoliciesInput is used internally by genqlient
type __ReportNetworkPoliciesInput struct {
Namespace string `json:"namespace"`
Policies []NetworkPolicyInput `json:"policies"`
}
// GetNamespace returns __ReportNetworkPoliciesInput.Namespace, and is useful for accessing the field via an interface.
func (v *__ReportNetworkPoliciesInput) GetNamespace() string { return v.Namespace }
// GetPolicies returns __ReportNetworkPoliciesInput.Policies, and is useful for accessing the field via an interface.
func (v *__ReportNetworkPoliciesInput) GetPolicies() []NetworkPolicyInput { return v.Policies }
// __ReportProtectedServicesSnapshotInput is used internally by genqlient
type __ReportProtectedServicesSnapshotInput struct {
Namespace string `json:"namespace"`
Services []ProtectedServiceInput `json:"services"`
}
// GetNamespace returns __ReportProtectedServicesSnapshotInput.Namespace, and is useful for accessing the field via an interface.
func (v *__ReportProtectedServicesSnapshotInput) GetNamespace() string { return v.Namespace }
// GetServices returns __ReportProtectedServicesSnapshotInput.Services, and is useful for accessing the field via an interface.
func (v *__ReportProtectedServicesSnapshotInput) GetServices() []ProtectedServiceInput {
return v.Services
}
// dummyResponse is returned by dummy on success.
type dummyResponse struct {
DummyError UserErrorType `json:"dummyError"`
}
// GetDummyError returns dummyResponse.DummyError, and is useful for accessing the field via an interface.
func (v *dummyResponse) GetDummyError() UserErrorType { return v.DummyError }
func ReportAppliedKubernetesIntents(
ctx context.Context,
client graphql.Client,
namespace *string,
intents []*IntentInput,
clusterId *string,
) (*ReportAppliedKubernetesIntentsResponse, error) {
req := &graphql.Request{
OpName: "ReportAppliedKubernetesIntents",
Query: `
mutation ReportAppliedKubernetesIntents ($namespace: String!, $intents: [IntentInput!]!, $clusterId: String!) {
reportAppliedKubernetesIntents(namespace: $namespace, intents: $intents, ossClusterId: $clusterId)
}
`,
Variables: &__ReportAppliedKubernetesIntentsInput{
Namespace: namespace,
Intents: intents,
ClusterId: clusterId,
},
}
var err error
var data ReportAppliedKubernetesIntentsResponse
resp := &graphql.Response{Data: &data}
err = client.MakeRequest(
ctx,
req,
resp,
)
return &data, err
}
func ReportClientIntentEvents(
ctx context.Context,
client graphql.Client,
events []ClientIntentEventInput,
) (*ReportClientIntentEventsResponse, error) {
req := &graphql.Request{
OpName: "ReportClientIntentEvents",
Query: `