/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="Any" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal Any(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="Components15Yg3X7SchemasOperationPropertiesAdditionalproperties" /// />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal Components15Yg3X7SchemasOperationPropertiesAdditionalproperties(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="OperationProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> /// <param name="exclusions"></param> internal OperationProperties(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet <string> exclusions = null) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.JsonSerializable.FromJson(json, ((Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.IAssociativeArray <global::System.Object>) this).AdditionalProperties, Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.JsonSerializable.DeserializeDictionary(() => new global::System.Collections.Generic.Dictionary <global::System.String, global::System.Object>()), exclusions); AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="PerformanceTierListResult" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal PerformanceTierListResult(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonArray>("value"), out var __jsonValue) ? If(__jsonValue as Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.IPerformanceTierProperties[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.IPerformanceTierProperties)(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.PerformanceTierProperties.FromJson(__u)))))() : null : Value; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="CloudError" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _error = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.CloudErrorBody.FromJson(__jsonError) : Error; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="ServerUpdateParametersTags" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> /// <param name="exclusions"></param> internal ServerUpdateParametersTags(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet <string> exclusions = null) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.JsonSerializable.FromJson(json, ((Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.IAssociativeArray <string>) this).AdditionalProperties, null, exclusions); AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="ServerPropertiesForGeoRestore" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal ServerPropertiesForGeoRestore(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __serverPropertiesForCreate = new Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.ServerPropertiesForCreate(json); { _sourceServerId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("sourceServerId"), out var __jsonSourceServerId) ? (string)__jsonSourceServerId : (string)SourceServerId; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="PerformanceTierProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal PerformanceTierProperties(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; } { _serviceLevelObjective = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonArray>("serviceLevelObjectives"), out var __jsonServiceLevelObjectives) ? If(__jsonServiceLevelObjectives as Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.IPerformanceTierServiceLevelObjectives[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.IPerformanceTierServiceLevelObjectives)(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.PerformanceTierServiceLevelObjectives.FromJson(__u)))))() : null : ServiceLevelObjective; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="NameAvailabilityRequest" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal NameAvailabilityRequest(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="Configuration" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal Configuration(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.ProxyResource(json); { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.ConfigurationProperties.FromJson(__jsonProperties) : Property; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="DatabaseProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal DatabaseProperties(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _charset = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("charset"), out var __jsonCharset) ? (string)__jsonCharset : (string)Charset; } { _collation = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("collation"), out var __jsonCollation) ? (string)__jsonCollation : (string)Collation; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="FirewallRuleProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal FirewallRuleProperties(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _startIPAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("startIpAddress"), out var __jsonStartIPAddress) ? (string)__jsonStartIPAddress : (string)StartIPAddress; } { _endIPAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("endIpAddress"), out var __jsonEndIPAddress) ? (string)__jsonEndIPAddress : (string)EndIPAddress; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="VirtualNetworkRuleListResult" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal VirtualNetworkRuleListResult(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _nextLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink; } { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonArray>("value"), out var __jsonValue) ? If(__jsonValue as Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.IVirtualNetworkRule[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.IVirtualNetworkRule)(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.VirtualNetworkRule.FromJson(__u)))))() : null : Value; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="ServerPropertiesForDefaultCreate" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal ServerPropertiesForDefaultCreate(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __serverPropertiesForCreate = new Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.ServerPropertiesForCreate(json); { _administratorLogin = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("administratorLogin"), out var __jsonAdministratorLogin) ? (string)__jsonAdministratorLogin : (string)AdministratorLogin; } { _administratorLoginPassword = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? (string)__jsonAdministratorLoginPassword : (string)AdministratorLoginPassword; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="ServerPropertiesForRestore" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal ServerPropertiesForRestore(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __serverPropertiesForCreate = new Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.ServerPropertiesForCreate(json); { _sourceServerId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("sourceServerId"), out var __jsonSourceServerId) ? (string)__jsonSourceServerId : (string)SourceServerId; } { _restorePointInTime = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("restorePointInTime"), out var __jsonRestorePointInTime) ? global::System.DateTime.TryParse((string)__jsonRestorePointInTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonRestorePointInTimeValue) ? __jsonRestorePointInTimeValue : RestorePointInTime : RestorePointInTime; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="NameAvailability" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal NameAvailability(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; } { _nameAvailable = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonBoolean>("nameAvailable"), out var __jsonNameAvailable) ? (bool?)__jsonNameAvailable : NameAvailable; } { _reason = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("reason"), out var __jsonReason) ? (string)__jsonReason : (string)Reason; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="ResourceIdentity" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal ResourceIdentity(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; } { _principalId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId; } { _tenantId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("tenantId"), out var __jsonTenantId) ? (string)__jsonTenantId : (string)TenantId; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="VirtualNetworkRuleProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal VirtualNetworkRuleProperties(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _ignoreMissingVnetServiceEndpoint = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonBoolean>("ignoreMissingVnetServiceEndpoint"), out var __jsonIgnoreMissingVnetServiceEndpoint) ? (bool?)__jsonIgnoreMissingVnetServiceEndpoint : IgnoreMissingVnetServiceEndpoint; } { _state = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("state"), out var __jsonState) ? (string)__jsonState : (string)State; } { _virtualNetworkSubnetId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("virtualNetworkSubnetId"), out var __jsonVirtualNetworkSubnetId) ? (string)__jsonVirtualNetworkSubnetId : (string)VirtualNetworkSubnetId; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="TrackedResource" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.ProxyResource(json); { _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location; } { _tag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.TrackedResourceTags.FromJson(__jsonTags) : Tag; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="ServerUpdateParameters" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal ServerUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.ServerUpdateParametersProperties.FromJson(__jsonProperties) : Property; } { _sku = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.Sku.FromJson(__jsonSku) : Sku; } { _tag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.ServerUpdateParametersTags.FromJson(__jsonTags) : Tag; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="StorageProfile" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal StorageProfile(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _backupRetentionDay = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonNumber>("backupRetentionDays"), out var __jsonBackupRetentionDays) ? (int?)__jsonBackupRetentionDays : BackupRetentionDay; } { _geoRedundantBackup = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("geoRedundantBackup"), out var __jsonGeoRedundantBackup) ? (string)__jsonGeoRedundantBackup : (string)GeoRedundantBackup; } { _storageAutogrow = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("storageAutogrow"), out var __jsonStorageAutogrow) ? (string)__jsonStorageAutogrow : (string)StorageAutogrow; } { _storageMb = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonNumber>("storageMB"), out var __jsonStorageMb) ? (int?)__jsonStorageMb : StorageMb; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="Server" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal Server(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.TrackedResource(json); { _identity = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.ResourceIdentity.FromJson(__jsonIdentity) : Identity; } { _sku = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.Sku.FromJson(__jsonSku) : Sku; } { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.ServerProperties.FromJson(__jsonProperties) : Property; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="Operation" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal Operation(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _display = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.OperationDisplay.FromJson(__jsonDisplay) : Display; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } { _origin = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin; } { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.OperationProperties.FromJson(__jsonProperties) : Property; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="ServerPropertiesForCreate" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal ServerPropertiesForCreate(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _storageProfile = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.StorageProfile.FromJson(__jsonStorageProfile) : StorageProfile; } { _createMode = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("createMode"), out var __jsonCreateMode) ? (string)__jsonCreateMode : (string)CreateMode; } { _sslEnforcement = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("sslEnforcement"), out var __jsonSslEnforcement) ? (string)__jsonSslEnforcement : (string)SslEnforcement; } { _version = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="OperationDisplay" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal OperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _provider = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)Provider; } { _resource = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("resource"), out var __jsonResource) ? (string)__jsonResource : (string)Resource; } { _operation = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation; } { _description = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="ServerForCreate" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal ServerForCreate(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _sku = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.Sku.FromJson(__jsonSku) : Sku; } { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.ServerPropertiesForCreate.FromJson(__jsonProperties) : Property; } { _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location; } { _tag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.ServerForCreateTags.FromJson(__jsonTags) : Tag; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="CloudErrorBody" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal CloudErrorBody(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _code = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code; } { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; } { _target = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target; } { _detail = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonArray>("details"), out var __jsonDetails) ? If(__jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.ICloudErrorBody[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.ICloudErrorBody)(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.CloudErrorBody.FromJson(__u)))))() : null : Detail; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="Sku" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal Sku(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } { _capacity = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonNumber>("capacity"), out var __jsonCapacity) ? (int?)__jsonCapacity : Capacity; } { _family = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("family"), out var __jsonFamily) ? (string)__jsonFamily : (string)Family; } { _size = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("size"), out var __jsonSize) ? (string)__jsonSize : (string)Size; } { _tier = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("tier"), out var __jsonTier) ? (string)__jsonTier : (string)Tier; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="ServerUpdateParametersProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal ServerUpdateParametersProperties(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _storageProfile = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject>("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Models.Api20180601Preview.StorageProfile.FromJson(__jsonStorageProfile) : StorageProfile; } { _administratorLoginPassword = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? (string)__jsonAdministratorLoginPassword : (string)AdministratorLoginPassword; } { _replicationRole = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("replicationRole"), out var __jsonReplicationRole) ? (string)__jsonReplicationRole : (string)ReplicationRole; } { _sslEnforcement = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("sslEnforcement"), out var __jsonSslEnforcement) ? (string)__jsonSslEnforcement : (string)SslEnforcement; } { _version = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject into a new instance of <see cref="LogFileProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject instance to deserialize from.</param> internal LogFileProperties(Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _sizeInKb = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonNumber>("sizeInKB"), out var __jsonSizeInKb) ? (long?)__jsonSizeInKb : SizeInKb; } { _createdTime = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("createdTime"), out var __jsonCreatedTime) ? global::System.DateTime.TryParse((string)__jsonCreatedTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreatedTimeValue) ? __jsonCreatedTimeValue : CreatedTime : CreatedTime; } { _lastModifiedTime = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("lastModifiedTime"), out var __jsonLastModifiedTime) ? global::System.DateTime.TryParse((string)__jsonLastModifiedTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastModifiedTimeValue) ? __jsonLastModifiedTimeValue : LastModifiedTime : LastModifiedTime; } { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; } { _url = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.MariaDb.Runtime.Json.JsonString>("url"), out var __jsonUrl) ? (string)__jsonUrl : (string)Url; } AfterFromJson(json); }