bitwarden_api_api/models/update_target_system_request_model.rs
1/*
2 * Bitwarden Internal API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: latest
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15/// UpdateTargetSystemRequestModel : The updatable shape of a target system (spec
16/// `UpdateTargetSystem`).
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
18pub struct UpdateTargetSystemRequestModel {
19 #[serde(rename = "name", alias = "Name")]
20 pub name: String,
21 /// The target system's sealed blob.
22 #[serde(rename = "sealedData", alias = "SealedData")]
23 pub sealed_data: String,
24 /// The content key of the sealed blob, wrapped by the organization key. Stored apart from the
25 /// blob so organization key rotation only re-wraps the key.
26 #[serde(rename = "wrappedKey", alias = "WrappedKey")]
27 pub wrapped_key: String,
28}
29
30impl UpdateTargetSystemRequestModel {
31 /// The updatable shape of a target system (spec `UpdateTargetSystem`).
32 pub fn new(
33 name: String,
34 sealed_data: String,
35 wrapped_key: String,
36 ) -> UpdateTargetSystemRequestModel {
37 UpdateTargetSystemRequestModel {
38 name,
39 sealed_data,
40 wrapped_key,
41 }
42 }
43}