Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add x-ms-format mappings for DataFactoryExpression<T> #2852

Merged
merged 44 commits into from
Dec 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
9b8cc28
Add x-ms-format mappings for DataFactoryExpression<T>
JoshLove-msft Nov 11, 2022
8e1b904
Update version
JoshLove-msft Nov 11, 2022
14b65de
regenerate
JoshLove-msft Nov 11, 2022
db8af56
Add test cases and fix issues
JoshLove-msft Nov 15, 2022
458e971
Add test
JoshLove-msft Nov 15, 2022
176601f
Add dataplane test case
JoshLove-msft Nov 16, 2022
9bae609
Add additional DFE types
JoshLove-msft Nov 21, 2022
553c34b
Merge branch 'feature/v3' of https://github.com/Azure/autorest.csharp…
JoshLove-msft Nov 21, 2022
35ba625
Update DFE version
JoshLove-msft Nov 21, 2022
59edd02
Fix usage for x-ms-format-element-type
JoshLove-msft Nov 22, 2022
ad07f76
Add converter for dataplane
JoshLove-msft Nov 22, 2022
0c1031b
PR fb
JoshLove-msft Nov 22, 2022
fd95830
Fix conversion and add second dfe-listOfT property to model
JoshLove-msft Nov 22, 2022
f922849
regenerate with Etag fix
JoshLove-msft Nov 22, 2022
898c8e0
Update usages in transform
JoshLove-msft Nov 22, 2022
42a3d80
comment
JoshLove-msft Nov 22, 2022
8161c7c
Fix JsonWriter
JoshLove-msft Nov 22, 2022
15cb851
Fix CreateType call
JoshLove-msft Nov 22, 2022
eeac756
fix writer again
JoshLove-msft Nov 22, 2022
13d77aa
Update tests
JoshLove-msft Nov 23, 2022
56f4254
Fix test
JoshLove-msft Nov 23, 2022
4050e15
regen tests
JoshLove-msft Nov 23, 2022
601e7a1
Add Uri, TimeSpan, and DateTimeOffset
JoshLove-msft Nov 23, 2022
3de8bd4
Add enclosing serialization formats and recursively traverse property…
JoshLove-msft Nov 23, 2022
4102e3f
fix
JoshLove-msft Nov 23, 2022
06fc453
Reorder
JoshLove-msft Nov 23, 2022
1999020
Move transformer to common
JoshLove-msft Nov 24, 2022
4edbec9
Merge branch 'feature/v3' into x-ms-dfe
JoshLove-msft Nov 28, 2022
b0a290a
regen
JoshLove-msft Nov 29, 2022
78c4a86
Merge branch 'x-ms-dfe' of https://github.com/JoshLove-msft/autorest.…
JoshLove-msft Nov 29, 2022
2b8dd25
Update additional GetRawText cases
JoshLove-msft Nov 30, 2022
4795b6b
Merge branch 'feature/v3' into x-ms-dfe
JoshLove-msft Nov 30, 2022
4d1ef35
Updates related to x-ms-format-element-type
JoshLove-msft Nov 30, 2022
e3401de
Merge branch 'x-ms-dfe' of https://github.com/JoshLove-msft/autorest.…
JoshLove-msft Nov 30, 2022
4b57814
use constant
JoshLove-msft Nov 30, 2022
dd77a87
PR fb
JoshLove-msft Dec 1, 2022
5fbf031
regen
JoshLove-msft Dec 1, 2022
2104001
Merge branch 'feature/v3' of https://github.com/Azure/autorest.csharp…
JoshLove-msft Dec 1, 2022
3d971a9
Merge branch 'feature/v3' into x-ms-dfe
JoshLove-msft Dec 2, 2022
b2ed7f5
Merge branch 'feature/v3' into x-ms-dfe
JoshLove-msft Dec 2, 2022
86ace05
regen
JoshLove-msft Dec 2, 2022
79f8983
Merge branch 'x-ms-dfe' of https://github.com/JoshLove-msft/autorest.…
JoshLove-msft Dec 2, 2022
be21f10
fix tests
JoshLove-msft Dec 2, 2022
4e38bde
Merge branch 'feature/v3' into x-ms-dfe
JoshLove-msft Dec 5, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion samples/AppConfiguration/AppConfiguration.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ internal static BlobContainerData DeserializeBlobContainerData(JsonElement eleme
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ internal static BlobInventoryPolicyData DeserializeBlobInventoryPolicyData(JsonE
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ internal static BlobServiceData DeserializeBlobServiceData(JsonElement element)
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ internal static DeletedAccountData DeserializeDeletedAccountData(JsonElement ele
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ internal static EncryptionScopeData DeserializeEncryptionScopeData(JsonElement e
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ internal static FileServiceData DeserializeFileServiceData(JsonElement element)
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ internal static FileShareData DeserializeFileShareData(JsonElement element)
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ internal static ImmutabilityPolicyData DeserializeImmutabilityPolicyData(JsonEle
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ internal static ManagementPolicyData DeserializeManagementPolicyData(JsonElement
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ internal static ObjectReplicationPolicyData DeserializeObjectReplicationPolicyDa
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ internal static StorageAccountData DeserializeStorageAccountData(JsonElement ele
continue;
}
var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } };
identity = JsonSerializer.Deserialize<ManagedServiceIdentity>(property.Value.ToString(), serializeOptions);
identity = JsonSerializer.Deserialize<ManagedServiceIdentity>(property.Value.GetRawText(), serializeOptions);
continue;
}
if (property.NameEquals("extendedLocation"))
Expand All @@ -200,7 +200,7 @@ internal static StorageAccountData DeserializeStorageAccountData(JsonElement ele
property.ThrowNonNullablePropertyIsNull();
continue;
}
extendedLocation = JsonSerializer.Deserialize<ExtendedLocation>(property.Value.ToString());
extendedLocation = JsonSerializer.Deserialize<ExtendedLocation>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("tags"))
Expand Down Expand Up @@ -245,7 +245,7 @@ internal static StorageAccountData DeserializeStorageAccountData(JsonElement ele
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ internal static StoragePrivateEndpointConnectionData DeserializeStoragePrivateEn
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand All @@ -86,7 +86,7 @@ internal static StoragePrivateEndpointConnectionData DeserializeStoragePrivateEn
property0.ThrowNonNullablePropertyIsNull();
continue;
}
privateEndpoint = JsonSerializer.Deserialize<SubResource>(property0.Value.ToString());
privateEndpoint = JsonSerializer.Deserialize<SubResource>(property0.Value.GetRawText());
continue;
}
if (property0.NameEquals("privateLinkServiceConnectionState"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ internal static StoragePrivateLinkResource DeserializeStoragePrivateLinkResource
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ internal static AvailabilitySetData DeserializeAvailabilitySetData(JsonElement e
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand Down Expand Up @@ -178,7 +178,7 @@ internal static AvailabilitySetData DeserializeAvailabilitySetData(JsonElement e
List<WritableSubResource> array = new List<WritableSubResource>();
foreach (var item in property0.Value.EnumerateArray())
{
array.Add(JsonSerializer.Deserialize<WritableSubResource>(item.ToString()));
array.Add(JsonSerializer.Deserialize<WritableSubResource>(item.GetRawText()));
}
virtualMachines = array;
continue;
Expand All @@ -190,7 +190,7 @@ internal static AvailabilitySetData DeserializeAvailabilitySetData(JsonElement e
property0.ThrowNonNullablePropertyIsNull();
continue;
}
proximityPlacementGroup = JsonSerializer.Deserialize<WritableSubResource>(property0.Value.ToString());
proximityPlacementGroup = JsonSerializer.Deserialize<WritableSubResource>(property0.Value.GetRawText());
continue;
}
if (property0.NameEquals("statuses"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ internal static DedicatedHostData DeserializeDedicatedHostData(JsonElement eleme
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand Down Expand Up @@ -169,7 +169,7 @@ internal static DedicatedHostData DeserializeDedicatedHostData(JsonElement eleme
List<Resources.Models.SubResource> array = new List<Resources.Models.SubResource>();
foreach (var item in property0.Value.EnumerateArray())
{
array.Add(JsonSerializer.Deserialize<Resources.Models.SubResource>(item.ToString()));
array.Add(JsonSerializer.Deserialize<Resources.Models.SubResource>(item.GetRawText()));
}
virtualMachines = array;
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ internal static DedicatedHostGroupData DeserializeDedicatedHostGroupData(JsonEle
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand Down Expand Up @@ -200,7 +200,7 @@ internal static DedicatedHostGroupData DeserializeDedicatedHostGroupData(JsonEle
List<Resources.Models.SubResource> array = new List<Resources.Models.SubResource>();
foreach (var item in property0.Value.EnumerateArray())
{
array.Add(JsonSerializer.Deserialize<Resources.Models.SubResource>(item.ToString()));
array.Add(JsonSerializer.Deserialize<Resources.Models.SubResource>(item.GetRawText()));
}
hosts = array;
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ internal static ImageData DeserializeImageData(JsonElement element)
property.ThrowNonNullablePropertyIsNull();
continue;
}
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.ToString());
systemData = JsonSerializer.Deserialize<SystemData>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("properties"))
Expand All @@ -128,7 +128,7 @@ internal static ImageData DeserializeImageData(JsonElement element)
property0.ThrowNonNullablePropertyIsNull();
continue;
}
sourceVirtualMachine = JsonSerializer.Deserialize<WritableSubResource>(property0.Value.ToString());
sourceVirtualMachine = JsonSerializer.Deserialize<WritableSubResource>(property0.Value.GetRawText());
continue;
}
if (property0.NameEquals("storageProfile"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ internal static ImageDataDisk DeserializeImageDataDisk(JsonElement element)
property.ThrowNonNullablePropertyIsNull();
continue;
}
snapshot = JsonSerializer.Deserialize<WritableSubResource>(property.Value.ToString());
snapshot = JsonSerializer.Deserialize<WritableSubResource>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("managedDisk"))
Expand All @@ -91,7 +91,7 @@ internal static ImageDataDisk DeserializeImageDataDisk(JsonElement element)
property.ThrowNonNullablePropertyIsNull();
continue;
}
managedDisk = JsonSerializer.Deserialize<WritableSubResource>(property.Value.ToString());
managedDisk = JsonSerializer.Deserialize<WritableSubResource>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("blobUri"))
Expand Down Expand Up @@ -141,7 +141,7 @@ internal static ImageDataDisk DeserializeImageDataDisk(JsonElement element)
property.ThrowNonNullablePropertyIsNull();
continue;
}
diskEncryptionSet = JsonSerializer.Deserialize<WritableSubResource>(property.Value.ToString());
diskEncryptionSet = JsonSerializer.Deserialize<WritableSubResource>(property.Value.GetRawText());
continue;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ internal static ImageDisk DeserializeImageDisk(JsonElement element)
property.ThrowNonNullablePropertyIsNull();
continue;
}
snapshot = JsonSerializer.Deserialize<WritableSubResource>(property.Value.ToString());
snapshot = JsonSerializer.Deserialize<WritableSubResource>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("managedDisk"))
Expand All @@ -83,7 +83,7 @@ internal static ImageDisk DeserializeImageDisk(JsonElement element)
property.ThrowNonNullablePropertyIsNull();
continue;
}
managedDisk = JsonSerializer.Deserialize<WritableSubResource>(property.Value.ToString());
managedDisk = JsonSerializer.Deserialize<WritableSubResource>(property.Value.GetRawText());
continue;
}
if (property.NameEquals("blobUri"))
Expand Down Expand Up @@ -133,7 +133,7 @@ internal static ImageDisk DeserializeImageDisk(JsonElement element)
property.ThrowNonNullablePropertyIsNull();
continue;
}
diskEncryptionSet = JsonSerializer.Deserialize<WritableSubResource>(property.Value.ToString());
diskEncryptionSet = JsonSerializer.Deserialize<WritableSubResource>(property.Value.GetRawText());
continue;
}
}
Expand Down
Loading