Kinetica   C#   API  Version 7.2.3.1
UploadFiles.cs
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 
7 using System.Collections.Generic;
8 
9 namespace kinetica;
10 
64 {
68  public struct Options
69  {
87  public const string FILE_ENCODING = "file_encoding";
88 
91  public const string BASE64 = "base64";
92 
95  public const string NONE = "none";
96 
129  public const string MULTIPART_OPERATION = "multipart_operation";
130 
132  public const string INIT = "init";
133 
136  public const string UPLOAD_PART = "upload_part";
137 
139  public const string COMPLETE = "complete";
140 
142  public const string CANCEL = "cancel";
143 
145  public const string MULTIPART_UPLOAD_UUID = "multipart_upload_uuid";
146 
151  public const string MULTIPART_UPLOAD_PART_NUMBER = "multipart_upload_part_number";
152 
167  public const string DELETE_IF_EXISTS = "delete_if_exists";
168 
169  public const string TRUE = "true";
170  public const string FALSE = "false";
171  } // end struct Options
172 
180  public IList<string> file_names { get; set; } = new List<string>();
181 
184  public IList<byte[]> file_data { get; set; } = new List<byte[]>();
185 
287  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
288 
291  public UploadFilesRequest() { }
292 
405  public UploadFilesRequest( IList<string> file_names,
406  IList<byte[]> file_data,
407  IDictionary<string, string> options = null)
408  {
409  this.file_names = file_names ?? new List<string>();
410  this.file_data = file_data ?? new List<byte[]>();
411  this.options = options ?? new Dictionary<string, string>();
412  } // end constructor
413 } // end class UploadFilesRequest
414 
419 {
421  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
422 } // end class UploadFilesResponse
A set of results returned by Kinetica.uploadFiles.
Definition: UploadFiles.cs:418
IDictionary< string, string > options
Optional parameters.
Definition: UploadFiles.cs:287
IList< string > file_names
An array of full file name paths to be used for the files uploaded to KiFS.
Definition: UploadFiles.cs:180
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14
const string CANCEL
Cancel the specified multipart file upload.
Definition: UploadFiles.cs:142
const string COMPLETE
Complete the specified multipart file upload.
Definition: UploadFiles.cs:139
const string UPLOAD_PART
Uploads a part of the specified multipart file upload.
Definition: UploadFiles.cs:136
const string DELETE_IF_EXISTS
If TRUE, any existing files specified in file_names will be deleted prior to start of upload.
Definition: UploadFiles.cs:167
const string MULTIPART_UPLOAD_PART_NUMBER
Incremental part number for each part in a multipart upload.
Definition: UploadFiles.cs:151
const string FILE_ENCODING
Encoding that has been applied to the uploaded file data.
Definition: UploadFiles.cs:87
const string MULTIPART_OPERATION
Multipart upload operation to perform.
Definition: UploadFiles.cs:129
IDictionary< string, string > info
Additional information.
Definition: UploadFiles.cs:421
UploadFilesRequest(IList< string > file_names, IList< byte[]> file_data, IDictionary< string, string > options=null)
Constructs an UploadFilesRequest object with the specified parameters.
Definition: UploadFiles.cs:405
A set of string constants for the parameter options.
Definition: UploadFiles.cs:68
IList< byte[]> file_data
File data for the files being uploaded, for the respective files in file_names.
Definition: UploadFiles.cs:184
const string NONE
Default, indicates this is not a multipart upload.
Definition: UploadFiles.cs:95
A set of parameters for Kinetica.uploadFiles.
Definition: UploadFiles.cs:63
const string BASE64
Specifies that the file data being uploaded has been base64 encoded.
Definition: UploadFiles.cs:91
const string MULTIPART_UPLOAD_UUID
UUID to uniquely identify a multipart upload.
Definition: UploadFiles.cs:145
UploadFilesRequest()
Constructs an UploadFilesRequest object with default parameters.
Definition: UploadFiles.cs:291
const string INIT
Initialize a multipart file upload.
Definition: UploadFiles.cs:132