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
use async_trait;
use ;
use ;
use crate;
use crate;
use crateFluxError;
/// Represents a request to delete secrets in a Supabase project.
///
/// This structure encapsulates the necessary parameters for making an API request to Supabase
/// to delete multiple secrets from a specified project.
///
/// # Fields
///
/// * `ref_id` - The unique identifier or reference ID of the Supabase project.
/// * `token` - An optional authentication token for accessing the Supabase API. If not provided,
/// the `SUPABASE_TOKEN` environment variable will be used.
/// * `names` - A list of secret names to be deleted from the project.
///
/// # Example
///
/// ```
/// use async_trait::async_trait;
/// use reqwest::Client;
/// use serde::{Deserialize, Serialize};
/// use keyflux::api::supabase::delete::SupabaseDelete;
/// use keyflux::api::traits::Fetch;
/// use keyflux::error::FluxError;
///
/// #[tokio::main]
/// async fn main() -> Result<(), FluxError> {
/// let delete_request = SupabaseDelete {
/// ref_id: "your-project-ref".to_string(),
/// token: Some("your-supabase-token".to_string()),
/// names: vec!["SECRET_NAME_1".to_string(), "SECRET_NAME_2".to_string()],
/// };
///
/// let client = Client::new();
/// let response = delete_request.fetch(&client).await?;
///
/// if response.status().is_success() {
/// println!("Successfully deleted secrets.");
/// } else {
/// println!("Failed to delete secrets. Status: {:?}", response.status());
/// }
///
/// Ok(())
/// }
/// ```