/// <summary> /// Initializes a new instance of the <see cref="JobInformationResponse" /> class. /// </summary> /// <param name="JobId">JobId.</param> /// <param name="Name">A user-provided name for the job..</param> /// <param name="Description">An optional user-provided text describing the job..</param> /// <param name="CreatedAt">The time of job creation.</param> /// <param name="Owner">The user_id of the job-owning user..</param> /// <param name="ClientInformation">ClientInformation.</param> /// <param name="Services">Services.</param> /// <param name="JobStatus">JobStatus.</param> /// <param name="ProgressDetails">ProgressDetails.</param> /// <param name="AssessmentMetrics">AssessmentMetrics.</param> public JobInformationResponse(string JobId = default(string), string Name = default(string), string Description = default(string), DateTime?CreatedAt = default(DateTime?), string Owner = default(string), ClientInformation ClientInformation = default(ClientInformation), ServicesArray Services = default(ServicesArray), JobStatus JobStatus = default(JobStatus), ProgressDetails ProgressDetails = default(ProgressDetails), JobInformationResponseAssessmentMetrics AssessmentMetrics = default(JobInformationResponseAssessmentMetrics)) { this.JobId = JobId; this.Name = Name; this.Description = Description; this.CreatedAt = CreatedAt; this.Owner = Owner; this.ClientInformation = ClientInformation; this.Services = Services; this.JobStatus = JobStatus; this.ProgressDetails = ProgressDetails; this.AssessmentMetrics = AssessmentMetrics; }
/// <summary> /// Initializes a new instance of the <see cref="JobCreationRequest" /> class. /// </summary> /// <param name="Name">An optional user-provided name for the job..</param> /// <param name="Description">An optional user-provided text describing the job..</param> /// <param name="TableId">The ID of a table that's been prepared separately using the ETL services. Specifying this attribute means that the service will automatically start a job that's consuming data from the table. No manual uploading of records is needed in this case. The table structure must match the provided `input_fields` value. If no `input_fields` array is provided, fields will be inferred using the column names in the table. In this case the column names must match the `input_fields` names, optionally suffixed with numbers, e.g. `address_line1`, `address_line2` etc. .</param> /// <param name="DefaultCountry">An optional 2 letter country code (such as \"US\") that will act as a default value for records where there is no country specified..</param> /// <param name="ClientInformation">ClientInformation.</param> /// <param name="Services">Services (required).</param> /// <param name="InputFields">InputFields.</param> public JobCreationRequest(string Name = default(string), string Description = default(string), string TableId = default(string), string DefaultCountry = default(string), ClientInformation ClientInformation = default(ClientInformation), ServicesArray Services = default(ServicesArray), FieldsArray InputFields = default(FieldsArray)) { // to ensure "Services" is required (not null) if (Services == null) { throw new InvalidDataException("Services is a required property for JobCreationRequest and cannot be null"); } else { this.Services = Services; } this.Name = Name; this.Description = Description; this.TableId = TableId; this.DefaultCountry = DefaultCountry; this.ClientInformation = ClientInformation; this.InputFields = InputFields; }