bitwarden_api_api/models/
secrets_manager_subscription_update_request_model.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SecretsManagerSubscriptionUpdateRequestModel {
#[serde(rename = "seatAdjustment")]
pub seat_adjustment: i32,
#[serde(rename = "maxAutoscaleSeats", skip_serializing_if = "Option::is_none")]
pub max_autoscale_seats: Option<i32>,
#[serde(
rename = "serviceAccountAdjustment",
skip_serializing_if = "Option::is_none"
)]
pub service_account_adjustment: Option<i32>,
#[serde(
rename = "maxAutoscaleServiceAccounts",
skip_serializing_if = "Option::is_none"
)]
pub max_autoscale_service_accounts: Option<i32>,
}
impl SecretsManagerSubscriptionUpdateRequestModel {
pub fn new(seat_adjustment: i32) -> SecretsManagerSubscriptionUpdateRequestModel {
SecretsManagerSubscriptionUpdateRequestModel {
seat_adjustment,
max_autoscale_seats: None,
service_account_adjustment: None,
max_autoscale_service_accounts: None,
}
}
}