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;

/// BucketHierarchicalNamespace : The bucket's hierarchical namespace configuration.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BucketHierarchicalNamespace {
    /// When set to true, hierarchical namespace is enabled for this bucket.
    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
}

impl BucketHierarchicalNamespace {
    /// The bucket's hierarchical namespace configuration.
    pub fn new() -> BucketHierarchicalNamespace {
        BucketHierarchicalNamespace { enabled: None }
    }
}
