Skip to main content

bitwarden_api_api/models/
cipher_bulk_update_shared_folders_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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CipherBulkUpdateSharedFoldersRequestModel {
17    #[serde(
18        rename = "organizationId",
19        alias = "OrganizationId",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub organization_id: Option<uuid::Uuid>,
23    #[serde(
24        rename = "cipherIds",
25        alias = "CipherIds",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub cipher_ids: Option<Vec<uuid::Uuid>>,
29    #[serde(
30        rename = "sharedFolderIds",
31        alias = "SharedFolderIds",
32        skip_serializing_if = "Option::is_none"
33    )]
34    pub shared_folder_ids: Option<Vec<uuid::Uuid>>,
35    /// If true, the shared folders will be removed from the ciphers. Otherwise, they will be
36    /// added.
37    #[serde(
38        rename = "removeSharedFolders",
39        alias = "RemoveSharedFolders",
40        skip_serializing_if = "Option::is_none"
41    )]
42    pub remove_shared_folders: Option<bool>,
43}
44
45impl CipherBulkUpdateSharedFoldersRequestModel {
46    pub fn new() -> CipherBulkUpdateSharedFoldersRequestModel {
47        CipherBulkUpdateSharedFoldersRequestModel {
48            organization_id: None,
49            cipher_ids: None,
50            shared_folder_ids: None,
51            remove_shared_folders: None,
52        }
53    }
54}