/*
 * ProxMox VE API
 *
 * ProxMox VE API
 *
 * The version of the OpenAPI document: 2.0
 * Contact: support@lumaserv.com
 * Generated by: https://github.com/openapitools/openapi-generator.git
 */


using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter;

namespace ProxmoxSharp.Model
{
    /// <summary>
    /// GetAccessAcl200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getAccessAcl_200_response_data_inner")]
    public partial class GetAccessAcl200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetAccessAcl200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="path">Access control path.</param>
        /// <param name="propagate">Allow to propagate (inherit) permissions..</param>
        /// <param name="roleid">roleid.</param>
        /// <param name="type">type.</param>
        /// <param name="ugid">ugid.</param>
        public GetAccessAcl200ResponseDataInner(string path = default(string), Int64 propagate = default(Int64), string roleid = default(string), string type = default(string), string ugid = default(string))
        {
            this.Path = path;
            this.Propagate = propagate;
            this.Roleid = roleid;
            this.Type = type;
            this.Ugid = ugid;
        }

        /// <summary>
        /// Access control path
        /// </summary>
        /// <value>Access control path</value>
        [DataMember(Name = "path", EmitDefaultValue = false)]
        public string Path { get; set; }

        /// <summary>
        /// Allow to propagate (inherit) permissions.
        /// </summary>
        /// <value>Allow to propagate (inherit) permissions.</value>
        [DataMember(Name = "propagate", EmitDefaultValue = false)]
        public Int64 Propagate { get; set; }

        /// <summary>
        /// Gets or Sets Roleid
        /// </summary>
        [DataMember(Name = "roleid", EmitDefaultValue = false)]
        public string Roleid { get; set; }

        /// <summary>
        /// Gets or Sets Type
        /// </summary>
        [DataMember(Name = "type", EmitDefaultValue = false)]
        public string Type { get; set; }

        /// <summary>
        /// Gets or Sets Ugid
        /// </summary>
        [DataMember(Name = "ugid", EmitDefaultValue = false)]
        public string Ugid { get; set; }

        /// <summary>
        /// Returns the string presentation of the object
        /// </summary>
        /// <returns>String presentation of the object</returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("class GetAccessAcl200ResponseDataInner {\n");
            sb.Append("  Path: ").Append(Path).Append("\n");
            sb.Append("  Propagate: ").Append(Propagate).Append("\n");
            sb.Append("  Roleid: ").Append(Roleid).Append("\n");
            sb.Append("  Type: ").Append(Type).Append("\n");
            sb.Append("  Ugid: ").Append(Ugid).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }

        /// <summary>
        /// Returns the JSON string presentation of the object
        /// </summary>
        /// <returns>JSON string presentation of the object</returns>
        public virtual string ToJson()
        {
            return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
        }

        /// <summary>
        /// To validate all properties of the instance
        /// </summary>
        /// <param name="validationContext">Validation context</param>
        /// <returns>Validation Result</returns>
        IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
        {
            yield break;
        }
    }

}
