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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ItemLevelRestoreCriteria(json);
            { _selectedStorageClassName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString>("selectedStorageClassName"), out var __jsonSelectedStorageClassName) ? (string)__jsonSelectedStorageClassName : (string)SelectedStorageClassName; }
            { _provisioner = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString>("provisioner"), out var __jsonProvisioner) ? (string)__jsonProvisioner : (string)Provisioner; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject into a new instance of <see cref="RangeBasedItemLevelRestoreCriteria" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal RangeBasedItemLevelRestoreCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ItemLevelRestoreCriteria(json);
            { _minMatchingValue = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString>("minMatchingValue"), out var __jsonMinMatchingValue) ? (string)__jsonMinMatchingValue : (string)MinMatchingValue; }
            { _maxMatchingValue = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString>("maxMatchingValue"), out var __jsonMaxMatchingValue) ? (string)__jsonMaxMatchingValue : (string)MaxMatchingValue; }
            AfterFromJson(json);
        }