@@ -22,20 +22,20 @@ public partial class SourceInput : AbstractSchema
22
22
{
23
23
/// <summary>
24
24
/// Initializes a new instance of the SourceInput class
25
- /// with a SourceDocker
25
+ /// with a SourceGA4BigQueryExport
26
26
/// </summary>
27
- /// <param name="actualInstance">An instance of SourceDocker .</param>
28
- public SourceInput ( SourceDocker actualInstance )
27
+ /// <param name="actualInstance">An instance of SourceGA4BigQueryExport .</param>
28
+ public SourceInput ( SourceGA4BigQueryExport actualInstance )
29
29
{
30
30
ActualInstance = actualInstance ?? throw new ArgumentException ( "Invalid instance found. Must not be null." ) ;
31
31
}
32
32
33
33
/// <summary>
34
34
/// Initializes a new instance of the SourceInput class
35
- /// with a SourceGA4BigQueryExport
35
+ /// with a SourceDocker
36
36
/// </summary>
37
- /// <param name="actualInstance">An instance of SourceGA4BigQueryExport .</param>
38
- public SourceInput ( SourceGA4BigQueryExport actualInstance )
37
+ /// <param name="actualInstance">An instance of SourceDocker .</param>
38
+ public SourceInput ( SourceDocker actualInstance )
39
39
{
40
40
ActualInstance = actualInstance ?? throw new ArgumentException ( "Invalid instance found. Must not be null." ) ;
41
41
}
@@ -107,23 +107,23 @@ public SourceInput(SourceCSV actualInstance)
107
107
public sealed override object ActualInstance { get ; set ; }
108
108
109
109
/// <summary>
110
- /// Get the actual instance of `SourceDocker `. If the actual instance is not `SourceDocker `,
110
+ /// Get the actual instance of `SourceGA4BigQueryExport `. If the actual instance is not `SourceGA4BigQueryExport `,
111
111
/// the InvalidClassException will be thrown
112
112
/// </summary>
113
- /// <returns>An instance of SourceDocker </returns>
114
- public SourceDocker AsSourceDocker ( )
113
+ /// <returns>An instance of SourceGA4BigQueryExport </returns>
114
+ public SourceGA4BigQueryExport AsSourceGA4BigQueryExport ( )
115
115
{
116
- return ( SourceDocker ) ActualInstance ;
116
+ return ( SourceGA4BigQueryExport ) ActualInstance ;
117
117
}
118
118
119
119
/// <summary>
120
- /// Get the actual instance of `SourceGA4BigQueryExport `. If the actual instance is not `SourceGA4BigQueryExport `,
120
+ /// Get the actual instance of `SourceDocker `. If the actual instance is not `SourceDocker `,
121
121
/// the InvalidClassException will be thrown
122
122
/// </summary>
123
- /// <returns>An instance of SourceGA4BigQueryExport </returns>
124
- public SourceGA4BigQueryExport AsSourceGA4BigQueryExport ( )
123
+ /// <returns>An instance of SourceDocker </returns>
124
+ public SourceDocker AsSourceDocker ( )
125
125
{
126
- return ( SourceGA4BigQueryExport ) ActualInstance ;
126
+ return ( SourceDocker ) ActualInstance ;
127
127
}
128
128
129
129
/// <summary>
@@ -188,21 +188,21 @@ public SourceCSV AsSourceCSV()
188
188
189
189
190
190
/// <summary>
191
- /// Check if the actual instance is of `SourceDocker ` type.
191
+ /// Check if the actual instance is of `SourceGA4BigQueryExport ` type.
192
192
/// </summary>
193
193
/// <returns>Whether or not the instance is the type</returns>
194
- public bool IsSourceDocker ( )
194
+ public bool IsSourceGA4BigQueryExport ( )
195
195
{
196
- return ActualInstance . GetType ( ) == typeof ( SourceDocker ) ;
196
+ return ActualInstance . GetType ( ) == typeof ( SourceGA4BigQueryExport ) ;
197
197
}
198
198
199
199
/// <summary>
200
- /// Check if the actual instance is of `SourceGA4BigQueryExport ` type.
200
+ /// Check if the actual instance is of `SourceDocker ` type.
201
201
/// </summary>
202
202
/// <returns>Whether or not the instance is the type</returns>
203
- public bool IsSourceGA4BigQueryExport ( )
203
+ public bool IsSourceDocker ( )
204
204
{
205
- return ActualInstance . GetType ( ) == typeof ( SourceGA4BigQueryExport ) ;
205
+ return ActualInstance . GetType ( ) == typeof ( SourceDocker ) ;
206
206
}
207
207
208
208
/// <summary>
@@ -343,28 +343,28 @@ public override SourceInput Read(ref Utf8JsonReader reader, Type typeToConvert,
343
343
{
344
344
var jsonDocument = JsonDocument . ParseValue ( ref reader ) ;
345
345
var root = jsonDocument . RootElement ;
346
- if ( root . ValueKind == JsonValueKind . Object && root . TryGetProperty ( "registry " , out _ ) && root . TryGetProperty ( "image " , out _ ) && root . TryGetProperty ( "imageType" , out _ ) && root . TryGetProperty ( "configuration ", out _ ) )
346
+ if ( root . ValueKind == JsonValueKind . Object && root . TryGetProperty ( "projectID " , out _ ) && root . TryGetProperty ( "datasetID " , out _ ) && root . TryGetProperty ( "tablePrefix " , out _ ) )
347
347
{
348
348
try
349
349
{
350
- return new SourceInput ( jsonDocument . Deserialize < SourceDocker > ( JsonConfig . Options ) ) ;
350
+ return new SourceInput ( jsonDocument . Deserialize < SourceGA4BigQueryExport > ( JsonConfig . Options ) ) ;
351
351
}
352
352
catch ( Exception exception )
353
353
{
354
354
// deserialization failed, try the next one
355
- System . Diagnostics . Debug . WriteLine ( $ "Failed to deserialize into SourceDocker : { exception } ") ;
355
+ System . Diagnostics . Debug . WriteLine ( $ "Failed to deserialize into SourceGA4BigQueryExport : { exception } ") ;
356
356
}
357
357
}
358
- if ( root . ValueKind == JsonValueKind . Object && root . TryGetProperty ( "projectID " , out _ ) && root . TryGetProperty ( "datasetID" , out _ ) && root . TryGetProperty ( "tablePrefix ", out _ ) )
358
+ if ( root . ValueKind == JsonValueKind . Object && root . TryGetProperty ( "image " , out _ ) && root . TryGetProperty ( "configuration " , out _ ) )
359
359
{
360
360
try
361
361
{
362
- return new SourceInput ( jsonDocument . Deserialize < SourceGA4BigQueryExport > ( JsonConfig . Options ) ) ;
362
+ return new SourceInput ( jsonDocument . Deserialize < SourceDocker > ( JsonConfig . Options ) ) ;
363
363
}
364
364
catch ( Exception exception )
365
365
{
366
366
// deserialization failed, try the next one
367
- System . Diagnostics . Debug . WriteLine ( $ "Failed to deserialize into SourceGA4BigQueryExport : { exception } ") ;
367
+ System . Diagnostics . Debug . WriteLine ( $ "Failed to deserialize into SourceDocker : { exception } ") ;
368
368
}
369
369
}
370
370
if ( root . ValueKind == JsonValueKind . Object && root . TryGetProperty ( "projectKey" , out _ ) )
0 commit comments