/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of <see cref="ScriptSecureStringExecutionParameter" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from.</param> internal ScriptSecureStringExecutionParameter(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __scriptExecutionParameter = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.ScriptExecutionParameter(json); { _secureValue = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("secureValue"), out var __jsonSecureValue) ? (string)__jsonSecureValue : (string)SecureValue; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of <see cref="PsCredentialExecutionParameter" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from.</param> internal PsCredentialExecutionParameter(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __scriptExecutionParameter = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.ScriptExecutionParameter(json); { _username = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("username"), out var __jsonUsername) ? (string)__jsonUsername : (string)Username; } { _password = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("password"), out var __jsonPassword) ? (string)__jsonPassword : (string)Password; } AfterFromJson(json); }