use serde::{Deserialize, Serialize}; /*
                                      * Compute Engine API
                                      *
                                      * Creates and runs virtual machines on Google Cloud Platform.
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

use crate::google_rest_apis::compute_v1::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RegionInstanceGroupsSetNamedPortsRequest {
    /// The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.
    #[serde(rename = "fingerprint", skip_serializing_if = "Option::is_none")]
    pub fingerprint: Option<String>,
    /// The list of named ports to set for this instance group.
    #[serde(rename = "namedPorts", skip_serializing_if = "Option::is_none")]
    pub named_ports: Option<Vec<models::NamedPort>>,
}

impl RegionInstanceGroupsSetNamedPortsRequest {
    pub fn new() -> RegionInstanceGroupsSetNamedPortsRequest {
        RegionInstanceGroupsSetNamedPortsRequest {
            fingerprint: None,
            named_ports: None,
        }
    }
}
