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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ValidationInputRequest(json);
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject into a new instance of <see cref="CreateOrderLimitForSubscriptionValidationRequest"
        /// />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal CreateOrderLimitForSubscriptionValidationRequest(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ValidationInputRequest(json);
            { _deviceType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("deviceType"), out var __jsonDeviceType) ? (string)__jsonDeviceType : (string)DeviceType; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject into a new instance of <see cref="PreferencesValidationRequest" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal PreferencesValidationRequest(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ValidationInputRequest(json);
            { _preference = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject>("preference"), out var __jsonPreference) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.Preferences.FromJson(__jsonPreference) : Preference; }
            { _deviceType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("deviceType"), out var __jsonDeviceType) ? (string)__jsonDeviceType : (string)DeviceType; }
            AfterFromJson(json);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject into a new instance of <see cref="ValidateAddress" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ValidateAddress(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ValidationInputRequest(json);
            { _transportPreference = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject>("transportPreferences"), out var __jsonTransportPreferences) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.TransportPreferences.FromJson(__jsonTransportPreferences) : TransportPreference; }
            { _shippingAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject>("shippingAddress"), out var __jsonShippingAddress) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ShippingAddress.FromJson(__jsonShippingAddress) : ShippingAddress; }
            { _deviceType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("deviceType"), out var __jsonDeviceType) ? (string)__jsonDeviceType : (string)DeviceType; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject into a new instance of <see cref="DataTransferDetailsValidationRequest" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal DataTransferDetailsValidationRequest(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ValidationInputRequest(json);
            { _dataExportDetail = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray>("dataExportDetails"), out var __jsonDataExportDetails) ? If(__jsonDataExportDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IDataExportDetails[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IDataExportDetails)(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataExportDetails.FromJson(__u)))))() : null : DataExportDetail; }
            { _dataImportDetail = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray>("dataImportDetails"), out var __jsonDataImportDetails) ? If(__jsonDataImportDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IDataImportDetails[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IDataImportDetails)(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataImportDetails.FromJson(__p)))))() : null : DataImportDetail; }
            { _deviceType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("deviceType"), out var __jsonDeviceType) ? (string)__jsonDeviceType : (string)DeviceType; }
            { _transferType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("transferType"), out var __jsonTransferType) ? (string)__jsonTransferType : (string)TransferType; }
            AfterFromJson(json);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject into a new instance of <see cref="SkuAvailabilityValidationRequest" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal SkuAvailabilityValidationRequest(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ValidationInputRequest(json);
            { _deviceType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("deviceType"), out var __jsonDeviceType) ? (string)__jsonDeviceType : (string)DeviceType; }
            { _transferType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("transferType"), out var __jsonTransferType) ? (string)__jsonTransferType : (string)TransferType; }
            { _country = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("country"), out var __jsonCountry) ? (string)__jsonCountry : (string)Country; }
            { _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location; }
            AfterFromJson(json);
        }