コード例 #1
0
        internal static string ToSerializedValue(this IsJobCancellable value)
        {
            switch (value)
            {
            case IsJobCancellable.NotCancellable:
                return("NotCancellable");

            case IsJobCancellable.Cancellable:
                return("Cancellable");
            }
            return(null);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the Job class.
 /// </summary>
 /// <param name="status">Status of the job. Possible values include:
 /// 'None', 'InProgress', 'Succeeded', 'WaitingForAction', 'Failed',
 /// 'Cancelled', 'Cancelling'</param>
 /// <param name="startTime">Time at which the job was started in UTC
 /// ISO 8601 format.</param>
 /// <param name="isCancellable">Describes whether the job is
 /// cancellable. Possible values include: 'NotCancellable',
 /// 'Cancellable'</param>
 /// <param name="name">Name of the object.</param>
 /// <param name="id">Id of the object.</param>
 /// <param name="type">Type of the object.</param>
 /// <param name="endTime">Time at which the job ended in UTC ISO 8601
 /// format.</param>
 /// <param name="bytesProcessed">Number of bytes processed by the job
 /// as of now.</param>
 /// <param name="itemsProcessed">Number of items processed by the job
 /// as of now</param>
 /// <param name="totalBytesToProcess">Number of bytes to be processed
 /// by the job in total.</param>
 /// <param name="totalItemsToProcess">Number of items to be processed
 /// by the job in total</param>
 /// <param name="details">Details of a job run. This field will only be
 /// sent for expand details filter.</param>
 /// <param name="dataSourceName">Name of the data source on which the
 /// job was triggered.</param>
 /// <param name="dataSinkName">Name of the data sink on which the job
 /// was triggered.</param>
 /// <param name="error">Top level error for the job.</param>
 public Job(JobStatus status, System.DateTime startTime, IsJobCancellable isCancellable, string name = default(string), string id = default(string), string type = default(string), System.DateTime?endTime = default(System.DateTime?), long?bytesProcessed = default(long?), long?itemsProcessed = default(long?), long?totalBytesToProcess = default(long?), long?totalItemsToProcess = default(long?), JobDetails details = default(JobDetails), string dataSourceName = default(string), string dataSinkName = default(string), Error error = default(Error))
     : base(name, id, type)
 {
     Status              = status;
     StartTime           = startTime;
     EndTime             = endTime;
     IsCancellable       = isCancellable;
     BytesProcessed      = bytesProcessed;
     ItemsProcessed      = itemsProcessed;
     TotalBytesToProcess = totalBytesToProcess;
     TotalItemsToProcess = totalItemsToProcess;
     Details             = details;
     DataSourceName      = dataSourceName;
     DataSinkName        = dataSinkName;
     Error = error;
     CustomInit();
 }