use serde::{Deserialize, Serialize}; /*
                                      * Cloud DNS API
                                      *
                                      * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

use crate::google_rest_apis::dns_v1::models;

/// DnsKeysListResponse : The response to a request to enumerate DnsKeys in a ManagedZone.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DnsKeysListResponse {
    /// The requested resources.
    #[serde(rename = "dnsKeys", skip_serializing_if = "Option::is_none")]
    pub dns_keys: Option<Vec<models::DnsKey>>,
    #[serde(rename = "header", skip_serializing_if = "Option::is_none")]
    pub header: Option<Box<models::ResponseHeader>>,
    /// Type of resource.
    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    /// The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your pagination token. In this way you can retrieve the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned are an inconsistent view of the collection. There is no way to retrieve a \"snapshot\" of collections larger than the maximum page size.
    #[serde(rename = "nextPageToken", skip_serializing_if = "Option::is_none")]
    pub next_page_token: Option<String>,
}

impl DnsKeysListResponse {
    /// The response to a request to enumerate DnsKeys in a ManagedZone.
    pub fn new() -> DnsKeysListResponse {
        DnsKeysListResponse {
            dns_keys: None,
            header: None,
            kind: None,
            next_page_token: None,
        }
    }
}
