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
                                      */

/// GoogleIamV1SetIamPolicyRequest : Request message for `SetIamPolicy` method.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct GoogleIamV1SetIamPolicyRequest {
    #[serde(rename = "policy", skip_serializing_if = "Option::is_none")]
    pub policy: Option<Box<crate::google_rest_apis::dns_v1::models::GoogleIamV1Policy>>,
    /// OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: \"bindings, etag\"`
    #[serde(rename = "updateMask", skip_serializing_if = "Option::is_none")]
    pub update_mask: Option<String>,
}

impl GoogleIamV1SetIamPolicyRequest {
    /// Request message for `SetIamPolicy` method.
    pub fn new() -> GoogleIamV1SetIamPolicyRequest {
        GoogleIamV1SetIamPolicyRequest {
            policy: None,
            update_mask: None,
        }
    }
}
