/// <summary> /// Initializes a new instance of the <see cref="ApikeyResponse" /> class. /// </summary> /// <param name="objApikeyDescription">objApikeyDescription (required).</param> /// <param name="sComputedToken">The secret token for the API key. This will be returned only on creation..</param> /// <param name="pkiApikeyID">The unique ID of the Apikey (required).</param> /// <param name="objAudit">objAudit (required).</param> public ApikeyResponse(MultilingualApikeyDescription objApikeyDescription = default(MultilingualApikeyDescription), string sComputedToken = default(string), int pkiApikeyID = default(int), CommonAudit objAudit = default(CommonAudit)) { // to ensure "objApikeyDescription" is required (not null) if (objApikeyDescription == null) { throw new InvalidDataException("objApikeyDescription is a required property for ApikeyResponse and cannot be null"); } else { this.ObjApikeyDescription = objApikeyDescription; } // to ensure "pkiApikeyID" is required (not null) if (pkiApikeyID == null) { throw new InvalidDataException("pkiApikeyID is a required property for ApikeyResponse and cannot be null"); } else { this.PkiApikeyID = pkiApikeyID; } // to ensure "objAudit" is required (not null) if (objAudit == null) { throw new InvalidDataException("objAudit is a required property for ApikeyResponse and cannot be null"); } else { this.ObjAudit = objAudit; } this.SComputedToken = sComputedToken; }
/// <summary> /// Initializes a new instance of the <see cref="ApikeyResponse" /> class. /// </summary> /// <param name="objApikeyDescription">objApikeyDescription (required).</param> /// <param name="sComputedToken">The secret token for the API key. This will be returned only on creation..</param> /// <param name="pkiApikeyID">The unique ID of the Apikey (required).</param> /// <param name="objAudit">objAudit (required).</param> public ApikeyResponse(MultilingualApikeyDescription objApikeyDescription = default(MultilingualApikeyDescription), string sComputedToken = default(string), int pkiApikeyID = default(int), CommonAudit objAudit = default(CommonAudit)) { // to ensure "objApikeyDescription" is required (not null) this.ObjApikeyDescription = objApikeyDescription ?? throw new ArgumentNullException("objApikeyDescription is a required property for ApikeyResponse and cannot be null"); this.PkiApikeyID = pkiApikeyID; // to ensure "objAudit" is required (not null) this.ObjAudit = objAudit ?? throw new ArgumentNullException("objAudit is a required property for ApikeyResponse and cannot be null"); this.SComputedToken = sComputedToken; }
/// <summary> /// Initializes a new instance of the <see cref="ApikeyRequest" /> class. /// </summary> /// <param name="fkiUserID">The unique ID of the User (required).</param> /// <param name="objApikeyDescription">objApikeyDescription (required).</param> public ApikeyRequest(int fkiUserID = default(int), MultilingualApikeyDescription objApikeyDescription = default(MultilingualApikeyDescription)) { this.FkiUserID = fkiUserID; // to ensure "objApikeyDescription" is required (not null) this.ObjApikeyDescription = objApikeyDescription ?? throw new ArgumentNullException("objApikeyDescription is a required property for ApikeyRequest and cannot be null"); }