< Summary

Class:Azure.ResourceManager.Compute.Models.Disk
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\Disk.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\Disk.Serialization.cs
Covered lines:233
Uncovered lines:63
Coverable lines:296
Total lines:614
Line coverage:78.7% (233 of 296)
Covered branches:145
Total branches:184
Branch coverage:78.8% (145 of 184)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-75%50%
.ctor(...)-100%100%
get_ManagedBy()-100%100%
get_ManagedByExtended()-100%100%
get_Sku()-100%100%
get_Zones()-100%100%
get_TimeCreated()-100%100%
get_OsType()-100%100%
get_HyperVGeneration()-100%100%
get_CreationData()-100%100%
get_DiskSizeGB()-100%100%
get_DiskSizeBytes()-100%100%
get_UniqueId()-100%100%
get_EncryptionSettingsCollection()-100%100%
get_ProvisioningState()-100%100%
get_DiskIopsReadWrite()-100%100%
get_DiskMBpsReadWrite()-100%100%
get_DiskIopsReadOnly()-100%100%
get_DiskMBpsReadOnly()-100%100%
get_DiskState()-100%100%
get_Encryption()-100%100%
get_MaxShares()-100%100%
get_ShareInfo()-100%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-56.25%62.07%
DeserializeDisk(...)-86.84%87.1%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\Disk.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9using System.Collections.Generic;
 10
 11namespace Azure.ResourceManager.Compute.Models
 12{
 13    /// <summary> Disk resource. </summary>
 14    public partial class Disk : Resource
 15    {
 16        /// <summary> Initializes a new instance of Disk. </summary>
 17        /// <param name="location"> Resource location. </param>
 6818        public Disk(string location) : base(location)
 19        {
 6820            if (location == null)
 21            {
 022                throw new ArgumentNullException(nameof(location));
 23            }
 6824        }
 25
 26        /// <summary> Initializes a new instance of Disk. </summary>
 27        /// <param name="id"> Resource Id. </param>
 28        /// <param name="name"> Resource name. </param>
 29        /// <param name="type"> Resource type. </param>
 30        /// <param name="location"> Resource location. </param>
 31        /// <param name="tags"> Resource tags. </param>
 32        /// <param name="managedBy"> A relative URI containing the ID of the VM that has the disk attached. </param>
 33        /// <param name="managedByExtended"> List of relative URIs containing the IDs of the VMs that have the disk atta
 34        /// <param name="sku"> The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, or UltraSSD_LRS. <
 35        /// <param name="zones"> The Logical zone list for Disk. </param>
 36        /// <param name="timeCreated"> The time when the disk was created. </param>
 37        /// <param name="osType"> The Operating System type. </param>
 38        /// <param name="hyperVGeneration"> The hypervisor generation of the Virtual Machine. Applicable to OS disks onl
 39        /// <param name="creationData"> Disk source information. CreationData information cannot be changed after the di
 40        /// <param name="diskSizeGB"> If creationData.createOption is Empty, this field is mandatory and it indicates th
 41        /// <param name="diskSizeBytes"> The size of the disk in bytes. This field is read only. </param>
 42        /// <param name="uniqueId"> Unique Guid identifying the resource. </param>
 43        /// <param name="encryptionSettingsCollection"> Encryption settings collection used for Azure Disk Encryption, c
 44        /// <param name="provisioningState"> The disk provisioning state. </param>
 45        /// <param name="diskIopsReadWrite"> The number of IOPS allowed for this disk; only settable for UltraSSD disks.
 46        /// <param name="diskMBpsReadWrite"> The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps
 47        /// <param name="diskIopsReadOnly"> The total number of IOPS that will be allowed across all VMs mounting the sh
 48        /// <param name="diskMBpsReadOnly"> The total throughput (MBps) that will be allowed across all VMs mounting the
 49        /// <param name="diskState"> The state of the disk. </param>
 50        /// <param name="encryption"> Encryption property can be used to encrypt data at rest with customer managed keys
 51        /// <param name="maxShares"> The maximum number of VMs that can attach to the disk at the same time. Value great
 52        /// <param name="shareInfo"> Details of the list of all VMs that have the disk attached. maxShares should be set
 22853        internal Disk(string id, string name, string type, string location, IDictionary<string, string> tags, string man
 54        {
 22855            ManagedBy = managedBy;
 22856            ManagedByExtended = managedByExtended;
 22857            Sku = sku;
 22858            Zones = zones;
 22859            TimeCreated = timeCreated;
 22860            OsType = osType;
 22861            HyperVGeneration = hyperVGeneration;
 22862            CreationData = creationData;
 22863            DiskSizeGB = diskSizeGB;
 22864            DiskSizeBytes = diskSizeBytes;
 22865            UniqueId = uniqueId;
 22866            EncryptionSettingsCollection = encryptionSettingsCollection;
 22867            ProvisioningState = provisioningState;
 22868            DiskIopsReadWrite = diskIopsReadWrite;
 22869            DiskMBpsReadWrite = diskMBpsReadWrite;
 22870            DiskIopsReadOnly = diskIopsReadOnly;
 22871            DiskMBpsReadOnly = diskMBpsReadOnly;
 22872            DiskState = diskState;
 22873            Encryption = encryption;
 22874            MaxShares = maxShares;
 22875            ShareInfo = shareInfo;
 22876        }
 77
 78        /// <summary> A relative URI containing the ID of the VM that has the disk attached. </summary>
 18479        public string ManagedBy { get; }
 80        /// <summary> List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should 
 18081        public IList<string> ManagedByExtended { get; }
 82        /// <summary> The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, or UltraSSD_LRS. </summary>
 85283        public DiskSku Sku { get; set; }
 84        /// <summary> The Logical zone list for Disk. </summary>
 68085        public IList<string> Zones { get; set; }
 86        /// <summary> The time when the disk was created. </summary>
 18087        public DateTimeOffset? TimeCreated { get; }
 88        /// <summary> The Operating System type. </summary>
 84889        public OperatingSystemTypes? OsType { get; set; }
 90        /// <summary> The hypervisor generation of the Virtual Machine. Applicable to OS disks only. </summary>
 45691        public HyperVGeneration? HyperVGeneration { get; set; }
 92        /// <summary> Disk source information. CreationData information cannot be changed after the disk has been create
 88493        public CreationData CreationData { get; set; }
 94        /// <summary> If creationData.createOption is Empty, this field is mandatory and it indicates the size of the di
 92495        public int? DiskSizeGB { get; set; }
 96        /// <summary> The size of the disk in bytes. This field is read only. </summary>
 27297        public long? DiskSizeBytes { get; }
 98        /// <summary> Unique Guid identifying the resource. </summary>
 27699        public string UniqueId { get; }
 100        /// <summary> Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption set
 416101        public EncryptionSettingsCollection EncryptionSettingsCollection { get; set; }
 102        /// <summary> The disk provisioning state. </summary>
 276103        public string ProvisioningState { get; }
 104        /// <summary> The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can tran
 532105        public long? DiskIopsReadWrite { get; set; }
 106        /// <summary> The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of byte
 532107        public long? DiskMBpsReadWrite { get; set; }
 108        /// <summary> The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly.
 496109        public long? DiskIopsReadOnly { get; set; }
 110        /// <summary> The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOn
 496111        public long? DiskMBpsReadOnly { get; set; }
 112        /// <summary> The state of the disk. </summary>
 180113        public DiskState? DiskState { get; }
 114        /// <summary> Encryption property can be used to encrypt data at rest with customer managed keys or platform man
 408115        public Encryption Encryption { get; set; }
 116        /// <summary> The maximum number of VMs that can attach to the disk at the same time. Value greater than one ind
 496117        public int? MaxShares { get; set; }
 118        /// <summary> Details of the list of all VMs that have the disk attached. maxShares should be set to a value gre
 180119        public IList<ShareInfoElement> ShareInfo { get; }
 120    }
 121}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\Disk.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9using System.Collections.Generic;
 10using System.Text.Json;
 11using Azure.Core;
 12
 13namespace Azure.ResourceManager.Compute.Models
 14{
 15    public partial class Disk : IUtf8JsonSerializable
 16    {
 17        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 18        {
 18019            writer.WriteStartObject();
 18020            if (ManagedBy != null)
 21            {
 022                writer.WritePropertyName("managedBy");
 023                writer.WriteStringValue(ManagedBy);
 24            }
 18025            if (ManagedByExtended != null)
 26            {
 027                writer.WritePropertyName("managedByExtended");
 028                writer.WriteStartArray();
 029                foreach (var item in ManagedByExtended)
 30                {
 031                    writer.WriteStringValue(item);
 32                }
 033                writer.WriteEndArray();
 34            }
 18035            if (Sku != null)
 36            {
 18037                writer.WritePropertyName("sku");
 18038                writer.WriteObjectValue(Sku);
 39            }
 18040            if (Zones != null)
 41            {
 1642                writer.WritePropertyName("zones");
 1643                writer.WriteStartArray();
 6444                foreach (var item in Zones)
 45                {
 1646                    writer.WriteStringValue(item);
 47                }
 1648                writer.WriteEndArray();
 49            }
 18050            if (Id != null)
 51            {
 052                writer.WritePropertyName("id");
 053                writer.WriteStringValue(Id);
 54            }
 18055            if (Name != null)
 56            {
 057                writer.WritePropertyName("name");
 058                writer.WriteStringValue(Name);
 59            }
 18060            if (Type != null)
 61            {
 062                writer.WritePropertyName("type");
 063                writer.WriteStringValue(Type);
 64            }
 18065            writer.WritePropertyName("location");
 18066            writer.WriteStringValue(Location);
 18067            if (Tags != null)
 68            {
 069                writer.WritePropertyName("tags");
 070                writer.WriteStartObject();
 071                foreach (var item in Tags)
 72                {
 073                    writer.WritePropertyName(item.Key);
 074                    writer.WriteStringValue(item.Value);
 75                }
 076                writer.WriteEndObject();
 77            }
 18078            writer.WritePropertyName("properties");
 18079            writer.WriteStartObject();
 18080            if (TimeCreated != null)
 81            {
 082                writer.WritePropertyName("timeCreated");
 083                writer.WriteStringValue(TimeCreated.Value, "O");
 84            }
 18085            if (OsType != null)
 86            {
 18087                writer.WritePropertyName("osType");
 18088                writer.WriteStringValue(OsType.Value.ToSerialString());
 89            }
 18090            if (HyperVGeneration != null)
 91            {
 1692                writer.WritePropertyName("hyperVGeneration");
 1693                writer.WriteStringValue(HyperVGeneration.Value.ToString());
 94            }
 18095            if (CreationData != null)
 96            {
 18097                writer.WritePropertyName("creationData");
 18098                writer.WriteObjectValue(CreationData);
 99            }
 180100            if (DiskSizeGB != null)
 101            {
 172102                writer.WritePropertyName("diskSizeGB");
 172103                writer.WriteNumberValue(DiskSizeGB.Value);
 104            }
 180105            if (DiskSizeBytes != null)
 106            {
 0107                writer.WritePropertyName("diskSizeBytes");
 0108                writer.WriteNumberValue(DiskSizeBytes.Value);
 109            }
 180110            if (UniqueId != null)
 111            {
 0112                writer.WritePropertyName("uniqueId");
 0113                writer.WriteStringValue(UniqueId);
 114            }
 180115            if (EncryptionSettingsCollection != null)
 116            {
 4117                writer.WritePropertyName("encryptionSettingsCollection");
 4118                writer.WriteObjectValue(EncryptionSettingsCollection);
 119            }
 180120            if (ProvisioningState != null)
 121            {
 0122                writer.WritePropertyName("provisioningState");
 0123                writer.WriteStringValue(ProvisioningState);
 124            }
 180125            if (DiskIopsReadWrite != null)
 126            {
 8127                writer.WritePropertyName("diskIOPSReadWrite");
 8128                writer.WriteNumberValue(DiskIopsReadWrite.Value);
 129            }
 180130            if (DiskMBpsReadWrite != null)
 131            {
 8132                writer.WritePropertyName("diskMBpsReadWrite");
 8133                writer.WriteNumberValue(DiskMBpsReadWrite.Value);
 134            }
 180135            if (DiskIopsReadOnly != null)
 136            {
 0137                writer.WritePropertyName("diskIOPSReadOnly");
 0138                writer.WriteNumberValue(DiskIopsReadOnly.Value);
 139            }
 180140            if (DiskMBpsReadOnly != null)
 141            {
 0142                writer.WritePropertyName("diskMBpsReadOnly");
 0143                writer.WriteNumberValue(DiskMBpsReadOnly.Value);
 144            }
 180145            if (DiskState != null)
 146            {
 0147                writer.WritePropertyName("diskState");
 0148                writer.WriteStringValue(DiskState.Value.ToString());
 149            }
 180150            if (Encryption != null)
 151            {
 0152                writer.WritePropertyName("encryption");
 0153                writer.WriteObjectValue(Encryption);
 154            }
 180155            if (MaxShares != null)
 156            {
 0157                writer.WritePropertyName("maxShares");
 0158                writer.WriteNumberValue(MaxShares.Value);
 159            }
 180160            if (ShareInfo != null)
 161            {
 0162                writer.WritePropertyName("shareInfo");
 0163                writer.WriteStartArray();
 0164                foreach (var item in ShareInfo)
 165                {
 0166                    writer.WriteObjectValue(item);
 167                }
 0168                writer.WriteEndArray();
 169            }
 180170            writer.WriteEndObject();
 180171            writer.WriteEndObject();
 180172        }
 173
 174        internal static Disk DeserializeDisk(JsonElement element)
 175        {
 228176            string managedBy = default;
 228177            IList<string> managedByExtended = default;
 228178            DiskSku sku = default;
 228179            IList<string> zones = default;
 228180            string id = default;
 228181            string name = default;
 228182            string type = default;
 228183            string location = default;
 228184            IDictionary<string, string> tags = default;
 228185            DateTimeOffset? timeCreated = default;
 228186            OperatingSystemTypes? osType = default;
 228187            HyperVGeneration? hyperVGeneration = default;
 228188            CreationData creationData = default;
 228189            int? diskSizeGB = default;
 228190            long? diskSizeBytes = default;
 228191            string uniqueId = default;
 228192            EncryptionSettingsCollection encryptionSettingsCollection = default;
 228193            string provisioningState = default;
 228194            long? diskIOPSReadWrite = default;
 228195            long? diskMBpsReadWrite = default;
 228196            long? diskIOPSReadOnly = default;
 228197            long? diskMBpsReadOnly = default;
 228198            DiskState? diskState = default;
 228199            Encryption encryption = default;
 228200            int? maxShares = default;
 228201            IList<ShareInfoElement> shareInfo = default;
 3320202            foreach (var property in element.EnumerateObject())
 203            {
 1432204                if (property.NameEquals("managedBy"))
 205                {
 4206                    if (property.Value.ValueKind == JsonValueKind.Null)
 207                    {
 208                        continue;
 209                    }
 4210                    managedBy = property.Value.GetString();
 4211                    continue;
 212                }
 1428213                if (property.NameEquals("managedByExtended"))
 214                {
 0215                    if (property.Value.ValueKind == JsonValueKind.Null)
 216                    {
 217                        continue;
 218                    }
 0219                    List<string> array = new List<string>();
 0220                    foreach (var item in property.Value.EnumerateArray())
 221                    {
 0222                        if (item.ValueKind == JsonValueKind.Null)
 223                        {
 0224                            array.Add(null);
 225                        }
 226                        else
 227                        {
 0228                            array.Add(item.GetString());
 229                        }
 230                    }
 0231                    managedByExtended = array;
 0232                    continue;
 233                }
 1428234                if (property.NameEquals("sku"))
 235                {
 228236                    if (property.Value.ValueKind == JsonValueKind.Null)
 237                    {
 238                        continue;
 239                    }
 228240                    sku = DiskSku.DeserializeDiskSku(property.Value);
 228241                    continue;
 242                }
 1200243                if (property.NameEquals("zones"))
 244                {
 32245                    if (property.Value.ValueKind == JsonValueKind.Null)
 246                    {
 247                        continue;
 248                    }
 32249                    List<string> array = new List<string>();
 128250                    foreach (var item in property.Value.EnumerateArray())
 251                    {
 32252                        if (item.ValueKind == JsonValueKind.Null)
 253                        {
 0254                            array.Add(null);
 255                        }
 256                        else
 257                        {
 32258                            array.Add(item.GetString());
 259                        }
 260                    }
 32261                    zones = array;
 32262                    continue;
 263                }
 1168264                if (property.NameEquals("id"))
 265                {
 228266                    if (property.Value.ValueKind == JsonValueKind.Null)
 267                    {
 268                        continue;
 269                    }
 228270                    id = property.Value.GetString();
 228271                    continue;
 272                }
 940273                if (property.NameEquals("name"))
 274                {
 228275                    if (property.Value.ValueKind == JsonValueKind.Null)
 276                    {
 277                        continue;
 278                    }
 228279                    name = property.Value.GetString();
 228280                    continue;
 281                }
 712282                if (property.NameEquals("type"))
 283                {
 228284                    if (property.Value.ValueKind == JsonValueKind.Null)
 285                    {
 286                        continue;
 287                    }
 228288                    type = property.Value.GetString();
 228289                    continue;
 290                }
 484291                if (property.NameEquals("location"))
 292                {
 228293                    location = property.Value.GetString();
 228294                    continue;
 295                }
 256296                if (property.NameEquals("tags"))
 297                {
 28298                    if (property.Value.ValueKind == JsonValueKind.Null)
 299                    {
 300                        continue;
 301                    }
 28302                    Dictionary<string, string> dictionary = new Dictionary<string, string>();
 120303                    foreach (var property0 in property.Value.EnumerateObject())
 304                    {
 32305                        if (property0.Value.ValueKind == JsonValueKind.Null)
 306                        {
 0307                            dictionary.Add(property0.Name, null);
 308                        }
 309                        else
 310                        {
 32311                            dictionary.Add(property0.Name, property0.Value.GetString());
 312                        }
 313                    }
 28314                    tags = dictionary;
 28315                    continue;
 316                }
 228317                if (property.NameEquals("properties"))
 318                {
 5608319                    foreach (var property0 in property.Value.EnumerateObject())
 320                    {
 2576321                        if (property0.NameEquals("timeCreated"))
 322                        {
 228323                            if (property0.Value.ValueKind == JsonValueKind.Null)
 324                            {
 325                                continue;
 326                            }
 228327                            timeCreated = property0.Value.GetDateTimeOffset("O");
 228328                            continue;
 329                        }
 2348330                        if (property0.NameEquals("osType"))
 331                        {
 228332                            if (property0.Value.ValueKind == JsonValueKind.Null)
 333                            {
 334                                continue;
 335                            }
 228336                            osType = property0.Value.GetString().ToOperatingSystemTypes();
 228337                            continue;
 338                        }
 2120339                        if (property0.NameEquals("hyperVGeneration"))
 340                        {
 20341                            if (property0.Value.ValueKind == JsonValueKind.Null)
 342                            {
 343                                continue;
 344                            }
 20345                            hyperVGeneration = new HyperVGeneration(property0.Value.GetString());
 20346                            continue;
 347                        }
 2100348                        if (property0.NameEquals("creationData"))
 349                        {
 228350                            if (property0.Value.ValueKind == JsonValueKind.Null)
 351                            {
 352                                continue;
 353                            }
 228354                            creationData = CreationData.DeserializeCreationData(property0.Value);
 228355                            continue;
 356                        }
 1872357                        if (property0.NameEquals("diskSizeGB"))
 358                        {
 220359                            if (property0.Value.ValueKind == JsonValueKind.Null)
 360                            {
 361                                continue;
 362                            }
 220363                            diskSizeGB = property0.Value.GetInt32();
 220364                            continue;
 365                        }
 1652366                        if (property0.NameEquals("diskSizeBytes"))
 367                        {
 220368                            if (property0.Value.ValueKind == JsonValueKind.Null)
 369                            {
 370                                continue;
 371                            }
 220372                            diskSizeBytes = property0.Value.GetInt64();
 220373                            continue;
 374                        }
 1432375                        if (property0.NameEquals("uniqueId"))
 376                        {
 228377                            if (property0.Value.ValueKind == JsonValueKind.Null)
 378                            {
 379                                continue;
 380                            }
 228381                            uniqueId = property0.Value.GetString();
 228382                            continue;
 383                        }
 1204384                        if (property0.NameEquals("encryptionSettingsCollection"))
 385                        {
 0386                            if (property0.Value.ValueKind == JsonValueKind.Null)
 387                            {
 388                                continue;
 389                            }
 0390                            encryptionSettingsCollection = EncryptionSettingsCollection.DeserializeEncryptionSettingsCol
 0391                            continue;
 392                        }
 1204393                        if (property0.NameEquals("provisioningState"))
 394                        {
 228395                            if (property0.Value.ValueKind == JsonValueKind.Null)
 396                            {
 397                                continue;
 398                            }
 228399                            provisioningState = property0.Value.GetString();
 228400                            continue;
 401                        }
 976402                        if (property0.NameEquals("diskIOPSReadWrite"))
 403                        {
 228404                            if (property0.Value.ValueKind == JsonValueKind.Null)
 405                            {
 406                                continue;
 407                            }
 228408                            diskIOPSReadWrite = property0.Value.GetInt64();
 228409                            continue;
 410                        }
 748411                        if (property0.NameEquals("diskMBpsReadWrite"))
 412                        {
 228413                            if (property0.Value.ValueKind == JsonValueKind.Null)
 414                            {
 415                                continue;
 416                            }
 228417                            diskMBpsReadWrite = property0.Value.GetInt64();
 228418                            continue;
 419                        }
 520420                        if (property0.NameEquals("diskIOPSReadOnly"))
 421                        {
 16422                            if (property0.Value.ValueKind == JsonValueKind.Null)
 423                            {
 424                                continue;
 425                            }
 16426                            diskIOPSReadOnly = property0.Value.GetInt64();
 16427                            continue;
 428                        }
 504429                        if (property0.NameEquals("diskMBpsReadOnly"))
 430                        {
 16431                            if (property0.Value.ValueKind == JsonValueKind.Null)
 432                            {
 433                                continue;
 434                            }
 16435                            diskMBpsReadOnly = property0.Value.GetInt64();
 16436                            continue;
 437                        }
 488438                        if (property0.NameEquals("diskState"))
 439                        {
 228440                            if (property0.Value.ValueKind == JsonValueKind.Null)
 441                            {
 442                                continue;
 443                            }
 228444                            diskState = new DiskState(property0.Value.GetString());
 228445                            continue;
 446                        }
 260447                        if (property0.NameEquals("encryption"))
 448                        {
 228449                            if (property0.Value.ValueKind == JsonValueKind.Null)
 450                            {
 451                                continue;
 452                            }
 228453                            encryption = Encryption.DeserializeEncryption(property0.Value);
 228454                            continue;
 455                        }
 32456                        if (property0.NameEquals("maxShares"))
 457                        {
 16458                            if (property0.Value.ValueKind == JsonValueKind.Null)
 459                            {
 460                                continue;
 461                            }
 16462                            maxShares = property0.Value.GetInt32();
 16463                            continue;
 464                        }
 16465                        if (property0.NameEquals("shareInfo"))
 466                        {
 0467                            if (property0.Value.ValueKind == JsonValueKind.Null)
 468                            {
 469                                continue;
 470                            }
 0471                            List<ShareInfoElement> array = new List<ShareInfoElement>();
 0472                            foreach (var item in property0.Value.EnumerateArray())
 473                            {
 0474                                if (item.ValueKind == JsonValueKind.Null)
 475                                {
 0476                                    array.Add(null);
 477                                }
 478                                else
 479                                {
 0480                                    array.Add(ShareInfoElement.DeserializeShareInfoElement(item));
 481                                }
 482                            }
 0483                            shareInfo = array;
 484                            continue;
 485                        }
 486                    }
 487                    continue;
 488                }
 489            }
 228490            return new Disk(id, name, type, location, tags, managedBy, managedByExtended, sku, zones, timeCreated, osTyp
 491        }
 492    }
 493}