secrets service proto FTP changes
diff --git a/services/secret-service/stub/src/main/proto/SecretService.proto b/services/secret-service/stub/src/main/proto/SecretService.proto
index fd7e897..b933df9 100644
--- a/services/secret-service/stub/src/main/proto/SecretService.proto
+++ b/services/secret-service/stub/src/main/proto/SecretService.proto
@@ -200,6 +200,36 @@
AuthToken authzToken = 2;
}
+// FTP
+message FTPSecret {
+ string secretId = 1;
+ string userId = 2;
+ string password = 3;
+}
+
+message FTPSecretGetRequest {
+ string secretId = 1;
+ AuthToken authzToken = 2;
+}
+
+message FTPSecretCreateRequest {
+ string userId = 1;
+ string password = 2;
+ AuthToken authzToken = 3;
+}
+
+message FTPSecretUpdateRequest {
+ string secretId = 1;
+ string userId = 2;
+ string password = 3;
+ AuthToken authzToken = 4;
+}
+
+message FTPSecretDeleteRequest {
+ string secretId = 1;
+ AuthToken authzToken = 4;
+}
+
service SecretService {
rpc getSCPSecret (SCPSecretGetRequest) returns (SCPSecret) {
option (google.api.http) = {
@@ -351,4 +381,30 @@
};
}
+ // FTP
+
+ rpc getFTPSecret (FTPSecretGetRequest) returns (FTPSecret) {
+ option (google.api.http) = {
+ get: "/v1.0/secret/ftp"
+ };
+ }
+
+ rpc createFTPSecret (FTPSecretCreateRequest) returns (FTPSecret) {
+ option (google.api.http) = {
+ post: "/v1.0/secret/ftp"
+ };
+ }
+
+ rpc updateFTPSecret (FTPSecretUpdateRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ put: "/v1.0/secret/ftp"
+ };
+ }
+
+ rpc deleteFTPSecret (FTPSecretDeleteRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1.0/secret/ftp"
+ };
+ }
+
}
\ No newline at end of file