akeyless_api/models/kmip_move_server.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/// KmipMoveServer : kmipMoveServer is a command that Moves the root location of the kmip server and all associated items to a new root location
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct KmipMoveServer {
17 /// Set output format to JSON
18 #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
19 pub json: Option<bool>,
20 /// New root for the kmip server
21 #[serde(rename = "new-root")]
22 pub new_root: String,
23 /// Authentication token (see `/auth` and `/configure`)
24 #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
25 pub token: Option<String>,
26 /// The universal identity token, Required only for universal_identity authentication
27 #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
28 pub uid_token: Option<String>,
29}
30
31impl KmipMoveServer {
32 /// kmipMoveServer is a command that Moves the root location of the kmip server and all associated items to a new root location
33 pub fn new(new_root: String) -> KmipMoveServer {
34 KmipMoveServer {
35 json: None,
36 new_root,
37 token: None,
38 uid_token: None,
39 }
40 }
41}
42