Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PolicyCreate" /> class.
 /// </summary>
 /// <param name="Name">The policy name. (required).</param>
 /// <param name="ModifiedDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="CreatedDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="Order">Order.</param>
 /// <param name="Description">Description.</param>
 /// <param name="Enabled">Enabled.</param>
 /// <param name="MediaPolicies">Conditions and actions per media type.</param>
 /// <param name="Conditions">Conditions.</param>
 /// <param name="Actions">Actions.</param>
 /// <param name="PolicyErrors">PolicyErrors.</param>
 public PolicyCreate(string Name = null, DateTime?ModifiedDate = null, DateTime?CreatedDate = null, int?Order = null, string Description = null, bool?Enabled = null, MediaPolicies MediaPolicies = null, PolicyConditions Conditions = null, PolicyActions Actions = null, PolicyErrors PolicyErrors = null)
 {
     this.Name          = Name;
     this.ModifiedDate  = ModifiedDate;
     this.CreatedDate   = CreatedDate;
     this.Order         = Order;
     this.Description   = Description;
     this.Enabled       = Enabled;
     this.MediaPolicies = MediaPolicies;
     this.Conditions    = Conditions;
     this.Actions       = Actions;
     this.PolicyErrors  = PolicyErrors;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PolicyCreate" /> class.
        /// </summary>



        /// <param name="Name">The policy name. (required).</param>



        /// <param name="ModifiedDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>



        /// <param name="CreatedDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>



        /// <param name="Order">Order.</param>



        /// <param name="Description">Description.</param>



        /// <param name="Enabled">Enabled.</param>



        /// <param name="MediaPolicies">Conditions and actions per media type.</param>



        /// <param name="Conditions">Conditions.</param>



        /// <param name="Actions">Actions.</param>



        /// <param name="PolicyErrors">PolicyErrors.</param>



        public PolicyCreate(string Name = null, DateTime?ModifiedDate = null, DateTime?CreatedDate = null, int?Order = null, string Description = null, bool?Enabled = null, MediaPolicies MediaPolicies = null, PolicyConditions Conditions = null, PolicyActions Actions = null, PolicyErrors PolicyErrors = null)
        {
            // to ensure "Name" is required (not null)
            if (Name == null)
            {
                throw new InvalidDataException("Name is a required property for PolicyCreate and cannot be null");
            }
            else
            {
                this.Name = Name;
            }



            this.ModifiedDate = ModifiedDate;



            this.CreatedDate = CreatedDate;



            this.Order = Order;



            this.Description = Description;



            this.Enabled = Enabled;



            this.MediaPolicies = MediaPolicies;



            this.Conditions = Conditions;



            this.Actions = Actions;



            this.PolicyErrors = PolicyErrors;
        }