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;

/// ObjectOwner : The owner of the object. This will always be the uploader of the object.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ObjectOwner {
    /// The entity, in the form user-userId.
    #[serde(rename = "entity", skip_serializing_if = "Option::is_none")]
    pub entity: Option<String>,
    /// The ID for the entity.
    #[serde(rename = "entityId", skip_serializing_if = "Option::is_none")]
    pub entity_id: Option<String>,
}

impl ObjectOwner {
    /// The owner of the object. This will always be the uploader of the object.
    pub fn new() -> ObjectOwner {
        ObjectOwner {
            entity: None,
            entity_id: None,
        }
    }
}
