/*
* Selling Partner API for Services
*
* With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// UpdateScheduleRequest : Request schema for the `updateSchedule` operation.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateScheduleRequest {
/// List of `AvailabilityRecord`s to represent the capacity of a resource over a time range.
#[serde(rename = "schedules")]
pub schedules: Vec<models::services::AvailabilityRecord>,
}
impl UpdateScheduleRequest {
/// Request schema for the `updateSchedule` operation.
pub fn new(schedules: Vec<models::services::AvailabilityRecord>) -> UpdateScheduleRequest {
UpdateScheduleRequest {
schedules,
}
}
}