internal AzureBlobFSDataset(string type, string description, object structure, object schema, LinkedServiceReference linkedServiceName, IDictionary <string, ParameterSpecification> parameters, IList <object> annotations, DatasetFolder folder, IDictionary <string, object> additionalProperties, object folderPath, object fileName, DatasetStorageFormat format, DatasetCompression compression) : base(type, description, structure, schema, linkedServiceName, parameters, annotations, folder, additionalProperties) { FolderPath = folderPath; FileName = fileName; Format = format; Compression = compression; Type = type ?? "AzureBlobFSFile"; }
internal HttpDataset(string type, string description, object structure, object schema, LinkedServiceReference linkedServiceName, IDictionary <string, ParameterSpecification> parameters, IList <object> annotations, DatasetFolder folder, IDictionary <string, object> additionalProperties, object relativeUrl, object requestMethod, object requestBody, object additionalHeaders, DatasetStorageFormat format, DatasetCompression compression) : base(type, description, structure, schema, linkedServiceName, parameters, annotations, folder, additionalProperties) { RelativeUrl = relativeUrl; RequestMethod = requestMethod; RequestBody = requestBody; AdditionalHeaders = additionalHeaders; Format = format; Compression = compression; Type = type ?? "HttpFile"; }
internal FileShareDataset(string type, string description, object structure, object schema, LinkedServiceReference linkedServiceName, IDictionary <string, ParameterSpecification> parameters, IList <object> annotations, DatasetFolder folder, IDictionary <string, object> additionalProperties, object folderPath, object fileName, object modifiedDatetimeStart, object modifiedDatetimeEnd, DatasetStorageFormat format, object fileFilter, DatasetCompression compression) : base(type, description, structure, schema, linkedServiceName, parameters, annotations, folder, additionalProperties) { FolderPath = folderPath; FileName = fileName; ModifiedDatetimeStart = modifiedDatetimeStart; ModifiedDatetimeEnd = modifiedDatetimeEnd; Format = format; FileFilter = fileFilter; Compression = compression; Type = type ?? "FileShare"; }
internal AmazonS3Dataset(string type, string description, object structure, object schema, LinkedServiceReference linkedServiceName, IDictionary <string, ParameterSpecification> parameters, IList <object> annotations, DatasetFolder folder, IDictionary <string, object> additionalProperties, object bucketName, object key, object prefix, object version, object modifiedDatetimeStart, object modifiedDatetimeEnd, DatasetStorageFormat format, DatasetCompression compression) : base(type, description, structure, schema, linkedServiceName, parameters, annotations, folder, additionalProperties) { BucketName = bucketName; Key = key; Prefix = prefix; Version = version; ModifiedDatetimeStart = modifiedDatetimeStart; ModifiedDatetimeEnd = modifiedDatetimeEnd; Format = format; Compression = compression; Type = type ?? "AmazonS3Object"; }
internal static AzureDataLakeStoreDataset DeserializeAzureDataLakeStoreDataset(JsonElement element) { string type = default; Optional <string> description = default; Optional <object> structure = default; Optional <object> schema = default; LinkedServiceReference linkedServiceName = default; Optional <IDictionary <string, ParameterSpecification> > parameters = default; Optional <IList <object> > annotations = default; Optional <DatasetFolder> folder = default; Optional <object> folderPath = default; Optional <object> fileName = default; Optional <DatasetStorageFormat> format = default; Optional <DatasetCompression> compression = default; IDictionary <string, object> additionalProperties = default; Dictionary <string, object> additionalPropertiesDictionary = new Dictionary <string, object>(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("type")) { type = property.Value.GetString(); continue; } if (property.NameEquals("description")) { description = property.Value.GetString(); continue; } if (property.NameEquals("structure")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } structure = property.Value.GetObject(); continue; } if (property.NameEquals("schema")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } schema = property.Value.GetObject(); continue; } if (property.NameEquals("linkedServiceName")) { linkedServiceName = LinkedServiceReference.DeserializeLinkedServiceReference(property.Value); continue; } if (property.NameEquals("parameters")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } Dictionary <string, ParameterSpecification> dictionary = new Dictionary <string, ParameterSpecification>(); foreach (var property0 in property.Value.EnumerateObject()) { dictionary.Add(property0.Name, ParameterSpecification.DeserializeParameterSpecification(property0.Value)); } parameters = dictionary; continue; } if (property.NameEquals("annotations")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } List <object> array = new List <object>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(item.GetObject()); } annotations = array; continue; } if (property.NameEquals("folder")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } folder = DatasetFolder.DeserializeDatasetFolder(property.Value); continue; } if (property.NameEquals("typeProperties")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } foreach (var property0 in property.Value.EnumerateObject()) { if (property0.NameEquals("folderPath")) { if (property0.Value.ValueKind == JsonValueKind.Null) { property0.ThrowNonNullablePropertyIsNull(); continue; } folderPath = property0.Value.GetObject(); continue; } if (property0.NameEquals("fileName")) { if (property0.Value.ValueKind == JsonValueKind.Null) { property0.ThrowNonNullablePropertyIsNull(); continue; } fileName = property0.Value.GetObject(); continue; } if (property0.NameEquals("format")) { if (property0.Value.ValueKind == JsonValueKind.Null) { property0.ThrowNonNullablePropertyIsNull(); continue; } format = DatasetStorageFormat.DeserializeDatasetStorageFormat(property0.Value); continue; } if (property0.NameEquals("compression")) { if (property0.Value.ValueKind == JsonValueKind.Null) { property0.ThrowNonNullablePropertyIsNull(); continue; } compression = DatasetCompression.DeserializeDatasetCompression(property0.Value); continue; } } continue; } additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; return(new AzureDataLakeStoreDataset(type, description.Value, structure.Value, schema.Value, linkedServiceName, Optional.ToDictionary(parameters), Optional.ToList(annotations), folder.Value, additionalProperties, folderPath.Value, fileName.Value, format.Value, compression.Value)); }