internal void ModifyConfiguration(JobConfigurationLoad loadRequest) { if (AllowUnknownFields != null) { loadRequest.IgnoreUnknownValues = AllowUnknownFields; } if (MaxBadRecords != null) { loadRequest.MaxBadRecords = MaxBadRecords; } if (CreateDisposition != null) { loadRequest.CreateDisposition = EnumMap.ToApiValue(CreateDisposition.Value); } if (WriteDisposition != null) { loadRequest.WriteDisposition = EnumMap.ToApiValue(WriteDisposition.Value); } if (TimePartitioning != null) { loadRequest.TimePartitioning = TimePartitioning; } if (DestinationEncryptionConfiguration != null) { loadRequest.DestinationEncryptionConfiguration = DestinationEncryptionConfiguration; } if (DestinationSchemaUpdateOptions != null) { loadRequest.SchemaUpdateOptions = new List <string>(EnumMap.ToApiValues(DestinationSchemaUpdateOptions.Value)); } }
internal void ModifyConfiguration(JobConfigurationLoad loadRequest) { if (SkipLeadingRows != null) { loadRequest.SkipLeadingRows = SkipLeadingRows; } if (Quote != null) { loadRequest.Quote = Quote; } if (AllowQuotedNewlines != null) { loadRequest.AllowQuotedNewlines = AllowQuotedNewlines; } if (AllowJaggedRows != null) { loadRequest.AllowJaggedRows = AllowJaggedRows; } if (FieldDelimiter != null) { loadRequest.FieldDelimiter = FieldDelimiter; } if (AllowTrailingColumns != null) { loadRequest.IgnoreUnknownValues = AllowTrailingColumns; } if (MaxBadRecords != null) { loadRequest.MaxBadRecords = MaxBadRecords; } if (CreateDisposition != null) { loadRequest.CreateDisposition = EnumMap.ToApiValue(CreateDisposition.Value); } if (WriteDisposition != null) { loadRequest.WriteDisposition = EnumMap.ToApiValue(WriteDisposition.Value); } if (Autodetect != null) { loadRequest.Autodetect = Autodetect; } if (NullMarker != null) { loadRequest.NullMarker = NullMarker; } if (TimePartitioning != null) { loadRequest.TimePartitioning = TimePartitioning; } if (DestinationEncryptionConfiguration != null) { loadRequest.DestinationEncryptionConfiguration = DestinationEncryptionConfiguration; } if (DestinationSchemaUpdateOptions != null) { loadRequest.SchemaUpdateOptions = new List <string>(EnumMap.ToApiValues(DestinationSchemaUpdateOptions.Value)); } // TODO: Encoding? Only UTF-8 and ISO-8859-1 are supported... unsure what to do with this. }
internal void ModifyRequest(JobConfigurationQuery query) { // Note: no validation of combinations (flatten results etc). Leave this to the server, // to avoid restrictions getting out of date. if (AllowLargeResults != null) { query.AllowLargeResults = AllowLargeResults; } if (CreateDisposition != null) { query.CreateDisposition = EnumMap.ToApiValue(CreateDisposition.Value); } if (DefaultDataset != null) { query.DefaultDataset = DefaultDataset; } if (DestinationTable != null) { query.DestinationTable = DestinationTable; } if (FlattenResults != null) { query.FlattenResults = FlattenResults; } if (MaximumBillingTier != null) { query.MaximumBillingTier = MaximumBillingTier; } if (MaximumBytesBilled != null) { query.MaximumBytesBilled = MaximumBytesBilled; } if (Priority != null) { query.Priority = EnumMap.ToApiValue(Priority.Value); } if (UseQueryCache != null) { query.UseQueryCache = UseQueryCache; } if (WriteDisposition != null) { query.WriteDisposition = EnumMap.ToApiValue(WriteDisposition.Value); } if (UseLegacySql != null) { query.UseLegacySql = UseLegacySql; } if (ParameterMode != null) { // Safe for now; we only have "named" or "positional". This is unlikely to change. query.ParameterMode = ParameterMode.ToString().ToLowerInvariant(); } if (DestinationEncryptionConfiguration != null) { query.DestinationEncryptionConfiguration = DestinationEncryptionConfiguration; } if (DestinationSchemaUpdateOptions != null) { query.SchemaUpdateOptions = new List <string>(EnumMap.ToApiValues(DestinationSchemaUpdateOptions.Value)); } }
internal void ModifyRequest(JobConfigurationLoad load) { if (SkipLeadingRows != null) { load.SkipLeadingRows = SkipLeadingRows; } if (Quote != null) { load.Quote = Quote; } if (AllowQuotedNewlines != null) { load.AllowQuotedNewlines = AllowQuotedNewlines; } if (AllowJaggedRows != null) { load.AllowJaggedRows = AllowJaggedRows; } if (FieldDelimiter != null) { load.FieldDelimiter = FieldDelimiter; } if (IgnoreUnknownValues != null) { load.IgnoreUnknownValues = IgnoreUnknownValues; } if (MaxBadRecords != null) { load.MaxBadRecords = MaxBadRecords; } if (CreateDisposition != null) { load.CreateDisposition = EnumMap.ToApiValue(CreateDisposition.Value); } if (WriteDisposition != null) { load.WriteDisposition = EnumMap.ToApiValue(WriteDisposition.Value); } if (Autodetect != null) { load.Autodetect = Autodetect; } if (ProjectionFields != null) { load.ProjectionFields = ProjectionFields; } if (NullMarker != null) { load.NullMarker = NullMarker; } if (SourceFormat != null) { load.SourceFormat = EnumMap.ToApiValue(SourceFormat.Value); } if (TimePartitioning != null) { load.TimePartitioning = TimePartitioning; } if (DestinationEncryptionConfiguration != null) { load.DestinationEncryptionConfiguration = DestinationEncryptionConfiguration; } if (DestinationSchemaUpdateOptions != null) { load.SchemaUpdateOptions = new List <string>(EnumMap.ToApiValues(DestinationSchemaUpdateOptions.Value)); } if (UseAvroLogicalTypes != null) { load.UseAvroLogicalTypes = UseAvroLogicalTypes; } }