Skip to content

Commit

Permalink
regen
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingzhe Huang (from Dev Box) committed Mar 13, 2024
1 parent 41be80d commit 893f7f5
Show file tree
Hide file tree
Showing 143 changed files with 3,791 additions and 3,896 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"$id": "2",
"Kind": "Enum",
"Name": "ClientType",
"EnumValueType": "String",
"EnumValueType": "string",
"AllowedValues": [
{
"$id": "3",
Expand All @@ -32,10 +32,9 @@
}
],
"Namespace": "Client.Structure.Service",
"Description": "",
"IsExtensible": true,
"IsNullable": false,
"Usage": "None"
"Usage": "Input"
}
],
"Models": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"$id": "2",
"Kind": "Enum",
"Name": "ClientType",
"EnumValueType": "String",
"EnumValueType": "string",
"AllowedValues": [
{
"$id": "3",
Expand All @@ -32,10 +32,9 @@
}
],
"Namespace": "Client.Structure.Service",
"Description": "",
"IsExtensible": true,
"IsNullable": false,
"Usage": "None"
"Usage": "Input"
}
],
"Models": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void IJsonModel<Base64urlArrayBytesProperty>.Write(Utf8JsonWriter writer, ModelR
writer.WriteNullValue();
continue;
}
writer.WriteBase64StringValue(item.ToArray(), "U");
writer.WriteBase64StringValue(item.ToArray(), "D");
}
writer.WriteEndArray();
if (options.Format != "W" && _serializedAdditionalRawData != null)
Expand Down Expand Up @@ -94,7 +94,7 @@ internal static Base64urlArrayBytesProperty DeserializeBase64urlArrayBytesProper
}
else
{
array.Add(BinaryData.FromBytes(item.GetBytesFromBase64("U")));
array.Add(BinaryData.FromBytes(item.GetBytesFromBase64("D")));
}
}
value = array;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void IJsonModel<Base64urlBytesProperty>.Write(Utf8JsonWriter writer, ModelReader

writer.WriteStartObject();
writer.WritePropertyName("value"u8);
writer.WriteBase64StringValue(Value.ToArray(), "U");
writer.WriteBase64StringValue(Value.ToArray(), "D");
if (options.Format != "W" && _serializedAdditionalRawData != null)
{
foreach (var item in _serializedAdditionalRawData)
Expand Down Expand Up @@ -75,7 +75,7 @@ internal static Base64urlBytesProperty DeserializeBase64urlBytesProperty(JsonEle
{
if (property.NameEquals("value"u8))
{
value = BinaryData.FromBytes(property.Value.GetBytesFromBase64("U"));
value = BinaryData.FromBytes(property.Value.GetBytesFromBase64("D"));
continue;
}
if (options.Format != "W")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"IsNullable": false
},
"IsRequired": true,
"IsReadOnly": false
"IsReadOnly": false,
"IsDiscriminator": false
}
]
},
Expand All @@ -49,7 +50,8 @@
"IsNullable": false
},
"IsRequired": true,
"IsReadOnly": false
"IsReadOnly": false,
"IsDiscriminator": false
}
]
},
Expand All @@ -69,11 +71,12 @@
"Type": {
"$id": "10",
"Kind": "Primitive",
"Name": "BytesBase64Url",
"Name": "Bytes",
"IsNullable": false
},
"IsRequired": true,
"IsReadOnly": false
"IsReadOnly": false,
"IsDiscriminator": false
}
]
},
Expand All @@ -97,13 +100,14 @@
"ElementType": {
"$id": "14",
"Kind": "Primitive",
"Name": "BytesBase64Url",
"Name": "Bytes",
"IsNullable": false
},
"IsNullable": false
},
"IsRequired": true,
"IsReadOnly": false
"IsReadOnly": false,
"IsDiscriminator": false
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ This sample shows how to call DefaultAsync.
<code><![CDATA[
Property client = new DatetimeClient().GetPropertyClient();
DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"));
DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
Response<DefaultDatetimeProperty> response = await client.DefaultAsync(body);
]]></code>
This sample shows how to call DefaultAsync with all parameters.
<code><![CDATA[
Property client = new DatetimeClient().GetPropertyClient();
DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"));
DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
Response<DefaultDatetimeProperty> response = await client.DefaultAsync(body);
]]></code></example>
</member>
Expand All @@ -24,14 +24,14 @@ This sample shows how to call Default.
<code><![CDATA[
Property client = new DatetimeClient().GetPropertyClient();
DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"));
DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
Response<DefaultDatetimeProperty> response = client.Default(body);
]]></code>
This sample shows how to call Default with all parameters.
<code><![CDATA[
Property client = new DatetimeClient().GetPropertyClient();
DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"));
DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
Response<DefaultDatetimeProperty> response = client.Default(body);
]]></code></example>
</member>
Expand All @@ -43,7 +43,7 @@ Property client = new DatetimeClient().GetPropertyClient();
using RequestContent content = RequestContent.Create(new
{
value = "2022-05-10T14:57:31.2311892-04:00",
value = "2022-05-10T18:57:31.2311892Z",
});
Response response = await client.DefaultAsync(content);
Expand All @@ -56,7 +56,7 @@ Property client = new DatetimeClient().GetPropertyClient();
using RequestContent content = RequestContent.Create(new
{
value = "2022-05-10T14:57:31.2311892-04:00",
value = "2022-05-10T18:57:31.2311892Z",
});
Response response = await client.DefaultAsync(content);
Expand All @@ -72,7 +72,7 @@ Property client = new DatetimeClient().GetPropertyClient();
using RequestContent content = RequestContent.Create(new
{
value = "2022-05-10T14:57:31.2311892-04:00",
value = "2022-05-10T18:57:31.2311892Z",
});
Response response = client.Default(content);
Expand All @@ -85,7 +85,7 @@ Property client = new DatetimeClient().GetPropertyClient();
using RequestContent content = RequestContent.Create(new
{
value = "2022-05-10T14:57:31.2311892-04:00",
value = "2022-05-10T18:57:31.2311892Z",
});
Response response = client.Default(content);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
"Type": {
"$id": "4",
"Kind": "Primitive",
"Name": "DateTime",
"Name": "DateTimeRFC3339",
"IsNullable": false
},
"IsRequired": true,
"IsReadOnly": false
"IsReadOnly": false,
"IsDiscriminator": false
}
]
},
Expand All @@ -49,7 +50,8 @@
"IsNullable": false
},
"IsRequired": true,
"IsReadOnly": false
"IsReadOnly": false,
"IsDiscriminator": false
}
]
},
Expand All @@ -73,7 +75,8 @@
"IsNullable": false
},
"IsRequired": true,
"IsReadOnly": false
"IsReadOnly": false,
"IsDiscriminator": false
}
]
},
Expand All @@ -97,7 +100,8 @@
"IsNullable": false
},
"IsRequired": true,
"IsReadOnly": false
"IsReadOnly": false,
"IsDiscriminator": false
}
]
},
Expand Down Expand Up @@ -127,7 +131,8 @@
"IsNullable": false
},
"IsRequired": true,
"IsReadOnly": false
"IsReadOnly": false,
"IsDiscriminator": false
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void Example_Property_Default_ShortVersion()

using RequestContent content = RequestContent.Create(new
{
value = "2022-05-10T14:57:31.2311892-04:00",
value = "2022-05-10T18:57:31.2311892Z",
});
Response response = client.Default(content);

Expand All @@ -43,7 +43,7 @@ public async Task Example_Property_Default_ShortVersion_Async()

using RequestContent content = RequestContent.Create(new
{
value = "2022-05-10T14:57:31.2311892-04:00",
value = "2022-05-10T18:57:31.2311892Z",
});
Response response = await client.DefaultAsync(content);

Expand All @@ -57,7 +57,7 @@ public void Example_Property_Default_ShortVersion_Convenience()
{
Property client = new DatetimeClient().GetPropertyClient();

DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"));
DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
Response<DefaultDatetimeProperty> response = client.Default(body);
}

Expand All @@ -67,7 +67,7 @@ public async Task Example_Property_Default_ShortVersion_Convenience_Async()
{
Property client = new DatetimeClient().GetPropertyClient();

DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"));
DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
Response<DefaultDatetimeProperty> response = await client.DefaultAsync(body);
}

Expand All @@ -79,7 +79,7 @@ public void Example_Property_Default_AllParameters()

using RequestContent content = RequestContent.Create(new
{
value = "2022-05-10T14:57:31.2311892-04:00",
value = "2022-05-10T18:57:31.2311892Z",
});
Response response = client.Default(content);

Expand All @@ -95,7 +95,7 @@ public async Task Example_Property_Default_AllParameters_Async()

using RequestContent content = RequestContent.Create(new
{
value = "2022-05-10T14:57:31.2311892-04:00",
value = "2022-05-10T18:57:31.2311892Z",
});
Response response = await client.DefaultAsync(content);

Expand All @@ -109,7 +109,7 @@ public void Example_Property_Default_AllParameters_Convenience()
{
Property client = new DatetimeClient().GetPropertyClient();

DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"));
DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
Response<DefaultDatetimeProperty> response = client.Default(body);
}

Expand All @@ -119,7 +119,7 @@ public async Task Example_Property_Default_AllParameters_Convenience_Async()
{
Property client = new DatetimeClient().GetPropertyClient();

DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"));
DefaultDatetimeProperty body = new DefaultDatetimeProperty(DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"));
Response<DefaultDatetimeProperty> response = await client.DefaultAsync(body);
}

Expand Down
Loading

0 comments on commit 893f7f5

Please sign in to comment.