Merge pull request #605 from MiYanni/null-array-dictionary-item-handling
Null array/dictionary item handling
This commit is contained in:
Коммит
5fcb4dec3a
|
@ -28,7 +28,14 @@ namespace AppConfiguration.Models
|
|||
List<Key> array = new List<Key>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(Key.DeserializeKey(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(Key.DeserializeKey(item));
|
||||
}
|
||||
}
|
||||
items = array;
|
||||
continue;
|
||||
|
|
|
@ -132,7 +132,14 @@ namespace AppConfiguration.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
}
|
||||
}
|
||||
tags = dictionary;
|
||||
continue;
|
||||
|
|
|
@ -28,7 +28,14 @@ namespace AppConfiguration.Models
|
|||
List<KeyValue> array = new List<KeyValue>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(KeyValue.DeserializeKeyValue(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(KeyValue.DeserializeKeyValue(item));
|
||||
}
|
||||
}
|
||||
items = array;
|
||||
continue;
|
||||
|
|
|
@ -28,7 +28,14 @@ namespace AppConfiguration.Models
|
|||
List<Label> array = new List<Label>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(Label.DeserializeLabel(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(Label.DeserializeLabel(item));
|
||||
}
|
||||
}
|
||||
items = array;
|
||||
continue;
|
||||
|
|
|
@ -92,7 +92,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = KeyListResult.DeserializeKeyListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyListResult.DeserializeKeyListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -126,7 +133,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = KeyListResult.DeserializeKeyListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyListResult.DeserializeKeyListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -286,7 +300,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValueListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -322,7 +343,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValueListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -501,7 +529,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValue value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -543,7 +578,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValue value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -621,7 +663,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValue value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -662,7 +711,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValue value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -727,7 +783,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValue value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
case 204:
|
||||
|
@ -768,7 +831,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValue value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
case 204:
|
||||
|
@ -950,7 +1020,14 @@ namespace AppConfiguration
|
|||
{
|
||||
LabelListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = LabelListResult.DeserializeLabelListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = LabelListResult.DeserializeLabelListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -985,7 +1062,14 @@ namespace AppConfiguration
|
|||
{
|
||||
LabelListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = LabelListResult.DeserializeLabelListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = LabelListResult.DeserializeLabelListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1148,7 +1232,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValue value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1188,7 +1279,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValue value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1258,7 +1356,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValue value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1298,7 +1403,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValue value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValue.DeserializeKeyValue(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1371,7 +1483,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValueListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1407,7 +1526,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValueListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1565,7 +1691,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = KeyListResult.DeserializeKeyListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyListResult.DeserializeKeyListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1605,7 +1738,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = KeyListResult.DeserializeKeyListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyListResult.DeserializeKeyListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1666,7 +1806,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValueListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1708,7 +1855,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValueListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1768,7 +1922,14 @@ namespace AppConfiguration
|
|||
{
|
||||
LabelListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = LabelListResult.DeserializeLabelListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = LabelListResult.DeserializeLabelListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1809,7 +1970,14 @@ namespace AppConfiguration
|
|||
{
|
||||
LabelListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = LabelListResult.DeserializeLabelListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = LabelListResult.DeserializeLabelListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1870,7 +2038,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValueListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1912,7 +2087,14 @@ namespace AppConfiguration
|
|||
{
|
||||
KeyValueListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = KeyValueListResult.DeserializeKeyValueListResult(document.RootElement);
|
||||
}
|
||||
return ResponseWithHeaders.FromValue(value, headers, message.Response);
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -32,7 +32,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<ReadResult> array = new List<ReadResult>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ReadResult.DeserializeReadResult(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ReadResult.DeserializeReadResult(item));
|
||||
}
|
||||
}
|
||||
readResults = array;
|
||||
continue;
|
||||
|
@ -46,7 +53,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<PageResult> array = new List<PageResult>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(PageResult.DeserializePageResult(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(PageResult.DeserializePageResult(item));
|
||||
}
|
||||
}
|
||||
pageResults = array;
|
||||
continue;
|
||||
|
@ -60,7 +74,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<DocumentResult> array = new List<DocumentResult>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(DocumentResult.DeserializeDocumentResult(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(DocumentResult.DeserializeDocumentResult(item));
|
||||
}
|
||||
}
|
||||
documentResults = array;
|
||||
continue;
|
||||
|
@ -74,7 +95,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<ErrorInformation> array = new List<ErrorInformation>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ErrorInformation.DeserializeErrorInformation(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ErrorInformation.DeserializeErrorInformation(item));
|
||||
}
|
||||
}
|
||||
errors = array;
|
||||
continue;
|
||||
|
|
|
@ -35,7 +35,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<DataTableCell> array = new List<DataTableCell>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(DataTableCell.DeserializeDataTableCell(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(DataTableCell.DeserializeDataTableCell(item));
|
||||
}
|
||||
}
|
||||
cells = array;
|
||||
continue;
|
||||
|
|
|
@ -84,7 +84,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
elements = array;
|
||||
continue;
|
||||
|
|
|
@ -40,7 +40,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
Dictionary<string, FieldValue> dictionary = new Dictionary<string, FieldValue>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property0.Name, FieldValue.DeserializeFieldValue(property0.Value));
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property0.Name, FieldValue.DeserializeFieldValue(property0.Value));
|
||||
}
|
||||
}
|
||||
fields = dictionary;
|
||||
continue;
|
||||
|
|
|
@ -99,7 +99,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<FieldValue> array = new List<FieldValue>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(DeserializeFieldValue(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(DeserializeFieldValue(item));
|
||||
}
|
||||
}
|
||||
valueArray = array;
|
||||
continue;
|
||||
|
@ -113,7 +120,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
Dictionary<string, FieldValue> dictionary = new Dictionary<string, FieldValue>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property0.Name, DeserializeFieldValue(property0.Value));
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property0.Name, DeserializeFieldValue(property0.Value));
|
||||
}
|
||||
}
|
||||
valueObject = dictionary;
|
||||
continue;
|
||||
|
@ -159,7 +173,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
elements = array;
|
||||
continue;
|
||||
|
|
|
@ -48,7 +48,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
elements = array;
|
||||
continue;
|
||||
|
|
|
@ -23,12 +23,26 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
Dictionary<string, IList<string>> dictionary = new Dictionary<string, IList<string>>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
List<string> array = new List<string>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
List<string> array = new List<string>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
dictionary.Add(property0.Name, array);
|
||||
}
|
||||
dictionary.Add(property0.Name, array);
|
||||
}
|
||||
clusters = dictionary;
|
||||
continue;
|
||||
|
|
|
@ -38,7 +38,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<ModelInfo> array = new List<ModelInfo>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ModelInfo.DeserializeModelInfo(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ModelInfo.DeserializeModelInfo(item));
|
||||
}
|
||||
}
|
||||
modelList = array;
|
||||
continue;
|
||||
|
|
|
@ -44,7 +44,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<KeyValuePair> array = new List<KeyValuePair>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(KeyValuePair.DeserializeKeyValuePair(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(KeyValuePair.DeserializeKeyValuePair(item));
|
||||
}
|
||||
}
|
||||
keyValuePairs = array;
|
||||
continue;
|
||||
|
@ -58,7 +65,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<DataTable> array = new List<DataTable>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(DataTable.DeserializeDataTable(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(DataTable.DeserializeDataTable(item));
|
||||
}
|
||||
}
|
||||
tables = array;
|
||||
continue;
|
||||
|
|
|
@ -67,7 +67,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<TextLine> array = new List<TextLine>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(TextLine.DeserializeTextLine(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(TextLine.DeserializeTextLine(item));
|
||||
}
|
||||
}
|
||||
lines = array;
|
||||
continue;
|
||||
|
|
|
@ -50,7 +50,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<TextWord> array = new List<TextWord>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(TextWord.DeserializeTextWord(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(TextWord.DeserializeTextWord(item));
|
||||
}
|
||||
}
|
||||
words = array;
|
||||
continue;
|
||||
|
|
|
@ -26,7 +26,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<TrainingDocumentInfo> array = new List<TrainingDocumentInfo>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(TrainingDocumentInfo.DeserializeTrainingDocumentInfo(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(TrainingDocumentInfo.DeserializeTrainingDocumentInfo(item));
|
||||
}
|
||||
}
|
||||
trainingDocuments = array;
|
||||
continue;
|
||||
|
@ -40,7 +47,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<FormFieldsReport> array = new List<FormFieldsReport>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(FormFieldsReport.DeserializeFormFieldsReport(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(FormFieldsReport.DeserializeFormFieldsReport(item));
|
||||
}
|
||||
}
|
||||
fields = array;
|
||||
continue;
|
||||
|
@ -63,7 +77,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<ErrorInformation> array = new List<ErrorInformation>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ErrorInformation.DeserializeErrorInformation(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ErrorInformation.DeserializeErrorInformation(item));
|
||||
}
|
||||
}
|
||||
errors = array;
|
||||
continue;
|
||||
|
|
|
@ -36,7 +36,14 @@ namespace Azure.AI.FormRecognizer.Models
|
|||
List<ErrorInformation> array = new List<ErrorInformation>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ErrorInformation.DeserializeErrorInformation(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ErrorInformation.DeserializeErrorInformation(item));
|
||||
}
|
||||
}
|
||||
errors = array;
|
||||
continue;
|
||||
|
|
|
@ -151,7 +151,14 @@ namespace Azure.AI.FormRecognizer
|
|||
{
|
||||
Models.Models value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = Models.Models.DeserializeModels(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = Models.Models.DeserializeModels(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -182,7 +189,14 @@ namespace Azure.AI.FormRecognizer
|
|||
{
|
||||
Models.Models value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = Models.Models.DeserializeModels(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = Models.Models.DeserializeModels(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -232,7 +246,14 @@ namespace Azure.AI.FormRecognizer
|
|||
{
|
||||
Model value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = Model.DeserializeModel(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = Model.DeserializeModel(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -264,7 +285,14 @@ namespace Azure.AI.FormRecognizer
|
|||
{
|
||||
Model value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = Model.DeserializeModel(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = Model.DeserializeModel(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -553,7 +581,14 @@ namespace Azure.AI.FormRecognizer
|
|||
{
|
||||
AnalyzeOperationResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = AnalyzeOperationResult.DeserializeAnalyzeOperationResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = AnalyzeOperationResult.DeserializeAnalyzeOperationResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -585,7 +620,14 @@ namespace Azure.AI.FormRecognizer
|
|||
{
|
||||
AnalyzeOperationResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = AnalyzeOperationResult.DeserializeAnalyzeOperationResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = AnalyzeOperationResult.DeserializeAnalyzeOperationResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -797,7 +839,14 @@ namespace Azure.AI.FormRecognizer
|
|||
{
|
||||
AnalyzeOperationResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = AnalyzeOperationResult.DeserializeAnalyzeOperationResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = AnalyzeOperationResult.DeserializeAnalyzeOperationResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -828,7 +877,14 @@ namespace Azure.AI.FormRecognizer
|
|||
{
|
||||
AnalyzeOperationResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = AnalyzeOperationResult.DeserializeAnalyzeOperationResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = AnalyzeOperationResult.DeserializeAnalyzeOperationResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1028,7 +1084,14 @@ namespace Azure.AI.FormRecognizer
|
|||
{
|
||||
AnalyzeOperationResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = AnalyzeOperationResult.DeserializeAnalyzeOperationResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = AnalyzeOperationResult.DeserializeAnalyzeOperationResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1059,7 +1122,14 @@ namespace Azure.AI.FormRecognizer
|
|||
{
|
||||
AnalyzeOperationResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = AnalyzeOperationResult.DeserializeAnalyzeOperationResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = AnalyzeOperationResult.DeserializeAnalyzeOperationResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1107,7 +1177,14 @@ namespace Azure.AI.FormRecognizer
|
|||
{
|
||||
Models.Models value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = Models.Models.DeserializeModels(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = Models.Models.DeserializeModels(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1144,7 +1221,14 @@ namespace Azure.AI.FormRecognizer
|
|||
{
|
||||
Models.Models value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = Models.Models.DeserializeModels(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = Models.Models.DeserializeModels(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -127,7 +127,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<NetworkInterfaceIPConfiguration> array = new List<NetworkInterfaceIPConfiguration>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(NetworkInterfaceIPConfiguration.DeserializeNetworkInterfaceIPConfiguration(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(NetworkInterfaceIPConfiguration.DeserializeNetworkInterfaceIPConfiguration(item));
|
||||
}
|
||||
}
|
||||
backendIPConfigurations = array;
|
||||
continue;
|
||||
|
@ -141,7 +148,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<ApplicationGatewayBackendAddress> array = new List<ApplicationGatewayBackendAddress>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ApplicationGatewayBackendAddress.DeserializeApplicationGatewayBackendAddress(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ApplicationGatewayBackendAddress.DeserializeApplicationGatewayBackendAddress(item));
|
||||
}
|
||||
}
|
||||
backendAddresses = array;
|
||||
continue;
|
||||
|
|
|
@ -134,7 +134,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
}
|
||||
}
|
||||
tags = dictionary;
|
||||
continue;
|
||||
|
|
|
@ -144,7 +144,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<NetworkInterfaceIPConfiguration> array = new List<NetworkInterfaceIPConfiguration>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(NetworkInterfaceIPConfiguration.DeserializeNetworkInterfaceIPConfiguration(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(NetworkInterfaceIPConfiguration.DeserializeNetworkInterfaceIPConfiguration(item));
|
||||
}
|
||||
}
|
||||
backendIPConfigurations = array;
|
||||
continue;
|
||||
|
@ -158,7 +165,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<SubResource> array = new List<SubResource>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
}
|
||||
}
|
||||
loadBalancingRules = array;
|
||||
continue;
|
||||
|
@ -181,7 +195,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<SubResource> array = new List<SubResource>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
}
|
||||
}
|
||||
outboundRules = array;
|
||||
continue;
|
||||
|
|
|
@ -57,7 +57,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<CloudErrorBody> array = new List<CloudErrorBody>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(DeserializeCloudErrorBody(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(DeserializeCloudErrorBody(item));
|
||||
}
|
||||
}
|
||||
details = array;
|
||||
continue;
|
||||
|
|
|
@ -116,7 +116,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
actions = array;
|
||||
continue;
|
||||
|
|
|
@ -48,7 +48,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<EffectiveNetworkSecurityRule> array = new List<EffectiveNetworkSecurityRule>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(EffectiveNetworkSecurityRule.DeserializeEffectiveNetworkSecurityRule(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(EffectiveNetworkSecurityRule.DeserializeEffectiveNetworkSecurityRule(item));
|
||||
}
|
||||
}
|
||||
effectiveSecurityRules = array;
|
||||
continue;
|
||||
|
|
|
@ -28,7 +28,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<EffectiveNetworkSecurityGroup> array = new List<EffectiveNetworkSecurityGroup>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(EffectiveNetworkSecurityGroup.DeserializeEffectiveNetworkSecurityGroup(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(EffectiveNetworkSecurityGroup.DeserializeEffectiveNetworkSecurityGroup(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -77,7 +77,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
sourcePortRanges = array;
|
||||
continue;
|
||||
|
@ -91,7 +98,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
destinationPortRanges = array;
|
||||
continue;
|
||||
|
@ -123,7 +137,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
sourceAddressPrefixes = array;
|
||||
continue;
|
||||
|
@ -137,7 +158,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
destinationAddressPrefixes = array;
|
||||
continue;
|
||||
|
@ -151,7 +179,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
expandedSourceAddressPrefix = array;
|
||||
continue;
|
||||
|
@ -165,7 +200,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
expandedDestinationAddressPrefix = array;
|
||||
continue;
|
||||
|
|
|
@ -69,7 +69,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
addressPrefix = array;
|
||||
continue;
|
||||
|
@ -83,7 +90,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
nextHopIpAddress = array;
|
||||
continue;
|
||||
|
|
|
@ -28,7 +28,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<EffectiveRoute> array = new List<EffectiveRoute>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(EffectiveRoute.DeserializeEffectiveRoute(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(EffectiveRoute.DeserializeEffectiveRoute(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -183,7 +183,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
zones = array;
|
||||
continue;
|
||||
|
@ -210,7 +217,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<SubResource> array = new List<SubResource>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
}
|
||||
}
|
||||
inboundNatRules = array;
|
||||
continue;
|
||||
|
@ -224,7 +238,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<SubResource> array = new List<SubResource>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
}
|
||||
}
|
||||
inboundNatPools = array;
|
||||
continue;
|
||||
|
@ -238,7 +259,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<SubResource> array = new List<SubResource>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
}
|
||||
}
|
||||
outboundRules = array;
|
||||
continue;
|
||||
|
@ -252,7 +280,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<SubResource> array = new List<SubResource>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
}
|
||||
}
|
||||
loadBalancingRules = array;
|
||||
continue;
|
||||
|
|
|
@ -226,7 +226,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
}
|
||||
}
|
||||
tags = dictionary;
|
||||
continue;
|
||||
|
@ -244,7 +251,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<FrontendIPConfiguration> array = new List<FrontendIPConfiguration>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(FrontendIPConfiguration.DeserializeFrontendIPConfiguration(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(FrontendIPConfiguration.DeserializeFrontendIPConfiguration(item));
|
||||
}
|
||||
}
|
||||
frontendIPConfigurations = array;
|
||||
continue;
|
||||
|
@ -258,7 +272,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<BackendAddressPool> array = new List<BackendAddressPool>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(BackendAddressPool.DeserializeBackendAddressPool(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(BackendAddressPool.DeserializeBackendAddressPool(item));
|
||||
}
|
||||
}
|
||||
backendAddressPools = array;
|
||||
continue;
|
||||
|
@ -272,7 +293,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<LoadBalancingRule> array = new List<LoadBalancingRule>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(LoadBalancingRule.DeserializeLoadBalancingRule(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(LoadBalancingRule.DeserializeLoadBalancingRule(item));
|
||||
}
|
||||
}
|
||||
loadBalancingRules = array;
|
||||
continue;
|
||||
|
@ -286,7 +314,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<Probe> array = new List<Probe>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(Probe.DeserializeProbe(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(Probe.DeserializeProbe(item));
|
||||
}
|
||||
}
|
||||
probes = array;
|
||||
continue;
|
||||
|
@ -300,7 +335,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<InboundNatRule> array = new List<InboundNatRule>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(InboundNatRule.DeserializeInboundNatRule(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(InboundNatRule.DeserializeInboundNatRule(item));
|
||||
}
|
||||
}
|
||||
inboundNatRules = array;
|
||||
continue;
|
||||
|
@ -314,7 +356,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<InboundNatPool> array = new List<InboundNatPool>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(InboundNatPool.DeserializeInboundNatPool(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(InboundNatPool.DeserializeInboundNatPool(item));
|
||||
}
|
||||
}
|
||||
inboundNatPools = array;
|
||||
continue;
|
||||
|
@ -328,7 +377,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<OutboundRule> array = new List<OutboundRule>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(OutboundRule.DeserializeOutboundRule(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(OutboundRule.DeserializeOutboundRule(item));
|
||||
}
|
||||
}
|
||||
outboundRules = array;
|
||||
continue;
|
||||
|
|
|
@ -215,7 +215,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
}
|
||||
}
|
||||
tags = dictionary;
|
||||
continue;
|
||||
|
@ -260,7 +267,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<NetworkInterfaceIPConfiguration> array = new List<NetworkInterfaceIPConfiguration>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(NetworkInterfaceIPConfiguration.DeserializeNetworkInterfaceIPConfiguration(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(NetworkInterfaceIPConfiguration.DeserializeNetworkInterfaceIPConfiguration(item));
|
||||
}
|
||||
}
|
||||
ipConfigurations = array;
|
||||
continue;
|
||||
|
@ -274,7 +288,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<NetworkInterfaceTapConfiguration> array = new List<NetworkInterfaceTapConfiguration>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(NetworkInterfaceTapConfiguration.DeserializeNetworkInterfaceTapConfiguration(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(NetworkInterfaceTapConfiguration.DeserializeNetworkInterfaceTapConfiguration(item));
|
||||
}
|
||||
}
|
||||
tapConfigurations = array;
|
||||
continue;
|
||||
|
@ -333,7 +354,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
hostedWorkloads = array;
|
||||
continue;
|
||||
|
|
|
@ -72,7 +72,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
dnsServers = array;
|
||||
continue;
|
||||
|
@ -86,7 +93,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
appliedDnsServers = array;
|
||||
continue;
|
||||
|
|
|
@ -187,7 +187,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<VirtualNetworkTap> array = new List<VirtualNetworkTap>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(VirtualNetworkTap.DeserializeVirtualNetworkTap(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(VirtualNetworkTap.DeserializeVirtualNetworkTap(item));
|
||||
}
|
||||
}
|
||||
virtualNetworkTaps = array;
|
||||
continue;
|
||||
|
@ -201,7 +208,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<ApplicationGatewayBackendAddressPool> array = new List<ApplicationGatewayBackendAddressPool>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ApplicationGatewayBackendAddressPool.DeserializeApplicationGatewayBackendAddressPool(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ApplicationGatewayBackendAddressPool.DeserializeApplicationGatewayBackendAddressPool(item));
|
||||
}
|
||||
}
|
||||
applicationGatewayBackendAddressPools = array;
|
||||
continue;
|
||||
|
@ -215,7 +229,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<BackendAddressPool> array = new List<BackendAddressPool>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(BackendAddressPool.DeserializeBackendAddressPool(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(BackendAddressPool.DeserializeBackendAddressPool(item));
|
||||
}
|
||||
}
|
||||
loadBalancerBackendAddressPools = array;
|
||||
continue;
|
||||
|
@ -229,7 +250,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<InboundNatRule> array = new List<InboundNatRule>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(InboundNatRule.DeserializeInboundNatRule(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(InboundNatRule.DeserializeInboundNatRule(item));
|
||||
}
|
||||
}
|
||||
loadBalancerInboundNatRules = array;
|
||||
continue;
|
||||
|
@ -297,7 +325,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<ApplicationSecurityGroup> array = new List<ApplicationSecurityGroup>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ApplicationSecurityGroup.DeserializeApplicationSecurityGroup(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ApplicationSecurityGroup.DeserializeApplicationSecurityGroup(item));
|
||||
}
|
||||
}
|
||||
applicationSecurityGroups = array;
|
||||
continue;
|
||||
|
|
|
@ -28,7 +28,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<NetworkInterfaceIPConfiguration> array = new List<NetworkInterfaceIPConfiguration>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(NetworkInterfaceIPConfiguration.DeserializeNetworkInterfaceIPConfiguration(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(NetworkInterfaceIPConfiguration.DeserializeNetworkInterfaceIPConfiguration(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -73,7 +73,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
fqdns = array;
|
||||
continue;
|
||||
|
|
|
@ -28,7 +28,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<NetworkInterface> array = new List<NetworkInterface>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(NetworkInterface.DeserializeNetworkInterface(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(NetworkInterface.DeserializeNetworkInterface(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -28,7 +28,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<LoadBalancer> array = new List<LoadBalancer>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(LoadBalancer.DeserializeLoadBalancer(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(LoadBalancer.DeserializeLoadBalancer(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -28,7 +28,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<NetworkInterfaceTapConfiguration> array = new List<NetworkInterfaceTapConfiguration>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(NetworkInterfaceTapConfiguration.DeserializeNetworkInterfaceTapConfiguration(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(NetworkInterfaceTapConfiguration.DeserializeNetworkInterfaceTapConfiguration(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -178,7 +178,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
}
|
||||
}
|
||||
tags = dictionary;
|
||||
continue;
|
||||
|
@ -196,7 +203,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<SecurityRule> array = new List<SecurityRule>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(SecurityRule.DeserializeSecurityRule(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(SecurityRule.DeserializeSecurityRule(item));
|
||||
}
|
||||
}
|
||||
securityRules = array;
|
||||
continue;
|
||||
|
@ -210,7 +224,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<SecurityRule> array = new List<SecurityRule>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(SecurityRule.DeserializeSecurityRule(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(SecurityRule.DeserializeSecurityRule(item));
|
||||
}
|
||||
}
|
||||
defaultSecurityRules = array;
|
||||
continue;
|
||||
|
@ -224,7 +245,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<NetworkInterface> array = new List<NetworkInterface>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(NetworkInterface.DeserializeNetworkInterface(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(NetworkInterface.DeserializeNetworkInterface(item));
|
||||
}
|
||||
}
|
||||
networkInterfaces = array;
|
||||
continue;
|
||||
|
@ -238,7 +266,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<Subnet> array = new List<Subnet>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(Subnet.DeserializeSubnet(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(Subnet.DeserializeSubnet(item));
|
||||
}
|
||||
}
|
||||
subnets = array;
|
||||
continue;
|
||||
|
|
|
@ -155,7 +155,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<SubResource> array = new List<SubResource>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
}
|
||||
}
|
||||
frontendIPConfigurations = array;
|
||||
continue;
|
||||
|
|
|
@ -167,7 +167,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
}
|
||||
}
|
||||
tags = dictionary;
|
||||
continue;
|
||||
|
@ -194,7 +201,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<NetworkInterface> array = new List<NetworkInterface>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(NetworkInterface.DeserializeNetworkInterface(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(NetworkInterface.DeserializeNetworkInterface(item));
|
||||
}
|
||||
}
|
||||
networkInterfaces = array;
|
||||
continue;
|
||||
|
@ -217,7 +231,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<PrivateLinkServiceConnection> array = new List<PrivateLinkServiceConnection>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(PrivateLinkServiceConnection.DeserializePrivateLinkServiceConnection(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(PrivateLinkServiceConnection.DeserializePrivateLinkServiceConnection(item));
|
||||
}
|
||||
}
|
||||
privateLinkServiceConnections = array;
|
||||
continue;
|
||||
|
@ -231,7 +252,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<PrivateLinkServiceConnection> array = new List<PrivateLinkServiceConnection>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(PrivateLinkServiceConnection.DeserializePrivateLinkServiceConnection(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(PrivateLinkServiceConnection.DeserializePrivateLinkServiceConnection(item));
|
||||
}
|
||||
}
|
||||
manualPrivateLinkServiceConnections = array;
|
||||
continue;
|
||||
|
|
|
@ -152,7 +152,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
groupIds = array;
|
||||
continue;
|
||||
|
|
|
@ -146,7 +146,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<SubResource> array = new List<SubResource>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(DeserializeSubResource(item));
|
||||
}
|
||||
}
|
||||
loadBalancingRules = array;
|
||||
continue;
|
||||
|
|
|
@ -183,7 +183,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
zones = array;
|
||||
continue;
|
||||
|
@ -233,7 +240,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
}
|
||||
}
|
||||
tags = dictionary;
|
||||
continue;
|
||||
|
@ -296,7 +310,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<IpTag> array = new List<IpTag>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(IpTag.DeserializeIpTag(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(IpTag.DeserializeIpTag(item));
|
||||
}
|
||||
}
|
||||
ipTags = array;
|
||||
continue;
|
||||
|
|
|
@ -104,7 +104,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
}
|
||||
}
|
||||
tags = dictionary;
|
||||
continue;
|
||||
|
|
|
@ -156,7 +156,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
}
|
||||
}
|
||||
tags = dictionary;
|
||||
continue;
|
||||
|
@ -174,7 +181,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<Route> array = new List<Route>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(Route.DeserializeRoute(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(Route.DeserializeRoute(item));
|
||||
}
|
||||
}
|
||||
routes = array;
|
||||
continue;
|
||||
|
@ -188,7 +202,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<Subnet> array = new List<Subnet>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(Subnet.DeserializeSubnet(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(Subnet.DeserializeSubnet(item));
|
||||
}
|
||||
}
|
||||
subnets = array;
|
||||
continue;
|
||||
|
|
|
@ -255,7 +255,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
sourceAddressPrefixes = array;
|
||||
continue;
|
||||
|
@ -269,7 +276,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<ApplicationSecurityGroup> array = new List<ApplicationSecurityGroup>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ApplicationSecurityGroup.DeserializeApplicationSecurityGroup(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ApplicationSecurityGroup.DeserializeApplicationSecurityGroup(item));
|
||||
}
|
||||
}
|
||||
sourceApplicationSecurityGroups = array;
|
||||
continue;
|
||||
|
@ -292,7 +306,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
destinationAddressPrefixes = array;
|
||||
continue;
|
||||
|
@ -306,7 +327,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<ApplicationSecurityGroup> array = new List<ApplicationSecurityGroup>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ApplicationSecurityGroup.DeserializeApplicationSecurityGroup(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ApplicationSecurityGroup.DeserializeApplicationSecurityGroup(item));
|
||||
}
|
||||
}
|
||||
destinationApplicationSecurityGroups = array;
|
||||
continue;
|
||||
|
@ -320,7 +348,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
sourcePortRanges = array;
|
||||
continue;
|
||||
|
@ -334,7 +369,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
destinationPortRanges = array;
|
||||
continue;
|
||||
|
|
|
@ -170,7 +170,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
locations = array;
|
||||
continue;
|
||||
|
|
|
@ -156,7 +156,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
}
|
||||
}
|
||||
tags = dictionary;
|
||||
continue;
|
||||
|
@ -174,7 +181,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<ServiceEndpointPolicyDefinition> array = new List<ServiceEndpointPolicyDefinition>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ServiceEndpointPolicyDefinition.DeserializeServiceEndpointPolicyDefinition(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ServiceEndpointPolicyDefinition.DeserializeServiceEndpointPolicyDefinition(item));
|
||||
}
|
||||
}
|
||||
serviceEndpointPolicyDefinitions = array;
|
||||
continue;
|
||||
|
@ -188,7 +202,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<Subnet> array = new List<Subnet>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(Subnet.DeserializeSubnet(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(Subnet.DeserializeSubnet(item));
|
||||
}
|
||||
}
|
||||
subnets = array;
|
||||
continue;
|
||||
|
|
|
@ -131,7 +131,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
serviceResources = array;
|
||||
continue;
|
||||
|
|
|
@ -64,7 +64,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
locations = array;
|
||||
continue;
|
||||
|
|
|
@ -240,7 +240,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
addressPrefixes = array;
|
||||
continue;
|
||||
|
@ -281,7 +288,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<ServiceEndpointPropertiesFormat> array = new List<ServiceEndpointPropertiesFormat>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ServiceEndpointPropertiesFormat.DeserializeServiceEndpointPropertiesFormat(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ServiceEndpointPropertiesFormat.DeserializeServiceEndpointPropertiesFormat(item));
|
||||
}
|
||||
}
|
||||
serviceEndpoints = array;
|
||||
continue;
|
||||
|
@ -295,7 +309,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<ServiceEndpointPolicy> array = new List<ServiceEndpointPolicy>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ServiceEndpointPolicy.DeserializeServiceEndpointPolicy(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ServiceEndpointPolicy.DeserializeServiceEndpointPolicy(item));
|
||||
}
|
||||
}
|
||||
serviceEndpointPolicies = array;
|
||||
continue;
|
||||
|
@ -309,7 +330,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<PrivateEndpoint> array = new List<PrivateEndpoint>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(PrivateEndpoint.DeserializePrivateEndpoint(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(PrivateEndpoint.DeserializePrivateEndpoint(item));
|
||||
}
|
||||
}
|
||||
privateEndpoints = array;
|
||||
continue;
|
||||
|
@ -323,7 +351,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<IPConfiguration> array = new List<IPConfiguration>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(IPConfiguration.DeserializeIPConfiguration(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(IPConfiguration.DeserializeIPConfiguration(item));
|
||||
}
|
||||
}
|
||||
ipConfigurations = array;
|
||||
continue;
|
||||
|
@ -337,7 +372,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<IPConfigurationProfile> array = new List<IPConfigurationProfile>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(IPConfigurationProfile.DeserializeIPConfigurationProfile(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(IPConfigurationProfile.DeserializeIPConfigurationProfile(item));
|
||||
}
|
||||
}
|
||||
ipConfigurationProfiles = array;
|
||||
continue;
|
||||
|
@ -351,7 +393,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<ResourceNavigationLink> array = new List<ResourceNavigationLink>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ResourceNavigationLink.DeserializeResourceNavigationLink(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ResourceNavigationLink.DeserializeResourceNavigationLink(item));
|
||||
}
|
||||
}
|
||||
resourceNavigationLinks = array;
|
||||
continue;
|
||||
|
@ -365,7 +414,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<ServiceAssociationLink> array = new List<ServiceAssociationLink>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ServiceAssociationLink.DeserializeServiceAssociationLink(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ServiceAssociationLink.DeserializeServiceAssociationLink(item));
|
||||
}
|
||||
}
|
||||
serviceAssociationLinks = array;
|
||||
continue;
|
||||
|
@ -379,7 +435,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<Delegation> array = new List<Delegation>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(Delegation.DeserializeDelegation(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(Delegation.DeserializeDelegation(item));
|
||||
}
|
||||
}
|
||||
delegations = array;
|
||||
continue;
|
||||
|
|
|
@ -163,7 +163,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
}
|
||||
}
|
||||
tags = dictionary;
|
||||
continue;
|
||||
|
@ -181,7 +188,14 @@ namespace Azure.Network.Management.Interface.Models
|
|||
List<NetworkInterfaceTapConfiguration> array = new List<NetworkInterfaceTapConfiguration>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(NetworkInterfaceTapConfiguration.DeserializeNetworkInterfaceTapConfiguration(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(NetworkInterfaceTapConfiguration.DeserializeNetworkInterfaceTapConfiguration(item));
|
||||
}
|
||||
}
|
||||
networkInterfaceTapConfigurations = array;
|
||||
continue;
|
||||
|
|
|
@ -93,7 +93,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceIPConfigurationListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = NetworkInterfaceIPConfigurationListResult.DeserializeNetworkInterfaceIPConfigurationListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceIPConfigurationListResult.DeserializeNetworkInterfaceIPConfigurationListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -134,7 +141,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceIPConfigurationListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = NetworkInterfaceIPConfigurationListResult.DeserializeNetworkInterfaceIPConfigurationListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceIPConfigurationListResult.DeserializeNetworkInterfaceIPConfigurationListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -200,7 +214,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceIPConfiguration value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = NetworkInterfaceIPConfiguration.DeserializeNetworkInterfaceIPConfiguration(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceIPConfiguration.DeserializeNetworkInterfaceIPConfiguration(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -246,7 +267,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceIPConfiguration value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = NetworkInterfaceIPConfiguration.DeserializeNetworkInterfaceIPConfiguration(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceIPConfiguration.DeserializeNetworkInterfaceIPConfiguration(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -303,7 +331,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceIPConfigurationListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = NetworkInterfaceIPConfigurationListResult.DeserializeNetworkInterfaceIPConfigurationListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceIPConfigurationListResult.DeserializeNetworkInterfaceIPConfigurationListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -349,7 +384,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceIPConfigurationListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = NetworkInterfaceIPConfigurationListResult.DeserializeNetworkInterfaceIPConfigurationListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceIPConfigurationListResult.DeserializeNetworkInterfaceIPConfigurationListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -93,7 +93,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceLoadBalancerListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = NetworkInterfaceLoadBalancerListResult.DeserializeNetworkInterfaceLoadBalancerListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceLoadBalancerListResult.DeserializeNetworkInterfaceLoadBalancerListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -134,7 +141,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceLoadBalancerListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = NetworkInterfaceLoadBalancerListResult.DeserializeNetworkInterfaceLoadBalancerListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceLoadBalancerListResult.DeserializeNetworkInterfaceLoadBalancerListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -191,7 +205,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceLoadBalancerListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = NetworkInterfaceLoadBalancerListResult.DeserializeNetworkInterfaceLoadBalancerListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceLoadBalancerListResult.DeserializeNetworkInterfaceLoadBalancerListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -237,7 +258,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceLoadBalancerListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = NetworkInterfaceLoadBalancerListResult.DeserializeNetworkInterfaceLoadBalancerListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceLoadBalancerListResult.DeserializeNetworkInterfaceLoadBalancerListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -192,12 +192,26 @@ namespace Azure.Network.Management.Interface
|
|||
(response, cancellationToken) =>
|
||||
{
|
||||
using var document = JsonDocument.Parse(response.ContentStream);
|
||||
return NetworkInterfaceTapConfiguration.DeserializeNetworkInterfaceTapConfiguration(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
return NetworkInterfaceTapConfiguration.DeserializeNetworkInterfaceTapConfiguration(document.RootElement);
|
||||
}
|
||||
},
|
||||
async (response, cancellationToken) =>
|
||||
{
|
||||
using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
return NetworkInterfaceTapConfiguration.DeserializeNetworkInterfaceTapConfiguration(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
return NetworkInterfaceTapConfiguration.DeserializeNetworkInterfaceTapConfiguration(document.RootElement);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -203,7 +203,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceTapConfiguration value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = NetworkInterfaceTapConfiguration.DeserializeNetworkInterfaceTapConfiguration(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceTapConfiguration.DeserializeNetworkInterfaceTapConfiguration(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -249,7 +256,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceTapConfiguration value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = NetworkInterfaceTapConfiguration.DeserializeNetworkInterfaceTapConfiguration(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceTapConfiguration.DeserializeNetworkInterfaceTapConfiguration(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -427,7 +441,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceTapConfigurationListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = NetworkInterfaceTapConfigurationListResult.DeserializeNetworkInterfaceTapConfigurationListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceTapConfigurationListResult.DeserializeNetworkInterfaceTapConfigurationListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -468,7 +489,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceTapConfigurationListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = NetworkInterfaceTapConfigurationListResult.DeserializeNetworkInterfaceTapConfigurationListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceTapConfigurationListResult.DeserializeNetworkInterfaceTapConfigurationListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -525,7 +553,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceTapConfigurationListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = NetworkInterfaceTapConfigurationListResult.DeserializeNetworkInterfaceTapConfigurationListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceTapConfigurationListResult.DeserializeNetworkInterfaceTapConfigurationListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -571,7 +606,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceTapConfigurationListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = NetworkInterfaceTapConfigurationListResult.DeserializeNetworkInterfaceTapConfigurationListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceTapConfigurationListResult.DeserializeNetworkInterfaceTapConfigurationListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -226,12 +226,26 @@ namespace Azure.Network.Management.Interface
|
|||
(response, cancellationToken) =>
|
||||
{
|
||||
using var document = JsonDocument.Parse(response.ContentStream);
|
||||
return NetworkInterface.DeserializeNetworkInterface(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
return NetworkInterface.DeserializeNetworkInterface(document.RootElement);
|
||||
}
|
||||
},
|
||||
async (response, cancellationToken) =>
|
||||
{
|
||||
using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
return NetworkInterface.DeserializeNetworkInterface(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
return NetworkInterface.DeserializeNetworkInterface(document.RootElement);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -301,12 +315,26 @@ namespace Azure.Network.Management.Interface
|
|||
(response, cancellationToken) =>
|
||||
{
|
||||
using var document = JsonDocument.Parse(response.ContentStream);
|
||||
return EffectiveRouteListResult.DeserializeEffectiveRouteListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
return EffectiveRouteListResult.DeserializeEffectiveRouteListResult(document.RootElement);
|
||||
}
|
||||
},
|
||||
async (response, cancellationToken) =>
|
||||
{
|
||||
using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
return EffectiveRouteListResult.DeserializeEffectiveRouteListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
return EffectiveRouteListResult.DeserializeEffectiveRouteListResult(document.RootElement);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -366,12 +394,26 @@ namespace Azure.Network.Management.Interface
|
|||
(response, cancellationToken) =>
|
||||
{
|
||||
using var document = JsonDocument.Parse(response.ContentStream);
|
||||
return EffectiveNetworkSecurityGroupListResult.DeserializeEffectiveNetworkSecurityGroupListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
return EffectiveNetworkSecurityGroupListResult.DeserializeEffectiveNetworkSecurityGroupListResult(document.RootElement);
|
||||
}
|
||||
},
|
||||
async (response, cancellationToken) =>
|
||||
{
|
||||
using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
return EffectiveNetworkSecurityGroupListResult.DeserializeEffectiveNetworkSecurityGroupListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
return EffectiveNetworkSecurityGroupListResult.DeserializeEffectiveNetworkSecurityGroupListResult(document.RootElement);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -189,7 +189,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterface value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = NetworkInterface.DeserializeNetworkInterface(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterface.DeserializeNetworkInterface(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -231,7 +238,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterface value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = NetworkInterface.DeserializeNetworkInterface(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterface.DeserializeNetworkInterface(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -405,7 +419,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterface value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = NetworkInterface.DeserializeNetworkInterface(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterface.DeserializeNetworkInterface(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -451,7 +472,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterface value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = NetworkInterface.DeserializeNetworkInterface(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterface.DeserializeNetworkInterface(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -496,7 +524,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -526,7 +561,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -579,7 +621,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -615,7 +664,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -848,7 +904,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -884,7 +947,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -936,7 +1006,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -977,7 +1054,14 @@ namespace Azure.Network.Management.Interface
|
|||
{
|
||||
NetworkInterfaceListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NetworkInterfaceListResult.DeserializeNetworkInterfaceListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -241,7 +241,14 @@ namespace Azure.Storage.Management.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property1 in property0.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property1.Name, property1.Value.GetString());
|
||||
if (property1.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property1.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property1.Name, property1.Value.GetString());
|
||||
}
|
||||
}
|
||||
metadata = dictionary;
|
||||
continue;
|
||||
|
|
|
@ -45,7 +45,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<BlobRestoreRange> array = new List<BlobRestoreRange>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(BlobRestoreRange.DeserializeBlobRestoreRange(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(BlobRestoreRange.DeserializeBlobRestoreRange(item));
|
||||
}
|
||||
}
|
||||
blobRanges = array;
|
||||
continue;
|
||||
|
|
|
@ -13,8 +13,8 @@ namespace Azure.Storage.Management.Models
|
|||
public partial class BlobRestoreRange
|
||||
{
|
||||
/// <summary> Initializes a new instance of BlobRestoreRange. </summary>
|
||||
/// <param name="startRange"> Blob start range. Empty means account start. </param>
|
||||
/// <param name="endRange"> Blob end range. Empty means account end. </param>
|
||||
/// <param name="startRange"> Blob start range. This is inclusive. Empty means account start. </param>
|
||||
/// <param name="endRange"> Blob end range. This is exclusive. Empty means account end. </param>
|
||||
public BlobRestoreRange(string startRange, string endRange)
|
||||
{
|
||||
if (startRange == null)
|
||||
|
@ -30,9 +30,9 @@ namespace Azure.Storage.Management.Models
|
|||
EndRange = endRange;
|
||||
}
|
||||
|
||||
/// <summary> Blob start range. Empty means account start. </summary>
|
||||
/// <summary> Blob start range. This is inclusive. Empty means account start. </summary>
|
||||
public string StartRange { get; }
|
||||
/// <summary> Blob end range. Empty means account end. </summary>
|
||||
/// <summary> Blob end range. This is exclusive. Empty means account end. </summary>
|
||||
public string EndRange { get; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<BlobServiceProperties> array = new List<BlobServiceProperties>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(BlobServiceProperties.DeserializeBlobServiceProperties(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(BlobServiceProperties.DeserializeBlobServiceProperties(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -57,7 +57,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<CloudErrorBody> array = new List<CloudErrorBody>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(DeserializeCloudErrorBody(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(DeserializeCloudErrorBody(item));
|
||||
}
|
||||
}
|
||||
details = array;
|
||||
continue;
|
||||
|
|
|
@ -63,7 +63,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
allowedOrigins = array;
|
||||
continue;
|
||||
|
@ -88,7 +95,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
exposedHeaders = array;
|
||||
continue;
|
||||
|
@ -98,7 +112,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
allowedHeaders = array;
|
||||
continue;
|
||||
|
|
|
@ -43,7 +43,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<CorsRule> array = new List<CorsRule>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(CorsRule.DeserializeCorsRule(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(CorsRule.DeserializeCorsRule(item));
|
||||
}
|
||||
}
|
||||
corsRules = array;
|
||||
continue;
|
||||
|
|
|
@ -28,7 +28,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<EncryptionScope> array = new List<EncryptionScope>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(EncryptionScope.DeserializeEncryptionScope(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(EncryptionScope.DeserializeEncryptionScope(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -27,7 +27,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<FileServiceProperties> array = new List<FileServiceProperties>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(FileServiceProperties.DeserializeFileServiceProperties(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(FileServiceProperties.DeserializeFileServiceProperties(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -133,7 +133,14 @@ namespace Azure.Storage.Management.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property1 in property0.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property1.Name, property1.Value.GetString());
|
||||
if (property1.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property1.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property1.Name, property1.Value.GetString());
|
||||
}
|
||||
}
|
||||
metadata = dictionary;
|
||||
continue;
|
||||
|
|
|
@ -133,7 +133,14 @@ namespace Azure.Storage.Management.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property1 in property0.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property1.Name, property1.Value.GetString());
|
||||
if (property1.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property1.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property1.Name, property1.Value.GetString());
|
||||
}
|
||||
}
|
||||
metadata = dictionary;
|
||||
continue;
|
||||
|
|
|
@ -28,7 +28,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<FileShareItem> array = new List<FileShareItem>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(FileShareItem.DeserializeFileShareItem(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(FileShareItem.DeserializeFileShareItem(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -79,7 +79,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<UpdateHistoryProperty> array = new List<UpdateHistoryProperty>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(UpdateHistoryProperty.DeserializeUpdateHistoryProperty(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(UpdateHistoryProperty.DeserializeUpdateHistoryProperty(item));
|
||||
}
|
||||
}
|
||||
updateHistory = array;
|
||||
continue;
|
||||
|
|
|
@ -51,7 +51,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
tags = array;
|
||||
continue;
|
||||
|
|
|
@ -58,7 +58,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<TagProperty> array = new List<TagProperty>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(TagProperty.DeserializeTagProperty(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(TagProperty.DeserializeTagProperty(item));
|
||||
}
|
||||
}
|
||||
tags = array;
|
||||
continue;
|
||||
|
|
|
@ -241,7 +241,14 @@ namespace Azure.Storage.Management.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property1 in property0.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property1.Name, property1.Value.GetString());
|
||||
if (property1.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property1.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property1.Name, property1.Value.GetString());
|
||||
}
|
||||
}
|
||||
metadata = dictionary;
|
||||
continue;
|
||||
|
|
|
@ -28,7 +28,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<ListContainerItem> array = new List<ListContainerItem>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ListContainerItem.DeserializeListContainerItem(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ListContainerItem.DeserializeListContainerItem(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -51,7 +51,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
prefixMatch = array;
|
||||
continue;
|
||||
|
@ -61,7 +68,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
blobTypes = array;
|
||||
continue;
|
||||
|
|
|
@ -36,7 +36,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<ManagementPolicyRule> array = new List<ManagementPolicyRule>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(ManagementPolicyRule.DeserializeManagementPolicyRule(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(ManagementPolicyRule.DeserializeManagementPolicyRule(item));
|
||||
}
|
||||
}
|
||||
rules = array;
|
||||
continue;
|
||||
|
|
|
@ -71,7 +71,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<Dimension> array = new List<Dimension>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(Dimension.DeserializeDimension(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(Dimension.DeserializeDimension(item));
|
||||
}
|
||||
}
|
||||
dimensions = array;
|
||||
continue;
|
||||
|
|
|
@ -72,7 +72,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<VirtualNetworkRule> array = new List<VirtualNetworkRule>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(VirtualNetworkRule.DeserializeVirtualNetworkRule(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(VirtualNetworkRule.DeserializeVirtualNetworkRule(item));
|
||||
}
|
||||
}
|
||||
virtualNetworkRules = array;
|
||||
continue;
|
||||
|
@ -86,7 +93,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<IPRule> array = new List<IPRule>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(IPRule.DeserializeIPRule(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(IPRule.DeserializeIPRule(item));
|
||||
}
|
||||
}
|
||||
ipRules = array;
|
||||
continue;
|
||||
|
|
|
@ -27,7 +27,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<Operation> array = new List<Operation>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(Operation.DeserializeOperation(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(Operation.DeserializeOperation(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -121,7 +121,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
requiredMembers = array;
|
||||
continue;
|
||||
|
@ -135,7 +142,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
requiredZoneNames = array;
|
||||
continue;
|
||||
|
|
|
@ -27,7 +27,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<PrivateLinkResource> array = new List<PrivateLinkResource>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(PrivateLinkResource.DeserializePrivateLinkResource(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(PrivateLinkResource.DeserializePrivateLinkResource(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
#nullable disable
|
||||
|
||||
using System;
|
||||
using System.Text.Json;
|
||||
using Azure.Core;
|
||||
|
||||
|
@ -22,6 +23,11 @@ namespace Azure.Storage.Management.Models
|
|||
writer.WritePropertyName("days");
|
||||
writer.WriteNumberValue(Days.Value);
|
||||
}
|
||||
if (LastEnabledTime != null)
|
||||
{
|
||||
writer.WritePropertyName("lastEnabledTime");
|
||||
writer.WriteStringValue(LastEnabledTime.Value, "S");
|
||||
}
|
||||
writer.WriteEndObject();
|
||||
}
|
||||
|
||||
|
@ -29,6 +35,7 @@ namespace Azure.Storage.Management.Models
|
|||
{
|
||||
bool enabled = default;
|
||||
int? days = default;
|
||||
DateTimeOffset? lastEnabledTime = default;
|
||||
foreach (var property in element.EnumerateObject())
|
||||
{
|
||||
if (property.NameEquals("enabled"))
|
||||
|
@ -45,8 +52,17 @@ namespace Azure.Storage.Management.Models
|
|||
days = property.Value.GetInt32();
|
||||
continue;
|
||||
}
|
||||
if (property.NameEquals("lastEnabledTime"))
|
||||
{
|
||||
if (property.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
lastEnabledTime = property.Value.GetDateTimeOffset("S");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return new RestorePolicyProperties(enabled, days);
|
||||
return new RestorePolicyProperties(enabled, days, lastEnabledTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
|
||||
#nullable disable
|
||||
|
||||
using System;
|
||||
|
||||
namespace Azure.Storage.Management.Models
|
||||
{
|
||||
/// <summary> The blob service properties for blob restore policy. </summary>
|
||||
|
@ -20,15 +22,19 @@ namespace Azure.Storage.Management.Models
|
|||
/// <summary> Initializes a new instance of RestorePolicyProperties. </summary>
|
||||
/// <param name="enabled"> Blob restore is enabled if set to true. </param>
|
||||
/// <param name="days"> how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days. </param>
|
||||
internal RestorePolicyProperties(bool enabled, int? days)
|
||||
/// <param name="lastEnabledTime"> Returns the date and time the restore policy was last enabled. </param>
|
||||
internal RestorePolicyProperties(bool enabled, int? days, DateTimeOffset? lastEnabledTime)
|
||||
{
|
||||
Enabled = enabled;
|
||||
Days = days;
|
||||
LastEnabledTime = lastEnabledTime;
|
||||
}
|
||||
|
||||
/// <summary> Blob restore is enabled if set to true. </summary>
|
||||
public bool Enabled { get; }
|
||||
/// <summary> how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days. </summary>
|
||||
public int? Days { get; set; }
|
||||
/// <summary> Returns the date and time the restore policy was last enabled. </summary>
|
||||
public DateTimeOffset? LastEnabledTime { get; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,7 +38,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
values = array;
|
||||
continue;
|
||||
|
|
|
@ -27,7 +27,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<MetricSpecification> array = new List<MetricSpecification>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(MetricSpecification.DeserializeMetricSpecification(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(MetricSpecification.DeserializeMetricSpecification(item));
|
||||
}
|
||||
}
|
||||
metricSpecifications = array;
|
||||
continue;
|
||||
|
|
|
@ -65,7 +65,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<string> array = new List<string>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(item.GetString());
|
||||
}
|
||||
}
|
||||
locations = array;
|
||||
continue;
|
||||
|
@ -79,7 +86,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<SKUCapability> array = new List<SKUCapability>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(SKUCapability.DeserializeSKUCapability(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(SKUCapability.DeserializeSKUCapability(item));
|
||||
}
|
||||
}
|
||||
capabilities = array;
|
||||
continue;
|
||||
|
@ -93,7 +107,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<Restriction> array = new List<Restriction>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(Restriction.DeserializeRestriction(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(Restriction.DeserializeRestriction(item));
|
||||
}
|
||||
}
|
||||
restrictions = array;
|
||||
continue;
|
||||
|
|
|
@ -251,7 +251,14 @@ namespace Azure.Storage.Management.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
}
|
||||
}
|
||||
tags = dictionary;
|
||||
continue;
|
||||
|
@ -472,7 +479,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<PrivateEndpointConnection> array = new List<PrivateEndpointConnection>();
|
||||
foreach (var item in property0.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(PrivateEndpointConnection.DeserializePrivateEndpointConnection(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(PrivateEndpointConnection.DeserializePrivateEndpointConnection(item));
|
||||
}
|
||||
}
|
||||
privateEndpointConnections = array;
|
||||
continue;
|
||||
|
|
|
@ -27,7 +27,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<StorageAccountKey> array = new List<StorageAccountKey>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(StorageAccountKey.DeserializeStorageAccountKey(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(StorageAccountKey.DeserializeStorageAccountKey(item));
|
||||
}
|
||||
}
|
||||
keys = array;
|
||||
continue;
|
||||
|
|
|
@ -28,7 +28,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<StorageAccount> array = new List<StorageAccount>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(StorageAccount.DeserializeStorageAccount(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(StorageAccount.DeserializeStorageAccount(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -27,7 +27,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<SkuInformation> array = new List<SkuInformation>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(SkuInformation.DeserializeSkuInformation(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(SkuInformation.DeserializeSkuInformation(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -65,7 +65,14 @@ namespace Azure.Storage.Management.Models
|
|||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
foreach (var property0 in property.Value.EnumerateObject())
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
if (property0.Value.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
dictionary.Add(property0.Name, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(property0.Name, property0.Value.GetString());
|
||||
}
|
||||
}
|
||||
tags = dictionary;
|
||||
continue;
|
||||
|
|
|
@ -27,7 +27,14 @@ namespace Azure.Storage.Management.Models
|
|||
List<Usage> array = new List<Usage>();
|
||||
foreach (var item in property.Value.EnumerateArray())
|
||||
{
|
||||
array.Add(Usage.DeserializeUsage(item));
|
||||
if (item.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
array.Add(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
array.Add(Usage.DeserializeUsage(item));
|
||||
}
|
||||
}
|
||||
value = array;
|
||||
continue;
|
||||
|
|
|
@ -105,7 +105,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
ListContainerItems value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = ListContainerItems.DeserializeListContainerItems(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ListContainerItems.DeserializeListContainerItems(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -148,7 +155,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
ListContainerItems value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = ListContainerItems.DeserializeListContainerItems(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ListContainerItems.DeserializeListContainerItems(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -224,7 +238,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
BlobContainer value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = BlobContainer.DeserializeBlobContainer(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = BlobContainer.DeserializeBlobContainer(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -276,7 +297,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
BlobContainer value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = BlobContainer.DeserializeBlobContainer(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = BlobContainer.DeserializeBlobContainer(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -351,7 +379,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
BlobContainer value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = BlobContainer.DeserializeBlobContainer(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = BlobContainer.DeserializeBlobContainer(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -402,7 +437,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
BlobContainer value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = BlobContainer.DeserializeBlobContainer(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = BlobContainer.DeserializeBlobContainer(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -468,7 +510,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
BlobContainer value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = BlobContainer.DeserializeBlobContainer(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = BlobContainer.DeserializeBlobContainer(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -514,7 +563,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
BlobContainer value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = BlobContainer.DeserializeBlobContainer(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = BlobContainer.DeserializeBlobContainer(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -695,7 +751,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
LegalHold value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = LegalHold.DeserializeLegalHold(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = LegalHold.DeserializeLegalHold(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -746,7 +809,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
LegalHold value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = LegalHold.DeserializeLegalHold(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = LegalHold.DeserializeLegalHold(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -823,7 +893,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
LegalHold value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = LegalHold.DeserializeLegalHold(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = LegalHold.DeserializeLegalHold(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -874,7 +951,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
LegalHold value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = LegalHold.DeserializeLegalHold(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = LegalHold.DeserializeLegalHold(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -958,7 +1042,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
ImmutabilityPolicy value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1007,7 +1098,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
ImmutabilityPolicy value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1080,7 +1178,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
ImmutabilityPolicy value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1127,7 +1232,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
ImmutabilityPolicy value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1201,7 +1313,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
ImmutabilityPolicy value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1252,7 +1371,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
ImmutabilityPolicy value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1325,7 +1451,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
ImmutabilityPolicy value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1376,7 +1509,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
ImmutabilityPolicy value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1460,7 +1600,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
ImmutabilityPolicy value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1513,7 +1660,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
ImmutabilityPolicy value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ImmutabilityPolicy.DeserializeImmutabilityPolicy(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1588,7 +1742,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
LeaseContainerResponse value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = LeaseContainerResponse.DeserializeLeaseContainerResponse(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = LeaseContainerResponse.DeserializeLeaseContainerResponse(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1635,7 +1796,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
LeaseContainerResponse value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = LeaseContainerResponse.DeserializeLeaseContainerResponse(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = LeaseContainerResponse.DeserializeLeaseContainerResponse(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1694,7 +1862,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
ListContainerItems value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = ListContainerItems.DeserializeListContainerItems(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ListContainerItems.DeserializeListContainerItems(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -1742,7 +1917,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
ListContainerItems value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = ListContainerItems.DeserializeListContainerItems(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ListContainerItems.DeserializeListContainerItems(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -93,7 +93,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
BlobServiceItems value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = BlobServiceItems.DeserializeBlobServiceItems(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = BlobServiceItems.DeserializeBlobServiceItems(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -134,7 +141,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
BlobServiceItems value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = BlobServiceItems.DeserializeBlobServiceItems(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = BlobServiceItems.DeserializeBlobServiceItems(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -204,7 +218,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
BlobServiceProperties value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = BlobServiceProperties.DeserializeBlobServiceProperties(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = BlobServiceProperties.DeserializeBlobServiceProperties(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -250,7 +271,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
BlobServiceProperties value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = BlobServiceProperties.DeserializeBlobServiceProperties(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = BlobServiceProperties.DeserializeBlobServiceProperties(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -311,7 +339,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
BlobServiceProperties value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = BlobServiceProperties.DeserializeBlobServiceProperties(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = BlobServiceProperties.DeserializeBlobServiceProperties(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -352,7 +387,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
BlobServiceProperties value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = BlobServiceProperties.DeserializeBlobServiceProperties(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = BlobServiceProperties.DeserializeBlobServiceProperties(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -409,7 +451,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
BlobServiceItems value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = BlobServiceItems.DeserializeBlobServiceItems(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = BlobServiceItems.DeserializeBlobServiceItems(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -455,7 +504,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
BlobServiceItems value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = BlobServiceItems.DeserializeBlobServiceItems(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = BlobServiceItems.DeserializeBlobServiceItems(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -109,7 +109,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
EncryptionScope value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = EncryptionScope.DeserializeEncryptionScope(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = EncryptionScope.DeserializeEncryptionScope(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -161,7 +168,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
EncryptionScope value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = EncryptionScope.DeserializeEncryptionScope(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = EncryptionScope.DeserializeEncryptionScope(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -236,7 +250,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
EncryptionScope value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = EncryptionScope.DeserializeEncryptionScope(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = EncryptionScope.DeserializeEncryptionScope(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -287,7 +308,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
EncryptionScope value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = EncryptionScope.DeserializeEncryptionScope(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = EncryptionScope.DeserializeEncryptionScope(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -353,7 +381,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
EncryptionScope value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = EncryptionScope.DeserializeEncryptionScope(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = EncryptionScope.DeserializeEncryptionScope(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -399,7 +434,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
EncryptionScope value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = EncryptionScope.DeserializeEncryptionScope(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = EncryptionScope.DeserializeEncryptionScope(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -459,7 +501,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
EncryptionScopeListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = EncryptionScopeListResult.DeserializeEncryptionScopeListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = EncryptionScopeListResult.DeserializeEncryptionScopeListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -500,7 +549,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
EncryptionScopeListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = EncryptionScopeListResult.DeserializeEncryptionScopeListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = EncryptionScopeListResult.DeserializeEncryptionScopeListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -557,7 +613,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
EncryptionScopeListResult value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = EncryptionScopeListResult.DeserializeEncryptionScopeListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = EncryptionScopeListResult.DeserializeEncryptionScopeListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -603,7 +666,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
EncryptionScopeListResult value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = EncryptionScopeListResult.DeserializeEncryptionScopeListResult(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = EncryptionScopeListResult.DeserializeEncryptionScopeListResult(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -93,7 +93,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
FileServiceItems value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = FileServiceItems.DeserializeFileServiceItems(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = FileServiceItems.DeserializeFileServiceItems(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -134,7 +141,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
FileServiceItems value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = FileServiceItems.DeserializeFileServiceItems(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = FileServiceItems.DeserializeFileServiceItems(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -206,7 +220,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
FileServiceProperties value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = FileServiceProperties.DeserializeFileServiceProperties(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = FileServiceProperties.DeserializeFileServiceProperties(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -249,7 +270,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
FileServiceProperties value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = FileServiceProperties.DeserializeFileServiceProperties(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = FileServiceProperties.DeserializeFileServiceProperties(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -310,7 +338,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
FileServiceProperties value = default;
|
||||
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
|
||||
value = FileServiceProperties.DeserializeFileServiceProperties(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = FileServiceProperties.DeserializeFileServiceProperties(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
@ -351,7 +386,14 @@ namespace Azure.Storage.Management
|
|||
{
|
||||
FileServiceProperties value = default;
|
||||
using var document = JsonDocument.Parse(message.Response.ContentStream);
|
||||
value = FileServiceProperties.DeserializeFileServiceProperties(document.RootElement);
|
||||
if (document.RootElement.ValueKind == JsonValueKind.Null)
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = FileServiceProperties.DeserializeFileServiceProperties(document.RootElement);
|
||||
}
|
||||
return Response.FromValue(value, message.Response);
|
||||
}
|
||||
default:
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче