Skip to main content

akeyless_api/models/
list_targets.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ListTargets : listTargets is a command that returns a list of targets. [Deprecated: Use target-list command]
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ListTargets {
17    /// Filter by auth method name or part of it
18    #[serde(rename = "filter", skip_serializing_if = "Option::is_none")]
19    pub filter: Option<String>,
20    /// Set output format to JSON
21    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
22    pub json: Option<bool>,
23    /// Next page reference
24    #[serde(rename = "pagination-token", skip_serializing_if = "Option::is_none")]
25    pub pagination_token: Option<String>,
26    /// Authentication token (see `/auth` and `/configure`)
27    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
28    pub token: Option<String>,
29    /// The target types list . In case it is empty, all types of targets will be returned. options: [hanadb cassandra aws ssh gke eks mysql mongodb snowflake mssql redshift artifactory azure rabbitmq k8s venafi gcp oracle dockerhub ldap github chef web salesforce postgres]
30    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
31    pub r#type: Option<Vec<String>>,
32    /// The universal identity token, Required only for universal_identity authentication
33    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
34    pub uid_token: Option<String>,
35}
36
37impl ListTargets {
38    /// listTargets is a command that returns a list of targets. [Deprecated: Use target-list command]
39    pub fn new() -> ListTargets {
40        ListTargets {
41            filter: None,
42            json: None,
43            pagination_token: None,
44            token: None,
45            r#type: None,
46            uid_token: None,
47        }
48    }
49}
50