/// <summary> /// Initializes a new instance of the <see cref="EdgeGroup" /> class. /// </summary> /// <param name="Name">The name of the entity. (required).</param> /// <param name="Description">The resource's description..</param> /// <param name="Version">The current version of the resource..</param> /// <param name="DateCreated">The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="DateModified">The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="ModifiedBy">The ID of the user that last modified the resource..</param> /// <param name="CreatedBy">The ID of the user that created the resource..</param> /// <param name="ModifiedByApp">The application that last modified the resource..</param> /// <param name="CreatedByApp">The application that created the resource..</param> /// <param name="Managed">Is this edge group being managed remotely..</param> /// <param name="EdgeTrunkBaseAssignment">A trunk base settings assignment of trunkType \"EDGE\" to use for edge-to-edge communication. (required).</param> /// <param name="PhoneTrunkBases">Trunk base settings of trunkType \"PHONE\" to inherit to edge logical interface for phone communication. (required).</param> public EdgeGroup(string Name = null, string Description = null, int?Version = null, DateTime?DateCreated = null, DateTime?DateModified = null, string ModifiedBy = null, string CreatedBy = null, string ModifiedByApp = null, string CreatedByApp = null, bool?Managed = null, TrunkBaseAssignment EdgeTrunkBaseAssignment = null, List <TrunkBase> PhoneTrunkBases = null) { this.Name = Name; this.Description = Description; this.Version = Version; this.DateCreated = DateCreated; this.DateModified = DateModified; this.ModifiedBy = ModifiedBy; this.CreatedBy = CreatedBy; this.ModifiedByApp = ModifiedByApp; this.CreatedByApp = CreatedByApp; this.Managed = Managed; this.EdgeTrunkBaseAssignment = EdgeTrunkBaseAssignment; this.PhoneTrunkBases = PhoneTrunkBases; }
/// <summary> /// Initializes a new instance of the <see cref="EdgeGroup" /> class. /// </summary> /// <param name="Name">The name of the entity. (required).</param> /// <param name="Description">The resource's description..</param> /// <param name="Version">The current version of the resource..</param> /// <param name="DateCreated">The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="DateModified">The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="ModifiedBy">The ID of the user that last modified the resource..</param> /// <param name="CreatedBy">The ID of the user that created the resource..</param> /// <param name="ModifiedByApp">The application that last modified the resource..</param> /// <param name="CreatedByApp">The application that created the resource..</param> /// <param name="Managed">Is this edge group being managed remotely..</param> /// <param name="EdgeTrunkBaseAssignment">A trunk base settings assignment of trunkType \"EDGE\" to use for edge-to-edge communication. (required).</param> /// <param name="PhoneTrunkBases">Trunk base settings of trunkType \"PHONE\" to inherit to edge logical interface for phone communication. (required).</param> public EdgeGroup(string Name = null, string Description = null, int?Version = null, DateTime?DateCreated = null, DateTime?DateModified = null, string ModifiedBy = null, string CreatedBy = null, string ModifiedByApp = null, string CreatedByApp = null, bool?Managed = null, TrunkBaseAssignment EdgeTrunkBaseAssignment = null, List <TrunkBase> PhoneTrunkBases = null) { // to ensure "Name" is required (not null) if (Name == null) { throw new InvalidDataException("Name is a required property for EdgeGroup and cannot be null"); } else { this.Name = Name; } // to ensure "EdgeTrunkBaseAssignment" is required (not null) if (EdgeTrunkBaseAssignment == null) { throw new InvalidDataException("EdgeTrunkBaseAssignment is a required property for EdgeGroup and cannot be null"); } else { this.EdgeTrunkBaseAssignment = EdgeTrunkBaseAssignment; } // to ensure "PhoneTrunkBases" is required (not null) if (PhoneTrunkBases == null) { throw new InvalidDataException("PhoneTrunkBases is a required property for EdgeGroup and cannot be null"); } else { this.PhoneTrunkBases = PhoneTrunkBases; } this.Description = Description; this.Version = Version; this.DateCreated = DateCreated; this.DateModified = DateModified; this.ModifiedBy = ModifiedBy; this.CreatedBy = CreatedBy; this.ModifiedByApp = ModifiedByApp; this.CreatedByApp = CreatedByApp; this.Managed = Managed; }