feat: with gen

This commit is contained in:
Kasper Juul Hermansen 2023-04-03 16:39:58 +02:00
parent b67baf2698
commit 5c622cc034
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -2775,6 +2775,24 @@ impl Query {
graphql_client: self.graphql_client.clone(), 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<String>, plaintext: impl Into<String>) -> 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. /// Loads a socket by its ID.
/// ///
/// # Arguments /// # Arguments