Skip to main content

akeyless_api/models/
move_objects.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct MoveObjects {
16    /// Set output format to JSON
17    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
18    pub json: Option<bool>,
19    /// The objects type to move (item/auth_method/role)
20    #[serde(rename = "objects-type", skip_serializing_if = "Option::is_none")]
21    pub objects_type: Option<String>,
22    /// Source path to move the objects from
23    #[serde(rename = "source")]
24    pub source: String,
25    /// Target path to move the objects to
26    #[serde(rename = "target")]
27    pub target: String,
28    /// Authentication token (see `/auth` and `/configure`)
29    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
30    pub token: Option<String>,
31    /// The universal identity token, Required only for universal_identity authentication
32    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
33    pub uid_token: Option<String>,
34}
35
36impl MoveObjects {
37    pub fn new(source: String, target: String) -> MoveObjects {
38        MoveObjects {
39            json: None,
40            objects_type: None,
41            source,
42            target,
43            token: None,
44            uid_token: None,
45        }
46    }
47}
48