use serde::{Deserialize, Serialize}; /*
                                      * Cloud Storage JSON API
                                      *
                                      * Stores and retrieves potentially large, immutable data objects.
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

use crate::google_rest_apis::storage_v1::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BucketLifecycleRuleInner {
    #[serde(rename = "action", skip_serializing_if = "Option::is_none")]
    pub action: Option<Box<models::BucketLifecycleRuleInnerAction>>,
    #[serde(rename = "condition", skip_serializing_if = "Option::is_none")]
    pub condition: Option<Box<models::BucketLifecycleRuleInnerCondition>>,
}

impl BucketLifecycleRuleInner {
    pub fn new() -> BucketLifecycleRuleInner {
        BucketLifecycleRuleInner {
            action: None,
            condition: None,
        }
    }
}
