-
Notifications
You must be signed in to change notification settings - Fork 13
/
types.go
908 lines (781 loc) · 36.3 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
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
package graphql
import (
"github.com/harness/harness-go-sdk/harness/time"
)
type CommonMetadata struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
CreatedBy *User `json:"createdBy,omitempty"`
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Tags []Tag `json:"tags,omitempty"`
}
type WorkflowConnection struct {
Nodes []Workflow
PageInfo PageInfo
}
type Workflow struct {
CommonMetadata
WorkflowVariables []Variable
}
type ServiceConnection struct {
Nodes []Service
PageInfo PageInfo
}
type PipelineConnection struct {
Nodes []Pipeline
PageInfo PageInfo
}
type Pipeline struct {
CommonMetadata
PipelineVariables []Variable
}
type Variable struct {
AllowMultipleVariables bool
AllowedValues []string
DefaultValue string
Fixed bool
Name string
Required bool
Type string
}
type InputVariable struct {
Name string
Value string
}
type EnvironmentConnection struct {
Nodes []Environment
PageInfo PageInfo
}
type Environment struct {
Application Application
CreatedAt string
CreatedBy User
Description string
Id string
InfrastructureDefinitions InfrastructureDefinitionConnection
Name string
Tags []Tag
Type string
}
type InfrastructureDefinitionConnection struct {
Nodes []InfrastructureDefinition
PageInfo PageInfo
}
type InfrastructureDefinition struct {
CreatedAt string
DeploymentType string
Environment Environment
Id string
Name string
ScopedToServices []string
}
type User struct {
Email string `json:"email,omitempty"`
Id string `json:"id,omitempty"`
IsEmailVerified bool `json:"isEmailVerified,omitempty"`
IsImportedFromIdentityProvider bool `json:"isImportedFromIdentityProvider,omitempty"`
IsPasswordExpired bool `json:"isPasswordExpired,omitempty"`
IsTwoFactorAuthenticationEnabled bool `json:"isTwoFactorAuthenticationEnabled,omitempty"`
IsUserLocked bool `json:"isUserLocked,omitempty"`
Name string `json:"name,omitempty"`
}
type CreateUserInput struct {
ClientMutationID string `json:"clientMutationId,omitempty"`
Email string `json:"email,omitempty"`
Name string `json:"name,omitempty"`
UserGroupIds []string `json:"userGroupIds,omitempty"`
}
type UserGroup struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
ImportedBySCIM bool `json:"importedByScim,omitempty"`
IsSSOLinked bool `json:"isSSOLinked,omitempty"`
NotificationSettings *NotificationSettings `json:"notificationSettings,omitempty"`
Permissions *UserGroupPermissions `json:"permissions,omitempty"`
LDAPSettings *LDAPSettings `json:"ldapSettings,omitempty"`
SAMLSettings *SAMLSettings `json:"samlSettings,omitempty"`
}
type CreateUserGroupInput struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
ImportedBySCIM bool `json:"importedByScim,omitempty"`
IsSSOLinked bool `json:"isSSOLinked,omitempty"`
NotificationSettings *NotificationSettings `json:"notificationSettings,omitempty"`
Permissions *UserGroupPermissions `json:"permissions,omitempty"`
SSOSetting *SSOSettingInput `json:"ssoSetting,omitempty"`
}
type UpdateUserGroupInput struct {
Id string `json:"userGroupId,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
ImportedBySCIM bool `json:"importedByScim,omitempty"`
IsSSOLinked bool `json:"isSSOLinked,omitempty"`
NotificationSettings *NotificationSettings `json:"notificationSettings,omitempty"`
Permissions *UserGroupPermissions `json:"permissions,omitempty"`
SSOSetting *SSOSettingInput `json:"ssoSetting,omitempty"`
}
type SSOSettingInput struct {
LDAPSettings *LDAPSettings `json:"ldapSettings,omitempty"`
SAMLSettings *SAMLSettings `json:"samlSettings,omitempty"`
}
type LDAPSettings struct {
GroupDN string `json:"groupDN,omitempty"`
GroupName string `json:"groupName,omitempty"`
SSOProviderId string `json:"ssoProviderId,omitempty"`
}
type SAMLSettings struct {
GroupName string `json:"groupName,omitempty"`
SSOProviderId string `json:"ssoProviderId,omitempty"`
}
type LinkedSSOSettings struct {
GroupDN string `json:"groupDN,omitempty"`
GroupName string `json:"groupName,omitempty"`
SsoProviderId string `json:"ssoProviderId,omitempty"`
}
type SSOProvider struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
SSOType SSOType `json:"ssoType,omitempty"`
}
type NotificationSettings struct {
GroupEmailAddresses []string `json:"groupEmailAddresses,omitempty"`
MicrosoftTeamsWebhookUrl string `json:"microsoftTeamsWebhookUrl,omitempty"`
SendMailToNewMembers bool `json:"sendMailToNewMembers,omitempty"`
SendNotificationToMembers bool `json:"sendNotificationToMembers,omitempty"`
SlackNotificationSetting *SlackNotificationSetting `json:"slackNotificationSetting,omitempty"`
// PagerDutyIntegrationKey string `json:"pagerDutyIntegrationKey,omitempty"`
}
type UserGroupPermissions struct {
AccountPermissions *AccountPermissions `json:"accountPermissions,omitempty"`
AppPermissions []*AppPermission `json:"appPermissions,omitempty"`
}
type AppPermission struct {
Actions []Action `json:"actions,omitempty"`
Applications *AppFilter `json:"applications,omitempty"`
Deployments *DeploymentPermissionFilter `json:"deployments,omitempty"`
Environments *EnvPermissionFilter `json:"environments,omitempty"`
PermissionType AppPermissionType `json:"permissionType,omitempty"`
Pipelines *PipelinePermissionFilter `json:"pipelines,omitempty"`
Provisioners *ProvisionerPermissionFilter `json:"provisioners,omitempty"`
Services *ServicePermissionFilter `json:"services,omitempty"`
Templates *TemplatePermissionFilter `json:"templates,omitempty"`
Workflows *WorkflowPermissionFilter `json:"workflows,omitempty"`
}
type WorkflowPermissionFilter struct {
EnvIds []string `json:"envIds,omitempty"`
FilterTypes []WorkflowPermissionFilterType `json:"filterTypes,omitempty"`
}
type AddUserToUserGroupInput struct {
ClientMutationId string `json:"clientMutationId,omitempty"`
UserGroupId string `json:"userGroupId,omitempty"`
UserId string `json:"userId,omitempty"`
}
type ServicePermissionFilter struct {
FilterType FilterType `json:"filterType,omitempty"`
ServiceIds []string `json:"serviceIds,omitempty"`
}
type ProvisionerPermissionFilter struct {
FilterType FilterType `json:"filterType,omitempty"`
ProvisionerIds []string `json:"provisionerIds,omitempty"`
}
type PipelinePermissionFilter struct {
EnvIds []string `json:"envIds,omitempty"`
FilterTypes []PipelinePermissionFilterType `json:"filterTypes,omitempty"`
}
type AppFilter struct {
AppIds []string `json:"appIds,omitempty"`
FilterType FilterType `json:"filterType,omitempty"`
}
type DeploymentPermissionFilter struct {
EnvIds []string `json:"envIds,omitempty"`
FilterTypes []DeploymentPermissionFilterType `json:"filterTypes,omitempty"`
}
type EnvPermissionFilter struct {
EnvIds []string `json:"envIds,omitempty"`
FilterTypes []EnvFilterType `json:"filterTypes,omitempty"`
}
type TemplatePermissionFilter struct {
TemplateIds []string `json:"templateIds,omitempty"`
FilterType FilterType `json:"filterType,omitempty"`
}
type AccountPermissions struct {
AccountPermissionTypes []AccountPermissionType `json:"accountPermissionTypes,omitempty"`
}
type SlackNotificationSetting struct {
SlackChannelName string `json:"slackChannelName,omitempty"`
SlackWebhookUrl string `json:"slackWebhookURL,omitempty"`
}
type UpdateUserInput struct {
ClientMutationID string `json:"clientMutationId,omitempty"`
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
}
type GitSyncConfig struct {
Branch string `json:"branch,omitempty"`
GitConnector *GitConnector `json:"gitConnector,omitempty"`
RepositoryName string `json:"repositoryName,omitempty"`
SyncEnabled bool `json:"syncEnabled,omitempty"`
}
type UpdateApplicationGitSyncConfigInput struct {
ClientMutationID string `json:"clientMutationId,omitempty"`
ApplicationId string `json:"applicationId,omitempty"`
Branch string `json:"branch,omitempty"`
GitConnectorId string `json:"gitConnectorId,omitempty"`
RepositoryName string `json:"repositoryName,omitempty"`
SyncEnabled bool `json:"syncEnabled"`
}
type UsageScope struct {
AppEnvScopes []*AppEnvScope `json:"appEnvScopes,omitempty"`
}
type AppEnvScope struct {
Application *AppScopeFilter `json:"application,omitempty"`
Environment *EnvScopeFilter `json:"environment,omitempty"`
}
type AppScopeFilter struct {
AppId string `json:"appId,omitempty"`
FilterType ApplicationFilterType `json:"filterType,omitempty"`
}
type EnvScopeFilter struct {
EnvId string `json:"envId,omitempty"`
FilterType EnvironmentFilterType `json:"filterType,omitempty"`
}
type Application struct {
CommonMetadata
ClientMutationId string `json:"clientMutationId,omitempty"`
Description string `json:"description,omitempty"`
Name string `json:"name,omitempty"`
Environments []*EnvironmentConnection `json:"environments,omitempty"`
GitSyncConfig *GitSyncConfig `json:"gitSyncConfig,omitempty"`
IsManualTriggerAuthorized bool `json:"isManualTriggerAuthorized"`
Pipelines *PipelineConnection `json:"pipelines,omitempty"`
Services *ServiceConnection `json:"services,omitempty"`
Workflows *WorkflowConnection `json:"workflows,omitempty"`
Tags []*Tag `json:"tags,omitempty"`
}
type Applications struct {
PageInfo `json:"pageInfo"`
Nodes []Application `json:"nodes"`
}
type UpdateApplicationInput struct {
ApplicationId string `json:"applicationId"`
ClientMutationId string `json:"clientMutationId"`
Description string `json:"description"`
IsManualTriggerAuthorized bool `json:"isManualTriggerAuthorized"`
Name string `json:"name"`
}
type UpdateApplicationPayload struct {
Application *Application `json:"application"`
ClientMutationId string `json:"clientMutationId"`
}
// type CreateApplicationInput struct {
// ClientMutationId string `json:"clientMutationId"`
// Description string `json:"description"`
// IsManualTriggerAuthorized bool `json:"isManualTriggerAuthorized"`
// Name string `json:"name"`
// }
type CreateApplicationPayload struct {
Application *Application `json:"application"`
ClientMutationId string `json:"clientMutationId"`
}
type DeleteApplicationInput struct {
ApplicationId string `json:"applicationId"`
ClientMutationId string `json:"clientMutationId"`
}
type DeleteApplicationPayload struct {
ClientMutationId string `json:"clientMutationId"`
}
type SecretManager struct {
Id string
Name string
UsageScope *UsageScope
}
type EncryptedFile struct {
Secret
EncryptedText
}
type WinRMCredential struct {
Secret
Domain string `json:"domain,omitempty"`
Port int `json:"port,omitempty"`
SkipCertCheck bool `json:"skipCertCheck,omitempty"`
UseSSL bool `json:"useSSL,omitempty"`
UserName string `json:"username,omitempty"`
AuthenticationScheme WinRMAuthenticationScheme `json:"authenticationScheme,omitempty"`
}
func (c *WinRMCredential) IsEmpty() bool {
return c.Id == ""
}
type CreateSecretInput struct {
ClientMutationId string `json:"clientMutationId,omitempty"`
EncryptedText *EncryptedTextInput `json:"encryptedText,omitempty"`
SecretType SecretType `json:"secretType,omitempty"`
SSHCredential *SSHCredential `json:"sshCredential,omitempty"`
WinRMCredential *WinRMCredentialInput `json:"winRMCredential,omitempty"`
}
type UpdateSecretInput struct {
ClientMutationId string `json:"clientMutationId,omitempty"`
EncryptedText *UpdateEncryptedText `json:"encryptedText,omitempty"`
SecretId string `json:"secretId,omitempty"`
SecretType SecretType `json:"secretType,omitempty"`
SSHCredential *SSHCredential `json:"sshCredential,omitempty"`
WinRMCredential *UpdateWinRMCredential `json:"winRMCredential,omitempty"`
}
type Secret struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
SecretType SecretType `json:"secretType,omitempty"`
UsageScope *UsageScope `json:"usageScope,omitempty"`
}
func (s *Secret) IsEmpty() bool {
return s.Id == "" && s.Name == ""
}
type EncryptedText struct {
Secret
InheritScopesFromSM bool `json:"inheritScopesFromSM,omitempty"`
ScopedToAccount bool `json:"scopedToAccount,omitempty"`
SecretManagerId string `json:"secretManagerId,omitempty"`
}
type EncryptedTextInput struct {
InheritScopesFromSM bool `json:"inheritScopesFromSM,omitempty"`
Name string `json:"name,omitempty"`
ScopedToAccount bool `json:"scopedToAccount,omitempty"`
SecretManagerId string `json:"secretManagerId,omitempty"`
SecretReference string `json:"secretReference,omitempty"`
UsageScope *UsageScope `json:"usageScope,omitempty"`
Value string `json:"value,omitempty"`
}
type UpdateEncryptedText struct {
InheritScopesFromSM bool `json:"inheritScopesFromSM,omitempty"`
Name string `json:"name,omitempty"`
ScopedToAccount bool `json:"scopedToAccount,omitempty"`
SecretReference string `json:"secretReference,omitempty"`
UsageScope *UsageScope `json:"usageScope,omitempty"`
Value string `json:"value,omitempty"`
}
type UpdateWinRMCredential struct {
AuthenticationScheme string `json:"authenticationScheme,omitempty"`
Domain string `json:"domain,omitempty"`
Name string `json:"name,omitempty"`
PasswordSecretId string `json:"passwordSecretID,omitempty"`
Port int `json:"port,omitempty"`
SkipCertCheck bool `json:"skipCertCheck,omitempty"`
UsageScope *UsageScope `json:"usageScope,omitempty"`
UseSSL bool `json:"useSSL,omitempty"`
Username string `json:"username,omitempty"`
}
type SSHCredential struct {
Secret
AuthenticationScheme SSHAuthenticationScheme `json:"authenticationScheme,omitempty"`
KerberosAuthentication *KerberosAuthentication `json:"kerberosAuthentication,omitempty"`
SSHAuthentication *SSHAuthentication `json:"sshAuthentication,omitempty"`
UsageScope *UsageScope `json:"usageScope,omitempty"`
AuthenticationType SSHAuthenticationType `json:"authenticationType,omitempty"`
}
type SSHAuthentication struct {
Port int `json:"port,omitempty"`
SSHAuthenticationMethod *SSHAuthenticationMethod `json:"sshAuthenticationMethod,omitempty"`
Username string `json:"userName,omitempty"`
}
type SSHAuthenticationMethod struct {
InlineSSHKey *InlineSSHKey `json:"inlineSSHKey,omitempty"`
ServerPassword *SSHPassword `json:"serverPassword,omitempty"`
SSHCredentialType SSHCredentialType `json:"sshCredentialType,omitempty"`
SSHKeyFile *SSHKeyFile `json:"sshKeyFile,omitempty"`
}
type InlineSSHKey struct {
PassphraseSecretId string `json:"passphraseSecretId,omitempty"`
SSHKeySecretFileId string `json:"sshKeySecretFileId,omitempty"`
}
type SSHPassword struct {
PasswordSecretId string `json:"passwordSecretId,omitempty"`
}
type SSHKeyFile struct {
PassphraseSecretId string `json:"passphraseSecretId,omitempty"`
Path string `json:"path,omitempty"`
}
type KerberosAuthentication struct {
Port int `json:"port,omitempty"`
Principal string `json:"principal,omitempty"`
Realm string `json:"realm,omitempty"`
TGTGenerationMethod *TGTGenerationMethod `json:"tgtGenerationMethod,omitempty"`
}
type TGTGenerationMethod struct {
KerberosPassword *KerberosPassword `json:"kerberosPassword,omitempty"`
KeyTabFile *KeyTabFile `json:"keyTabFile,omitempty"`
TGTGenerationUsing TGTGenerationUsingOption `json:"tgtGenerationUsing,omitempty"`
}
type KeyTabFile struct {
FilePath string `json:"filePath,omitempty"`
}
type KerberosPassword struct {
PasswordSecretId string `json:"passwordSecretId,omitempty"`
}
type WinRMCredentialInput struct {
AuthenticationScheme string `json:"authenticationScheme,omitempty"`
Domain string `json:"domain,omitempty"`
Name string `json:"name,omitempty"`
PasswordSecretId string `json:"passwordSecretId,omitempty"`
Port int `json:"port,omitempty"`
SkipCertCheck bool `json:"skipCertCheck,omitempty"`
UsageScope *UsageScope `json:"usageScope,omitempty"`
UseSSL bool `json:"useSSL,omitempty"`
Username string `json:"username,omitempty"`
}
type DeleteSecretInput struct {
SecretId string `json:"secretId,omitempty"`
SecretType SecretType `json:"secretType,omitempty"`
}
type Connector struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
CreatedBy *User `json:"createdBy,omitempty"`
Description string `json:"description,omitempty"`
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
}
type GitConnector struct {
Connector
Url string `json:"URL,omitempty"`
Branch string `json:"branch,omitempty"`
CustomCommitDetails *CustomCommitDetails `json:"customCommitDetails,omitempty"`
Description string `json:"description,omitempty"`
DelegateSelectors []string `json:"delegateSelectors"`
GenerateWebhookUrl bool `json:"generateWebhookUrl,omitempty"`
PasswordSecretId string `json:"passwordSecretId,omitempty"`
SSHSettingId string `json:"sshSettingId,omitempty"`
UrlType GitUrlType `json:"urlType,omitempty"`
UsageScope *UsageScope `json:"usageScope,omitempty"`
UserName string `json:"userName,omitempty"`
WebhookUrl string `json:"webhookUrl,omitempty"`
}
type GitConnectorInput struct {
Url string `json:"URL,omitempty"`
Branch string `json:"branch,omitempty"`
CustomCommitDetails *CustomCommitDetails `json:"customCommitDetails"`
DelegateSelectors []string `json:"delegateSelectors"`
GenerateWebhookUrl bool `json:"generateWebhookUrl,omitempty"`
Name string `json:"name,omitempty"`
PasswordSecretId string `json:"passwordSecretId,omitempty"`
SSHSettingId string `json:"sshSettingId,omitempty"`
UrlType GitUrlType `json:"urlType,omitempty"`
UsageScope *UsageScope `json:"usageScope,omitempty"`
UserName string `json:"userName,omitempty"`
}
type CustomCommitDetails struct {
AuthorEmailId string `json:"authorEmailId"`
AuthorName string `json:"authorName"`
CommitMessage string `json:"commitMessage"`
}
type CreateConnectorInput struct {
ClientMutationId string `json:"clientMutationId,omitempty"`
ConnectorType ConnectorType `json:"connectorType,omitempty"`
DockerConnector *DockerConnectorInput `json:"dockerConnector,omitempty"`
GitConnector *GitConnectorInput `json:"gitConnector,omitempty"`
HelmConnector *HelmConnectorInput `json:"helmConnector,omitempty"`
NexusConnector *NexusConnectorInput `json:"nexusConnector,omitempty"`
}
type UpdateConnectorInput struct {
CreateConnectorInput
ConnectorId string `json:"connectorId,omitempty"`
}
type HelmConnectorInput struct {
AmazonS3PlatformDetails *AmazonS3PlatformInput `json:"amazonS3PlatformDetails,omitempty"`
GCSPlatformDetails *GCSPlatformInput `json:"gcsPlatformDetails,omitempty"`
HTTPServerPlatformDetails *HTTPServerPlatformInput `json:"httpServerPlatformDetails,omitempty"`
Name string `json:"name,omitempty"`
}
type AmazonS3PlatformInput struct {
AWSCloudProvider string `json:"awsCloudProvider,omitempty"`
BucketName string `json:"bucketName,omitempty"`
Region string `json:"region,omitempty"`
}
type GCSPlatformInput struct {
BucketName string `json:"bucketName,omitempty"`
GoogleCloudProvider string `json:"googleCloudProvider,omitempty"`
}
type HTTPServerPlatformInput struct {
Url string `json:"url,omitempty"`
PasswordSecretId string `json:"passwordSecretId,omitempty"`
Username string `json:"userName,omitempty"`
}
type NexusConnectorInput struct {
Url string `json:"url,omitempty"`
DelegateSelectors []string `json:"delegateSelectors,omitempty"`
Name string `json:"name,omitempty"`
PasswordSecretId string `json:"passwordSecretId,omitempty"`
Username string `json:"userName,omitempty"`
Version string `json:"version,omitempty"`
}
type AmazonS3HelmRepoConnector struct {
Connector
}
type GCSHelmRepoConnector struct {
Connector
}
type HTTPHelmRepoConnector struct {
Connector
}
type DockerConnector struct {
Connector
DelegateSelectors []string `json:"delegateSelectors,omitempty"`
}
type DockerConnectorInput struct {
Connector
Url string `json:"url,omitempty"`
DelegateSelectors []string `json:"delegateSelectors,omitempty"`
PassswordSecretId string `json:"passwordSecretId"`
Username string `json:"username"`
}
type Tag struct {
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
}
type CloudProvider struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
CreatedBy *User `json:"createdBy,omitempty"`
Description string `json:"description,omitempty"`
Id string `json:"id,omitempty"`
IsContinuousEfficiencyEnabled bool `json:"isContinuousEfficiencyEnabled,omitempty"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
}
type AwsCloudProvider struct {
CloudProvider
CEHealthStatus *CEHealthStatus `json:"ceHealthStatus,omitempty"`
CredentialsType AwsCredentialsType `json:"credentialsType,omitempty"`
CrossAccountAttributes *AwsCrossAccountAttributes `json:"crossAccountAttributes,omitempty"`
DefaultRegion string `json:"defaultRegion,omitempty"`
Ec2IamCredentials *Ec2IamCredentials `json:"ec2IamCredentials,omitempty"`
ManualCredentials *AwsManualCredentials `json:"manualCredentials,omitempty"`
IrsaCredentials *AwsIrsaCredentials `json:"irsaCredentials,omitempty"`
}
type UpdateAwsCloudProviderInput struct {
CredentialsType AwsCredentialsType `json:"credentialsType,omitempty"`
CrossAccountAttributes *AwsCrossAccountAttributes `json:"crossAccountAttributes,omitempty"`
DefaultRegion string `json:"defaultRegion,omitempty"`
Ec2IamCredentials *Ec2IamCredentials `json:"ec2IamCredentials,omitempty"`
ManualCredentials *AwsManualCredentials `json:"manualCredentials,omitempty"`
IrsaCredentials *AwsIrsaCredentials `json:"irsaCredentials,omitempty"`
Name string `json:"name,omitempty"`
}
type Ec2IamCredentials struct {
DelegateSelector string `json:"delegateSelector"`
UsageScope *UsageScope `json:"usageScope,omitempty"`
}
type AwsIrsaCredentials struct {
DelegateSelector string `json:"delegateSelector"`
UsageScope *UsageScope `json:"usageScope,omitempty"`
}
type AwsManualCredentials struct {
AccessKey string `json:"accessKey,omitempty"`
AccessKeySecretId string `json:"accessKeySecretId,omitempty"`
SecretKeySecretId string `json:"secretKeySecretId,omitempty"`
}
type AwsCrossAccountAttributes struct {
AssumeCrossAccountRole bool `json:"assumeCrossAccountRole,omitempty"`
CrossAccountRoleArm string `json:"crossAccountRoleArn,omitempty"`
ExternalId string `json:"externalId,omitempty"`
}
type AzureCloudProvider struct {
CloudProvider
ClientId string `json:"clientId,omitempty"`
KeySecretId string `json:"keySecretId,omitempty"`
TenantId string `json:"tenantId,omitempty"`
}
type UpdateAzureCloudProviderInput struct {
ClientId string `json:"clientId,omitempty"`
KeySecretId string `json:"keySecretId,omitempty"`
Name string `json:"name,omitempty"`
TenantID string `json:"tenantId,omitempty"`
}
type GcpCloudProvider struct {
CloudProvider
DelegateSelector string `json:"delegateSelector,omitempty"`
DelegateSelectors []string `json:"delegateSelectors,omitempty"`
Description string `json:"description,omitempty"`
ServiceAccountKeySecretId string `json:"serviceAccountKeySecretId,omitempty"`
SkipValidation bool `json:"skipValidation,omitempty"`
UseDelegate bool `json:"useDelegate,omitempty"`
UseDelegateSelectors bool `json:"useDelegateSelectors,omitempty"`
}
type UpdateGcpCloudProviderInput struct {
DelegateSelector string `json:"delegateSelector,omitempty"`
DelegateSelectors []string `json:"delegateSelectors,omitempty"`
Name string `json:"name,omitempty"`
ServiceAccountKeySecretId string `json:"serviceAccountKeySecretId,omitempty"`
SkipValidation bool `json:"skipValidation,omitempty"`
UseDelegate bool `json:"useDelgate,omitempty"`
UseDelegateSelectors bool `json:"useDelegateSelectors,omitempty"`
}
type KubernetesCloudProvider struct {
CloudProvider
CEHealthStatus *CEHealthStatus `json:"ceHealthStatus,omitempty"`
SkipK8sEventCollection bool `json:"skipK8sEventCollection,omitempty"`
ClusterDetailsType ClusterDetailsType `json:"clusterDetailsType,omitempty"`
InheritClusterDetails *InheritClusterDetails `json:"inheritClusterDetails,omitempty"`
ManualClusterDetails *ManualClusterDetails `json:"manualClusterDetails,omitempty"`
SkipValidation bool `json:"skipValidation,omitempty"`
}
type UpdateKubernetesCloudProviderInput struct {
ClusterDetailsType ClusterDetailsType `json:"clusterDetailsType,omitempty"`
InheritClusterDetails *InheritClusterDetails `json:"inheritClusterDetails,omitempty"`
ManualClusterDetails *ManualClusterDetails `json:"manualClusterDetails,omitempty"`
Name string `json:"name,omitempty"`
SkipValidation bool `json:"skipValidation,omitempty"`
}
type InheritClusterDetails struct {
DelegateName string `json:"delegateName,omitempty"`
DelegateSelectors []string `json:"delegateSelectors,omitempty"`
UsageScope *UsageScope `json:"usageScope,omitempty"`
}
type ManualClusterDetails struct {
MasterUrl string `json:"masterUrl,omitempty"`
None *None `json:"none,omitempty"`
OIDCToken *OIDCToken `json:"oidcToken,omitempty"`
ServiceAccountToken *ServiceAccountToken `json:"serviceAccountToken,omitempty"`
Type ManualClusterDetailsAuthenticationType `json:"type,omitempty"`
UsernameAndPassword *UsernameAndPasswordAuthentication `json:"usernameAndPassword,omitempty"`
}
type UsernameAndPasswordAuthentication struct {
PasswordSecretId string `json:"passwordSecretId,omitempty"`
UserName string `json:"userName,omitempty"`
UserNameSecretId string `json:"userNameSecretId,omitempty"`
}
type ServiceAccountToken struct {
ServiceAccountTokenSecretId string `json:"serviceAccountTokenSecretId,omitempty"`
}
type OIDCToken struct {
ClientIdSecretId string `json:"clientIdSecretId,omitempty"`
ClientSecretSecretId string `json:"clientSecretSecretId,omitempty"`
IdentityProviderUrl string `json:"identityProviderUrl,omitempty"`
PasswordSecretId string `json:"passwordSecretId,omitempty"`
Scopes string `json:"scopes,omitempty"`
UserName string `json:"userName,omitempty"`
}
type None struct {
CaCertificateSecretId string `json:"caCertificateSecretId,omitempty"`
ClientCertificateSecretId string `json:"clientCertificateSecretId,omitempty"`
ClientKeyAlgorithm string `json:"clientKeyAlgorithm,omitempty"`
ClientKeyPassphraseSecretId string `json:"clientKeyPassphraseSecretId,omitempty"`
ClientKeySecretId string `json:"clientKeySecretId,omitempty"`
PasswordSecretId string `json:"passwordSecretId,omitempty"`
ServiceAccountTokenSecretId string `json:"serviceAccountTokenSecretId,omitempty"`
UsageScope *UsageScope `json:"usageScope,omitempty"`
Username string `json:"username,omitempty"`
}
type UpdateCloudProvider struct {
AwsCloudProvider *UpdateAwsCloudProviderInput `json:"awsCloudProvider,omitempty"`
AzureCloudProvider *UpdateAzureCloudProviderInput `json:"azureCloudProvider,omitempty"`
ClientMutationID string `json:"clientMutationId,omitempty"`
CloudProviderId string `json:"cloudProviderId,omitempty"`
CloudProviderType *CloudProviderType `json:"cloudProviderType,omitempty"`
GcpCloudProvider *UpdateGcpCloudProviderInput `json:"gcpCloudProvider,omitempty"`
K8sCloudProvider *UpdateKubernetesCloudProviderInput `json:"k8sCloudProvider,omitempty"`
PcfCloudProvider *UpdatePcfCloudProviderInput `json:"pcfCloudProvider,omitempty"`
PhysicalDataCenterCloudProvider *UpdatePhysicalDataCenterCloudProviderInput `json:"physicalDataCenterCloudProvider,omitempty"`
SpotInstCloudProvider *UpdateSpotInstCloudProviderInst `json:"spotInstCloudProvider,omitempty"`
}
type PcfCloudProvider struct {
CloudProvider
EndpointUrl string `json:"endpointUrl,omitempty"`
PasswordSecretId string `json:"passwordSecretId,omitempty"`
SkipValidation bool `json:"skipValidation,omitempty"`
UserName string `json:"userName,omitempty"`
UserNameSecretId string `json:"userNameSecretId,omitempty"`
}
type UpdatePcfCloudProviderInput struct {
EndpointUrl string `json:"endpointUrl,omitempty"`
Name string `json:"name,omitempty"`
PasswordSecretId string `json:"passwordSecretId,omitempty"`
SkipValidation bool `json:"skipValidation,omitempty"`
UserName string `json:"userName,omitempty"`
UserNameSecretId string `json:"userNameSecretId,omitempty"`
}
type PhysicalDataCenterCloudProvider struct {
CloudProvider
UsageScope *UsageScope `json:"usageScope,omitempty"`
}
type UpdatePhysicalDataCenterCloudProviderInput struct {
Name string `json:"name,omitempty"`
UsageScope *UsageScope `json:"usageScope"`
}
type SpotInstCloudProvider struct {
CloudProvider
AccountId string `json:"accountId,omitempty"`
TokenSecretId string `json:"tokenSecretId,omitempty"`
}
type UpdateSpotInstCloudProviderInst struct {
AccountId string `json:"accountId,omitempty"`
Name string `json:"name,omitempty"`
TokenSecretId string `json:"tokenSecretId"`
}
type CreateCloudProviderInput struct {
AwsCloudProvider *AwsCloudProvider `json:"awsCloudProvider,omitempty"`
AzureCloudProvider *AzureCloudProvider `json:"azureCloudProvider,omitempty"`
ClientMutationId string `json:"clientMutationId,omitempty"`
CloudProviderType CloudProviderType `json:"cloudProviderType,omitempty"`
GCPCloudProvider *GcpCloudProvider `json:"gcpCloudProvider,omitempty"`
K8sCloudProvider *KubernetesCloudProvider `json:"k8sCloudProvider,omitempty"`
PcfCloudProvider *PcfCloudProvider `json:"pcfCloudProvider,omitempty"`
PhysicalDataCenterCloudProvider *PhysicalDataCenterCloudProvider `json:"physicalDataCenterCloudProvider,omitempty"`
SpotInstCloudProvider *SpotInstCloudProvider `json:"spotInstCloudProvider,omitempty"`
}
type CEHealthStatus struct {
ClusterHealthStatusList []*CEClusterHealth `json:"ClusterHealthStatusList,omitempty"`
IsCEConnector bool `json:"isCEConnector,omitempty"`
IsHealthy bool `json:"isHealthy,omitempty"`
Messages []string `json:"messages,omitempty"`
}
type CEClusterHealth struct {
ClusterId string `json:"clusterId,omitempty"`
ClusterName string `json:"clusterName,omitempty"`
Errors []string `json:"errors,omitempty"`
LastEventTimestamp float64 `json:"lastEventTimestamp,omitempty"`
Messages []string `json:"messages"`
}
type ApprovalVariable struct {
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
}
type ApprovalDetailsPayload struct {
ApprovalDetails []*Approval `json:"approvalDetails,omitempty"`
}
type Approval struct {
ApprovalId string `json:"approvalId,omitempty"`
ApprovalType ApprovalStepType `json:"approvalType,omitempty"`
StepName string `json:"stepName,omitempty"`
StageName string `json:"stageName,omitempty"`
StartedAt *time.Time `json:"startedAt,omitempty"`
TriggeredBy User `json:"triggeredBy,omitempty"`
WillExpireAt *time.Time `json:"willExpireAt,omitempty"`
Approvers []string `json:"approvers,omitempty"`
ExecutionId string `json:"executionId,omitempty"`
Variables []*ApprovalVariable `json:"variables,omitempty"`
}
type ApproveOrRejectApprovals struct {
ClientMutationId string `json:"clientMutationId,omitempty"`
Success bool `json:"success,omitempty"`
}
type Trigger struct {
CommonMetadata
Action *TriggerAction `json:"triggerAction,omitempty"`
Condition *TriggerCondition `json:"condition,omitempty"`
}
type TriggerCondition struct {
TriggerConditionType string `json:"triggerConditionType,omitempty"`
WebhookDetails *WebhookDetails `json:"webhookDetails,omitempty"`
}
type WebhookDetails struct {
Payload string `json:"payload,omitempty"`
WebhookUrl string `json:"webhookUrl,omitempty"`
Method string `json:"method,omitempty"`
Header string `json:"header,omitempty"`
}
type TriggerAction struct {
ArtifactSelections *ArtifactSelection `json:"artifactSelection,omitempty"`
}
type ArtifactSelection struct {
Service_id string `json:"serviceId,omitempty"`
Service_name string `json:"serviceName,omitempty"`
}