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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _displayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName; }
            { _dnsServiceIP = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("dnsServiceIp"), out var __jsonDnsServiceIP) ? (string)__jsonDnsServiceIP : (string)DnsServiceIP; }
            { _defaultDnsZone = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("defaultDnsZone"), out var __jsonDefaultDnsZone) ? (string)__jsonDefaultDnsZone : (string)DefaultDnsZone; }
            { _fqdnZone = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray>("fqdnZones"), out var __jsonFqdnZones) ? If(__jsonFqdnZones as Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : FqdnZone; }
            { _logLevel = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("logLevel"), out var __jsonLogLevel) ? (string)__jsonLogLevel : (string)LogLevel; }
            { _status = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _revision = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber>("revision"), out var __jsonRevision) ? (long?)__jsonRevision : Revision; }
            AfterFromJson(json);
        }
Exemple #2
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of <see cref="VMwareIdentity" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal VMwareIdentity(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _subscriptionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId; }
            { _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location; }
            { _resourceGroupName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName; }
            { _privateCloudName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("privateCloudName"), out var __jsonPrivateCloudName) ? (string)__jsonPrivateCloudName : (string)PrivateCloudName; }
            { _clusterName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("clusterName"), out var __jsonClusterName) ? (string)__jsonClusterName : (string)ClusterName; }
            { _hcxEnterpriseSiteName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("hcxEnterpriseSiteName"), out var __jsonHcxEnterpriseSiteName) ? (string)__jsonHcxEnterpriseSiteName : (string)HcxEnterpriseSiteName; }
            { _authorizationName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("authorizationName"), out var __jsonAuthorizationName) ? (string)__jsonAuthorizationName : (string)AuthorizationName; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of <see cref="WorkloadNetworkPortMirroringProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal WorkloadNetworkPortMirroringProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _displayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName; }
            { _direction = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("direction"), out var __jsonDirection) ? (string)__jsonDirection : (string)Direction; }
            { _source = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("source"), out var __jsonSource) ? (string)__jsonSource : (string)Source; }
            { _destination = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("destination"), out var __jsonDestination) ? (string)__jsonDestination : (string)Destination; }
            { _status = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _revision = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber>("revision"), out var __jsonRevision) ? (long?)__jsonRevision : Revision; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of <see cref="WorkloadNetworkDnsZoneProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal WorkloadNetworkDnsZoneProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _displayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName; }
            { _domain = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray>("domain"), out var __jsonDomain) ? If(__jsonDomain as Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : Domain; }
            { _dnsServerIP = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray>("dnsServerIps"), out var __jsonDnsServerIps) ? If(__jsonDnsServerIps as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (string)(__p is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null))))() : null : DnsServerIP; }
            { _sourceIP = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("sourceIp"), out var __jsonSourceIP) ? (string)__jsonSourceIP : (string)SourceIP; }
            { _dnsService = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber>("dnsServices"), out var __jsonDnsServices) ? (long?)__jsonDnsServices : DnsService; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _revision = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber>("revision"), out var __jsonRevision) ? (long?)__jsonRevision : Revision; }
            AfterFromJson(json);
        }
Exemple #5
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of <see cref="WorkloadNetworkSegmentProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal WorkloadNetworkSegmentProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _subnet = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject>("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.WorkloadNetworkSegmentSubnet.FromJson(__jsonSubnet) : Subnet; }
            { _displayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName; }
            { _connectedGateway = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("connectedGateway"), out var __jsonConnectedGateway) ? (string)__jsonConnectedGateway : (string)ConnectedGateway; }
            { _portVif = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray>("portVif"), out var __jsonPortVif) ? If(__jsonPortVif as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IWorkloadNetworkSegmentPortVif[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IWorkloadNetworkSegmentPortVif)(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.WorkloadNetworkSegmentPortVif.FromJson(__u)))))() : null : PortVif; }
            { _status = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _revision = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber>("revision"), out var __jsonRevision) ? (long?)__jsonRevision : Revision; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of <see cref="GlobalReachConnectionProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal GlobalReachConnectionProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _addressPrefix = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("addressPrefix"), out var __jsonAddressPrefix) ? (string)__jsonAddressPrefix : (string)AddressPrefix; }
            { _authorizationKey = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("authorizationKey"), out var __jsonAuthorizationKey) ? (string)__jsonAuthorizationKey : (string)AuthorizationKey; }
            { _circuitConnectionStatus = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("circuitConnectionStatus"), out var __jsonCircuitConnectionStatus) ? (string)__jsonCircuitConnectionStatus : (string)CircuitConnectionStatus; }
            { _peerExpressRouteCircuit = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("peerExpressRouteCircuit"), out var __jsonPeerExpressRouteCircuit) ? (string)__jsonPeerExpressRouteCircuit : (string)PeerExpressRouteCircuit; }
            { _expressRouteId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("expressRouteId"), out var __jsonExpressRouteId) ? (string)__jsonExpressRouteId : (string)ExpressRouteId; }
            AfterFromJson(json);
        }
Exemple #7
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of <see cref="MetricSpecification" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal MetricSpecification(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _displayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName; }
            { _displayDescription = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("displayDescription"), out var __jsonDisplayDescription) ? (string)__jsonDisplayDescription : (string)DisplayDescription; }
            { _unit = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("unit"), out var __jsonUnit) ? (string)__jsonUnit : (string)Unit; }
            { _category = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("category"), out var __jsonCategory) ? (string)__jsonCategory : (string)Category; }
            { _aggregationType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("aggregationType"), out var __jsonAggregationType) ? (string)__jsonAggregationType : (string)AggregationType; }
            { _supportedAggregationType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray>("supportedAggregationTypes"), out var __jsonSupportedAggregationTypes) ? If(__jsonSupportedAggregationTypes as Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : SupportedAggregationType; }
            { _supportedTimeGrainType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray>("supportedTimeGrainTypes"), out var __jsonSupportedTimeGrainTypes) ? If(__jsonSupportedTimeGrainTypes as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (string)(__p is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null))))() : null : SupportedTimeGrainType; }
            { _fillGapWithZero = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonBoolean>("fillGapWithZero"), out var __jsonFillGapWithZero) ? (bool?)__jsonFillGapWithZero : FillGapWithZero; }
            { _dimension = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray>("dimensions"), out var __jsonDimensions) ? If(__jsonDimensions as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __l) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IMetricDimension[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k) => (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IMetricDimension)(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.MetricDimension.FromJson(__k)))))() : null : Dimension; }
            { _enableRegionalMdmAccount = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("enableRegionalMdmAccount"), out var __jsonEnableRegionalMdmAccount) ? (string)__jsonEnableRegionalMdmAccount : (string)EnableRegionalMdmAccount; }
            { _sourceMdmAccount = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("sourceMdmAccount"), out var __jsonSourceMdmAccount) ? (string)__jsonSourceMdmAccount : (string)SourceMdmAccount; }
            { _sourceMdmNamespace = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("sourceMdmNamespace"), out var __jsonSourceMdmNamespace) ? (string)__jsonSourceMdmNamespace : (string)SourceMdmNamespace; }
            AfterFromJson(json);
        }
Exemple #8
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of <see cref="PrivateCloudProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal PrivateCloudProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __privateCloudUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.PrivateCloudUpdateProperties(json);
            { _circuit = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject>("circuit"), out var __jsonCircuit) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.Circuit.FromJson(__jsonCircuit) : Circuit; }
            { _endpoint = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject>("endpoints"), out var __jsonEndpoints) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.Endpoints.FromJson(__jsonEndpoints) : Endpoint; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _networkBlock = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("networkBlock"), out var __jsonNetworkBlock) ? (string)__jsonNetworkBlock : (string)NetworkBlock; }
            { _managementNetwork = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("managementNetwork"), out var __jsonManagementNetwork) ? (string)__jsonManagementNetwork : (string)ManagementNetwork; }
            { _provisioningNetwork = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("provisioningNetwork"), out var __jsonProvisioningNetwork) ? (string)__jsonProvisioningNetwork : (string)ProvisioningNetwork; }
            { _vmotionNetwork = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("vmotionNetwork"), out var __jsonVmotionNetwork) ? (string)__jsonVmotionNetwork : (string)VmotionNetwork; }
            { _vcenterPassword = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("vcenterPassword"), out var __jsonVcenterPassword) ? (string)__jsonVcenterPassword : (string)VcenterPassword; }
            { _nsxtPassword = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("nsxtPassword"), out var __jsonNsxtPassword) ? (string)__jsonNsxtPassword : (string)NsxtPassword; }
            { _vcenterCertificateThumbprint = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("vcenterCertificateThumbprint"), out var __jsonVcenterCertificateThumbprint) ? (string)__jsonVcenterCertificateThumbprint : (string)VcenterCertificateThumbprint; }
            { _nsxtCertificateThumbprint = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("nsxtCertificateThumbprint"), out var __jsonNsxtCertificateThumbprint) ? (string)__jsonNsxtCertificateThumbprint : (string)NsxtCertificateThumbprint; }
            { _externalCloudLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray>("externalCloudLinks"), out var __jsonExternalCloudLinks) ? If(__jsonExternalCloudLinks as Microsoft.Azure.PowerShell.Cmdlets.VMware.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.VMware.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : ExternalCloudLink; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of <see cref="ScriptExecutionProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ScriptExecutionProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _scriptCmdletId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("scriptCmdletId"), out var __jsonScriptCmdletId) ? (string)__jsonScriptCmdletId : (string)ScriptCmdletId; }
            { _parameter = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray>("parameters"), out var __jsonParameters) ? If(__jsonParameters as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IScriptExecutionParameter[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IScriptExecutionParameter)(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.ScriptExecutionParameter.FromJson(__u)))))() : null : Parameter; }
            { _hiddenParameter = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray>("hiddenParameters"), out var __jsonHiddenParameters) ? If(__jsonHiddenParameters as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IScriptExecutionParameter[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IScriptExecutionParameter)(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.ScriptExecutionParameter.FromJson(__p)))))() : null : HiddenParameter; }
            { _failureReason = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("failureReason"), out var __jsonFailureReason) ? (string)__jsonFailureReason : (string)FailureReason; }
            { _timeout = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("timeout"), out var __jsonTimeout) ? (string)__jsonTimeout : (string)Timeout; }
            { _retention = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("retention"), out var __jsonRetention) ? (string)__jsonRetention : (string)Retention; }
            { _submittedAt = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("submittedAt"), out var __jsonSubmittedAt) ? global::System.DateTime.TryParse((string)__jsonSubmittedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonSubmittedAtValue) ? __jsonSubmittedAtValue : SubmittedAt : SubmittedAt; }
            { _startedAt = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("startedAt"), out var __jsonStartedAt) ? global::System.DateTime.TryParse((string)__jsonStartedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartedAtValue) ? __jsonStartedAtValue : StartedAt : StartedAt; }
            { _finishedAt = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("finishedAt"), out var __jsonFinishedAt) ? global::System.DateTime.TryParse((string)__jsonFinishedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonFinishedAtValue) ? __jsonFinishedAtValue : FinishedAt : FinishedAt; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _output = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray>("output"), out var __jsonOutput) ? If(__jsonOutput as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __l) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k) => (string)(__k is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __j ? (string)(__j.ToString()) : null))))() : null : Output; }
            { _namedOutput = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject>("namedOutputs"), out var __jsonNamedOutputs) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.ScriptExecutionPropertiesNamedOutputs.FromJson(__jsonNamedOutputs) : NamedOutput; }
            { _information = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray>("information"), out var __jsonInformation) ? If(__jsonInformation as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __g) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f) => (string)(__f is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __e ? (string)(__e.ToString()) : null))))() : null : Information; }
            { _warning = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray>("warnings"), out var __jsonWarnings) ? If(__jsonWarnings as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __b) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__b, (__a) => (string)(__a is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString ___z ? (string)(___z.ToString()) : null))))() : null : Warning; }
            { _error = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray>("errors"), out var __jsonErrors) ? If(__jsonErrors as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var ___w) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(___w, (___v) => (string)(___v is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString ___u ? (string)(___u.ToString()) : null))))() : null : Error; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of <see cref="VMwareIdentity" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal VMwareIdentity(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _subscriptionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId; }
            { _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location; }
            { _resourceGroupName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName; }
            { _privateCloudName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("privateCloudName"), out var __jsonPrivateCloudName) ? (string)__jsonPrivateCloudName : (string)PrivateCloudName; }
            { _clusterName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("clusterName"), out var __jsonClusterName) ? (string)__jsonClusterName : (string)ClusterName; }
            { _datastoreName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("datastoreName"), out var __jsonDatastoreName) ? (string)__jsonDatastoreName : (string)DatastoreName; }
            { _hcxEnterpriseSiteName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("hcxEnterpriseSiteName"), out var __jsonHcxEnterpriseSiteName) ? (string)__jsonHcxEnterpriseSiteName : (string)HcxEnterpriseSiteName; }
            { _authorizationName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("authorizationName"), out var __jsonAuthorizationName) ? (string)__jsonAuthorizationName : (string)AuthorizationName; }
            { _globalReachConnectionName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("globalReachConnectionName"), out var __jsonGlobalReachConnectionName) ? (string)__jsonGlobalReachConnectionName : (string)GlobalReachConnectionName; }
            { _segmentId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("segmentId"), out var __jsonSegmentId) ? (string)__jsonSegmentId : (string)SegmentId; }
            { _dhcpId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("dhcpId"), out var __jsonDhcpId) ? (string)__jsonDhcpId : (string)DhcpId; }
            { _gatewayId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("gatewayId"), out var __jsonGatewayId) ? (string)__jsonGatewayId : (string)GatewayId; }
            { _portMirroringId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("portMirroringId"), out var __jsonPortMirroringId) ? (string)__jsonPortMirroringId : (string)PortMirroringId; }
            { _vMGroupId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("vmGroupId"), out var __jsonVMGroupId) ? (string)__jsonVMGroupId : (string)VMGroupId; }
            { _virtualMachineId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("virtualMachineId"), out var __jsonVirtualMachineId) ? (string)__jsonVirtualMachineId : (string)VirtualMachineId; }
            { _dnsServiceId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("dnsServiceId"), out var __jsonDnsServiceId) ? (string)__jsonDnsServiceId : (string)DnsServiceId; }
            { _dnsZoneId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("dnsZoneId"), out var __jsonDnsZoneId) ? (string)__jsonDnsZoneId : (string)DnsZoneId; }
            { _publicIPId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("publicIPId"), out var __jsonPublicIPId) ? (string)__jsonPublicIPId : (string)PublicIPId; }
            { _cloudLinkName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("cloudLinkName"), out var __jsonCloudLinkName) ? (string)__jsonCloudLinkName : (string)CloudLinkName; }
            { _addonName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("addonName"), out var __jsonAddonName) ? (string)__jsonAddonName : (string)AddonName; }
            { _placementPolicyName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("placementPolicyName"), out var __jsonPlacementPolicyName) ? (string)__jsonPlacementPolicyName : (string)PlacementPolicyName; }
            { _scriptPackageName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("scriptPackageName"), out var __jsonScriptPackageName) ? (string)__jsonScriptPackageName : (string)ScriptPackageName; }
            { _scriptCmdletName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("scriptCmdletName"), out var __jsonScriptCmdletName) ? (string)__jsonScriptCmdletName : (string)ScriptCmdletName; }
            { _scriptExecutionName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("scriptExecutionName"), out var __jsonScriptExecutionName) ? (string)__jsonScriptExecutionName : (string)ScriptExecutionName; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of <see cref="PrivateCloudProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal PrivateCloudProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __privateCloudUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20200320.PrivateCloudUpdateProperties(json);
            { _circuit = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject>("circuit"), out var __jsonCircuit) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20200320.Circuit.FromJson(__jsonCircuit) : Circuit; }
            { _endpoint = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject>("endpoints"), out var __jsonEndpoints) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20200320.Endpoints.FromJson(__jsonEndpoints) : Endpoint; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _networkBlock = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("networkBlock"), out var __jsonNetworkBlock) ? (string)__jsonNetworkBlock : (string)NetworkBlock; }
            { _managementNetwork = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("managementNetwork"), out var __jsonManagementNetwork) ? (string)__jsonManagementNetwork : (string)ManagementNetwork; }
            { _provisioningNetwork = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("provisioningNetwork"), out var __jsonProvisioningNetwork) ? (string)__jsonProvisioningNetwork : (string)ProvisioningNetwork; }
            { _vmotionNetwork = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("vmotionNetwork"), out var __jsonVmotionNetwork) ? (string)__jsonVmotionNetwork : (string)VmotionNetwork; }
            { _vcenterPassword = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("vcenterPassword"), out var __jsonVcenterPassword) ? (string)__jsonVcenterPassword : (string)VcenterPassword; }
            { _nsxtPassword = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("nsxtPassword"), out var __jsonNsxtPassword) ? (string)__jsonNsxtPassword : (string)NsxtPassword; }
            { _vcenterCertificateThumbprint = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("vcenterCertificateThumbprint"), out var __jsonVcenterCertificateThumbprint) ? (string)__jsonVcenterCertificateThumbprint : (string)VcenterCertificateThumbprint; }
            { _nsxtCertificateThumbprint = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString>("nsxtCertificateThumbprint"), out var __jsonNsxtCertificateThumbprint) ? (string)__jsonNsxtCertificateThumbprint : (string)NsxtCertificateThumbprint; }
            AfterFromJson(json);
        }