bitwarden_api_api/models/assign_access_connector_target_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/// AssignAccessConnectorTargetRequestModel : The body of `POST access-connectors/{id}/assignments`:
16/// the target system to assign the access connector to.
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
18pub struct AssignAccessConnectorTargetRequestModel {
19 /// The target system the access connector should work. Assignment is what makes the target's
20 /// rotation jobs visible to the access connector -- an unassigned access connector sees no
21 /// work, and a manual target has no access connector to assign.
22 #[serde(rename = "targetSystemId", alias = "TargetSystemId")]
23 pub target_system_id: uuid::Uuid,
24}
25
26impl AssignAccessConnectorTargetRequestModel {
27 /// The body of `POST access-connectors/{id}/assignments`: the target system to assign the
28 /// access connector to.
29 pub fn new(target_system_id: uuid::Uuid) -> AssignAccessConnectorTargetRequestModel {
30 AssignAccessConnectorTargetRequestModel { target_system_id }
31 }
32}