Skip to main content

akeyless_api/models/
list_auth_methods.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/// ListAuthMethods : listAuthMethods is a command that returns a list of all auth methods in the account. [Deprecated: Use auth-method-list command]
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ListAuthMethods {
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 Auth method types list of the requested method. In case it is empty, all types of auth methods will be returned. options: [api_key, azure_ad, oauth2/jwt, saml2, ldap, aws_iam, oidc, universal_identity, gcp, k8s, cert]
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 ListAuthMethods {
38    /// listAuthMethods is a command that returns a list of all auth methods in the account. [Deprecated: Use auth-method-list command]
39    pub fn new() -> ListAuthMethods {
40        ListAuthMethods {
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