Exemplo n.º 1
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="GalleryArtifactVersionSource" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal GalleryArtifactVersionSource(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _uri = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri; }
            AfterFromJson(json);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="GalleryImageFeature" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal GalleryImageFeature(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("value"), out var __jsonValue) ? (string)__jsonValue : (string)Value; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="UserArtifactSource" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal UserArtifactSource(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _mediaLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("mediaLink"), out var __jsonMediaLink) ? (string)__jsonMediaLink : (string)MediaLink; }
            { _defaultConfigurationLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("defaultConfigurationLink"), out var __jsonDefaultConfigurationLink) ? (string)__jsonDefaultConfigurationLink : (string)DefaultConfigurationLink; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="SharingProfileGroup" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal SharingProfileGroup(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray>("ids"), out var __jsonIds) ? If(__jsonIds as Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (string)(__u is Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : Id; }
            AfterFromJson(json);
        }
Exemplo n.º 5
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="ResourceRange" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ResourceRange(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _min = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonNumber>("min"), out var __jsonMin) ? (int?)__jsonMin : Min; }
            { _max = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonNumber>("max"), out var __jsonMax) ? (int?)__jsonMax : Max; }
            AfterFromJson(json);
        }
Exemplo n.º 6
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="ReplicationStatus" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ReplicationStatus(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _aggregatedState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("aggregatedState"), out var __jsonAggregatedState) ? (string)__jsonAggregatedState : (string)AggregatedState; }
            { _summary = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray>("summary"), out var __jsonSummary) ? If(__jsonSummary as Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IRegionalReplicationStatus[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IRegionalReplicationStatus)(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RegionalReplicationStatus.FromJson(__u)))))() : null : Summary; }
            AfterFromJson(json);
        }
Exemplo n.º 7
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="SharingProfile" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal SharingProfile(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _permission = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("permissions"), out var __jsonPermissions) ? (string)__jsonPermissions : (string)Permission; }
            { _group = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray>("groups"), out var __jsonGroups) ? If(__jsonGroups as Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ISharingProfileGroup[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ISharingProfileGroup)(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.SharingProfileGroup.FromJson(__u)))))() : null : Group; }
            AfterFromJson(json);
        }
Exemplo n.º 8
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="InnerError" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal InnerError(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _exceptiontype = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("exceptiontype"), out var __jsonExceptiontype) ? (string)__jsonExceptiontype : (string)Exceptiontype; }
            { _errordetail = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("errordetail"), out var __jsonErrordetail) ? (string)__jsonErrordetail : (string)Errordetail; }
            AfterFromJson(json);
        }
Exemplo n.º 9
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="RecommendedMachineConfiguration" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal RecommendedMachineConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _vCpUs = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("vCPUs"), out var __jsonVCpUs) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ResourceRange.FromJson(__jsonVCpUs) : VCpUs; }
            { _memory = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("memory"), out var __jsonMemory) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ResourceRange.FromJson(__jsonMemory) : Memory; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="EncryptionImages" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal EncryptionImages(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _oSDiskImage = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("osDiskImage"), out var __jsonOSDiskImage) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.DiskImageEncryption.FromJson(__jsonOSDiskImage) : OSDiskImage; }
            { _dataDiskImage = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray>("dataDiskImages"), out var __jsonDataDiskImages) ? If(__jsonDataDiskImages as Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IDataDiskImageEncryption[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IDataDiskImageEncryption)(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.DataDiskImageEncryption.FromJson(__u)))))() : null : DataDiskImage; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="GalleryImageVersionList" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal GalleryImageVersionList(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray>("value"), out var __jsonValue) ? If(__jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryImageVersion[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryImageVersion)(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageVersion.FromJson(__u)))))() : null : Value; }
            { _nextLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="VirtualMachineRunCommandScriptSource" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal VirtualMachineRunCommandScriptSource(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _script = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("script"), out var __jsonScript) ? (string)__jsonScript : (string)Script; }
            { _scriptUri = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("scriptUri"), out var __jsonScriptUri) ? (string)__jsonScriptUri : (string)ScriptUri; }
            { _commandId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("commandId"), out var __jsonCommandId) ? (string)__jsonCommandId : (string)CommandId; }
            AfterFromJson(json);
        }
Exemplo n.º 13
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="ApiErrorBase" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ApiErrorBase(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _code = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code; }
            { _target = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target; }
            { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="ImagePurchasePlan" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ImagePurchasePlan(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _publisher = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("publisher"), out var __jsonPublisher) ? (string)__jsonPublisher : (string)Publisher; }
            { _product = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("product"), out var __jsonProduct) ? (string)__jsonProduct : (string)Product; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="GalleryImageIdentifier" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal GalleryImageIdentifier(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _publisher = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("publisher"), out var __jsonPublisher) ? (string)__jsonPublisher : (string)Publisher; }
            { _offer = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("offer"), out var __jsonOffer) ? (string)__jsonOffer : (string)Offer; }
            { _sku = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("sku"), out var __jsonSku) ? (string)__jsonSku : (string)Sku; }
            AfterFromJson(json);
        }
Exemplo n.º 16
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="RunCommandInput" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal RunCommandInput(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _commandId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("commandId"), out var __jsonCommandId) ? (string)__jsonCommandId : (string)CommandId; }
            { _script = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray>("script"), out var __jsonScript) ? If(__jsonScript as Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (string)(__u is Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : Script; }
            { _parameter = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray>("parameters"), out var __jsonParameters) ? If(__jsonParameters as Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IRunCommandInputParameter[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IRunCommandInputParameter)(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandInputParameter.FromJson(__p)))))() : null : Parameter; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="GalleryApplicationVersionProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal GalleryApplicationVersionProperties(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _publishingProfile = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("publishingProfile"), out var __jsonPublishingProfile) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationVersionPublishingProfile.FromJson(__jsonPublishingProfile) : PublishingProfile; }
            { _replicationStatus = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("replicationStatus"), out var __jsonReplicationStatus) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ReplicationStatus.FromJson(__jsonReplicationStatus) : ReplicationStatus; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            AfterFromJson(json);
        }
Exemplo n.º 18
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="UserArtifactManage" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal UserArtifactManage(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _install = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("install"), out var __jsonInstall) ? (string)__jsonInstall : (string)Install; }
            { _remove = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("remove"), out var __jsonRemove) ? (string)__jsonRemove : (string)Remove; }
            { _update = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("update"), out var __jsonUpdate) ? (string)__jsonUpdate : (string)Update; }
            AfterFromJson(json);
        }
Exemplo n.º 19
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="GalleryImageVersionStorageProfile" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal GalleryImageVersionStorageProfile(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _source = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("source"), out var __jsonSource) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryArtifactVersionSource.FromJson(__jsonSource) : Source; }
            { _oSDiskImage = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("osDiskImage"), out var __jsonOSDiskImage) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryDiskImage.FromJson(__jsonOSDiskImage) : OSDiskImage; }
            { _dataDiskImage = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray>("dataDiskImages"), out var __jsonDataDiskImages) ? If(__jsonDataDiskImages as Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryDataDiskImage[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryDataDiskImage)(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryDataDiskImage.FromJson(__u)))))() : null : DataDiskImage; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="GalleryDiskImage" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal GalleryDiskImage(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _source = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("source"), out var __jsonSource) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryArtifactVersionSource.FromJson(__jsonSource) : Source; }
            { _sizeInGb = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonNumber>("sizeInGB"), out var __jsonSizeInGb) ? (int?)__jsonSizeInGb : SizeInGb; }
            { _hostCaching = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("hostCaching"), out var __jsonHostCaching) ? (string)__jsonHostCaching : (string)HostCaching; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="GalleryApplicationVersionPublishingProfile" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal GalleryApplicationVersionPublishingProfile(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __galleryArtifactPublishingProfileBase = new Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryArtifactPublishingProfileBase(json);
            { _source = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("source"), out var __jsonSource) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UserArtifactSource.FromJson(__jsonSource) : Source; }
            { _manageAction = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("manageActions"), out var __jsonManageActions) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UserArtifactManage.FromJson(__jsonManageActions) : ManageAction; }
            { _enableHealthCheck = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonBoolean>("enableHealthCheck"), out var __jsonEnableHealthCheck) ? (bool?)__jsonEnableHealthCheck : EnableHealthCheck; }
            AfterFromJson(json);
        }
Exemplo n.º 22
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="UpdateResourceDefinition" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal UpdateResourceDefinition(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            { _tag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UpdateResourceDefinitionTags.FromJson(__jsonTags) : Tag; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="RegionalReplicationStatus" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal RegionalReplicationStatus(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _region = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("region"), out var __jsonRegion) ? (string)__jsonRegion : (string)Region; }
            { _state = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("state"), out var __jsonState) ? (string)__jsonState : (string)State; }
            { _detail = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("details"), out var __jsonDetails) ? (string)__jsonDetails : (string)Detail; }
            { _progress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonNumber>("progress"), out var __jsonProgress) ? (int?)__jsonProgress : Progress; }
            AfterFromJson(json);
        }
Exemplo n.º 24
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="RunCommandParameterDefinition" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal RunCommandParameterDefinition(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            { _defaultValue = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("defaultValue"), out var __jsonDefaultValue) ? (string)__jsonDefaultValue : (string)DefaultValue; }
            { _required = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonBoolean>("required"), out var __jsonRequired) ? (bool?)__jsonRequired : Required; }
            AfterFromJson(json);
        }
Exemplo n.º 25
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="TargetRegion" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal TargetRegion(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _encryption = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("encryption"), out var __jsonEncryption) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.EncryptionImages.FromJson(__jsonEncryption) : Encryption; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _regionalReplicaCount = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonNumber>("regionalReplicaCount"), out var __jsonRegionalReplicaCount) ? (int?)__jsonRegionalReplicaCount : RegionalReplicaCount; }
            { _storageAccountType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("storageAccountType"), out var __jsonStorageAccountType) ? (string)__jsonStorageAccountType : (string)StorageAccountType; }
            AfterFromJson(json);
        }
 /// <summary>
 /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="RunCommandDocumentBase" />.
 /// </summary>
 /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
 internal RunCommandDocumentBase(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
 {
     bool returnNow = false;
     BeforeFromJson(json, ref returnNow);
     if (returnNow)
     {
         return;
     }
     {_schema = If( json?.PropertyT<Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("$schema"), out var __jsonSchema) ? (string)__jsonSchema : (string)Schema;}
     {_id = If( json?.PropertyT<Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id;}
     {_oSType = If( json?.PropertyT<Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)OSType;}
     {_label = If( json?.PropertyT<Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("label"), out var __jsonLabel) ? (string)__jsonLabel : (string)Label;}
     {_description = If( json?.PropertyT<Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;}
     AfterFromJson(json);
 }
Exemplo n.º 27
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="GalleryProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal GalleryProperties(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _identifier = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("identifier"), out var __jsonIdentifier) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryIdentifier.FromJson(__jsonIdentifier) : Identifier; }
            { _sharingProfile = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("sharingProfile"), out var __jsonSharingProfile) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.SharingProfile.FromJson(__jsonSharingProfile) : SharingProfile; }
            { _softDeletePolicy = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("softDeletePolicy"), out var __jsonSoftDeletePolicy) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.SoftDeletePolicy.FromJson(__jsonSoftDeletePolicy) : SoftDeletePolicy; }
            { _description = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            AfterFromJson(json);
        }
Exemplo n.º 28
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="ApiError" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ApiError(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _innererror = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("innererror"), out var __jsonInnererror) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.InnerError.FromJson(__jsonInnererror) : Innererror; }
            { _detail = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray>("details"), out var __jsonDetails) ? If(__jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IApiErrorBase[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IApiErrorBase)(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ApiErrorBase.FromJson(__u)))))() : null : Detail; }
            { _code = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code; }
            { _target = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target; }
            { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; }
            AfterFromJson(json);
        }
Exemplo n.º 29
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="InstanceViewStatus" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal InstanceViewStatus(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _code = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code; }
            { _level = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("level"), out var __jsonLevel) ? (string)__jsonLevel : (string)Level; }
            { _displayStatus = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("displayStatus"), out var __jsonDisplayStatus) ? (string)__jsonDisplayStatus : (string)DisplayStatus; }
            { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; }
            { _time = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString>("time"), out var __jsonTime) ? global::System.DateTime.TryParse((string)__jsonTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonTimeValue) ? __jsonTimeValue : Time : Time; }
            AfterFromJson(json);
        }
Exemplo n.º 30
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="Disallowed" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Disallowed(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _diskType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray>("diskTypes"), out var __jsonDiskTypes) ? If(__jsonDiskTypes as Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (string)(__u is Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : DiskType; }
            AfterFromJson(json);
        }