/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonObject into a new instance of <see cref="AzureFirstPartyManagedCertificateParameters" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonObject instance to deserialize from.</param> internal AzureFirstPartyManagedCertificateParameters(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __secretParameters = new Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.SecretParameters(json); AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonObject into a new instance of <see cref="ManagedCertificateParameters" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonObject instance to deserialize from.</param> internal ManagedCertificateParameters(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __secretParameters = new Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.SecretParameters(json); { _subject = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonString>("subject"), out var __jsonSubject) ? (string)__jsonSubject : (string)Subject; } { _expirationDate = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonString>("expirationDate"), out var __jsonExpirationDate) ? (string)__jsonExpirationDate : (string)ExpirationDate; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonObject into a new instance of <see cref="UrlSigningKeyParameters" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonObject instance to deserialize from.</param> internal UrlSigningKeyParameters(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __secretParameters = new Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.SecretParameters(json); { _secretSource = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonObject>("secretSource"), out var __jsonSecretSource) ? Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.ResourceReference.FromJson(__jsonSecretSource) : SecretSource; } { _keyId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonString>("keyId"), out var __jsonKeyId) ? (string)__jsonKeyId : (string)KeyId; } { _secretVersion = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonString>("secretVersion"), out var __jsonSecretVersion) ? (string)__jsonSecretVersion : (string)SecretVersion; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonObject into a new instance of <see cref="CustomerCertificateParameters" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonObject instance to deserialize from.</param> internal CustomerCertificateParameters(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __secretParameters = new Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.SecretParameters(json); { _secretSource = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonObject>("secretSource"), out var __jsonSecretSource) ? Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.ResourceReference.FromJson(__jsonSecretSource) : SecretSource; } { _secretVersion = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonString>("secretVersion"), out var __jsonSecretVersion) ? (string)__jsonSecretVersion : (string)SecretVersion; } { _useLatestVersion = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonBoolean>("useLatestVersion"), out var __jsonUseLatestVersion) ? (bool?)__jsonUseLatestVersion : UseLatestVersion; } { _subject = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonString>("subject"), out var __jsonSubject) ? (string)__jsonSubject : (string)Subject; } { _expirationDate = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonString>("expirationDate"), out var __jsonExpirationDate) ? (string)__jsonExpirationDate : (string)ExpirationDate; } { _certificateAuthority = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonString>("certificateAuthority"), out var __jsonCertificateAuthority) ? (string)__jsonCertificateAuthority : (string)CertificateAuthority; } { _subjectAlternativeName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonArray>("subjectAlternativeNames"), out var __jsonSubjectAlternativeNames) ? If(__jsonSubjectAlternativeNames as Microsoft.Azure.PowerShell.Cmdlets.Cdn.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.Cdn.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : SubjectAlternativeName; } { _thumbprint = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Json.JsonString>("thumbprint"), out var __jsonThumbprint) ? (string)__jsonThumbprint : (string)Thumbprint; } AfterFromJson(json); }