use serde::{Deserialize, Serialize}; /*
                                      * Service Control API
                                      *
                                      * Provides admission control and telemetry reporting for services integrated with Service Infrastructure.
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

use crate::google_rest_apis::servicecontrol_v1::models;

/// AllocateQuotaRequest : Request message for the AllocateQuota method.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AllocateQuotaRequest {
    #[serde(rename = "allocateOperation", skip_serializing_if = "Option::is_none")]
    pub allocate_operation: Option<Box<models::QuotaOperation>>,
    /// Specifies which version of service configuration should be used to process the request. If unspecified or no matching version can be found, the latest one will be used.
    #[serde(rename = "serviceConfigId", skip_serializing_if = "Option::is_none")]
    pub service_config_id: Option<String>,
}

impl AllocateQuotaRequest {
    /// Request message for the AllocateQuota method.
    pub fn new() -> AllocateQuotaRequest {
        AllocateQuotaRequest {
            allocate_operation: None,
            service_config_id: None,
        }
    }
}
