use serde::{Deserialize, Serialize}; /*
                                      * Cloud SQL Admin API
                                      *
                                      * API for Cloud SQL database instance management
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

/// InstancesListResponse : Database instances list response.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct InstancesListResponse {
    /// List of database instance resources.
    #[serde(rename = "items", skip_serializing_if = "Option::is_none")]
    pub items: Option<Vec<crate::google_rest_apis::sqladmin_v1::models::DatabaseInstance>>,
    /// This is always `sql#instancesList`.
    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    /// The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
    #[serde(rename = "nextPageToken", skip_serializing_if = "Option::is_none")]
    pub next_page_token: Option<String>,
    /// List of warnings that occurred while handling the request.
    #[serde(rename = "warnings", skip_serializing_if = "Option::is_none")]
    pub warnings: Option<Vec<crate::google_rest_apis::sqladmin_v1::models::ApiWarning>>,
}

impl InstancesListResponse {
    /// Database instances list response.
    pub fn new() -> InstancesListResponse {
        InstancesListResponse {
            items: None,
            kind: None,
            next_page_token: None,
            warnings: None,
        }
    }
}
