@@ -482,6 +482,15 @@ type AddSecretOwnerRequest struct {
482
482
Product Product `json:"product"`
483
483
}
484
484
485
+ // BasicCredentials: basic credentials.
486
+ type BasicCredentials struct {
487
+ // Username: the username or identifier associated with the credentials.
488
+ Username string `json:"username"`
489
+
490
+ // Password: the password associated with the credentials.
491
+ Password string `json:"password"`
492
+ }
493
+
485
494
// BrowseSecretsRequest: browse secrets request.
486
495
type BrowseSecretsRequest struct {
487
496
// Region: region to target. If none is passed will use default region from the config.
@@ -587,6 +596,27 @@ type CreateSecretVersionRequest struct {
587
596
DataCrc32 * uint32 `json:"data_crc32,omitempty"`
588
597
}
589
598
599
+ // DatabaseCredentials: database credentials.
600
+ type DatabaseCredentials struct {
601
+ // Engine: supported database engines are: 'postgres', 'mysql', 'other'.
602
+ Engine string `json:"engine"`
603
+
604
+ // Username: the username used to authenticate to the database server.
605
+ Username string `json:"username"`
606
+
607
+ // Password: the password used to authenticate to the database server.
608
+ Password string `json:"password"`
609
+
610
+ // Host: the hostname or resolvable DNS name of the database server.
611
+ Host string `json:"host"`
612
+
613
+ // Dbname: the name of the database to connect to.
614
+ Dbname string `json:"dbname"`
615
+
616
+ // Port: the port must be an integer ranging from 0 to 65535.
617
+ Port string `json:"port"`
618
+ }
619
+
590
620
// DeleteSecretRequest: delete secret request.
591
621
type DeleteSecretRequest struct {
592
622
// Region: region to target. If none is passed will use default region from the config.
@@ -822,6 +852,12 @@ type ProtectSecretRequest struct {
822
852
SecretID string `json:"-"`
823
853
}
824
854
855
+ // SSHKey: ssh key.
856
+ type SSHKey struct {
857
+ // SSHPrivateKey: the private SSH key.
858
+ SSHPrivateKey string `json:"ssh_private_key"`
859
+ }
860
+
825
861
// UnprotectSecretRequest: unprotect secret request.
826
862
type UnprotectSecretRequest struct {
827
863
// Region: region to target. If none is passed will use default region from the config.
0 commit comments