Example #1
0
 /// <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;
 }
Example #2
0
 /// <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&#39;s been prepared separately using the ETL services. Specifying this attribute means that the service will automatically start a job that&#39;s consuming data from the table. No manual uploading of records is needed in this case. The table structure must match the provided &#x60;input_fields&#x60; value. If no &#x60;input_fields&#x60; array is provided, fields will be inferred using the column names in the table. In this case the column names must match the &#x60;input_fields&#x60; names, optionally suffixed with numbers, e.g. &#x60;address_line1&#x60;, &#x60;address_line2&#x60; etc.	.</param>
 /// <param name="DefaultCountry">An optional 2 letter country code (such as \&quot;US\&quot;) 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;
 }