From 5c622cc03468ad3430da6838eb8a61b46a2d00bf Mon Sep 17 00:00:00 2001 From: kjuulh Date: Mon, 3 Apr 2023 16:39:58 +0200 Subject: [PATCH] feat: with gen --- crates/dagger-sdk/src/gen.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/crates/dagger-sdk/src/gen.rs b/crates/dagger-sdk/src/gen.rs index 22c9ff4..a382a62 100644 --- a/crates/dagger-sdk/src/gen.rs +++ b/crates/dagger-sdk/src/gen.rs @@ -2775,6 +2775,24 @@ impl Query { graphql_client: self.graphql_client.clone(), }; } + /// Sets a secret given a user defined name to its plaintext and returns the secret. + /// + /// # Arguments + /// + /// * `name` - The user defined name for this secret + /// * `plaintext` - The plaintext of the secret + pub fn set_secret(&self, name: impl Into, plaintext: impl Into) -> Secret { + let mut query = self.selection.select("setSecret"); + + query = query.arg("name", name.into()); + query = query.arg("plaintext", plaintext.into()); + + return Secret { + proc: self.proc.clone(), + selection: query, + graphql_client: self.graphql_client.clone(), + }; + } /// Loads a socket by its ID. /// /// # Arguments