/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.Account" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal Account(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.AccountPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountSku)content.GetValueForProperty("Sku", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).Sku, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.AccountSkuTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).IdentityPrincipalId = (string)content.GetValueForProperty("IdentityPrincipalId", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).IdentityPrincipalId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).IdentityTenantId = (string)content.GetValueForProperty("IdentityTenantId", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.Type?)content.GetValueForProperty("IdentityType", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.Type.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataCreatedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataCreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataCreatedBy = (string)content.GetValueForProperty("SystemDataCreatedBy", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataCreatedBy, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.CreatedByType?)content.GetValueForProperty("SystemDataCreatedByType", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.CreatedByType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataLastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataLastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataLastModifiedBy = (string)content.GetValueForProperty("SystemDataLastModifiedBy", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataLastModifiedBy, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.LastModifiedByType?)content.GetValueForProperty("SystemDataLastModifiedByType", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.LastModifiedByType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IIdentity)content.GetValueForProperty("Identity", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Identity, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IdentityTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ISystemData)content.GetValueForProperty("SystemData", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Location = (string)content.GetValueForProperty("Location", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceTags)content.GetValueForProperty("Tag", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.TrackedResourceTagsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Type, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CloudConnector = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ICloudConnectors)content.GetValueForProperty("CloudConnector", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CloudConnector, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.CloudConnectorsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResource = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IManagedResources)content.GetValueForProperty("ManagedResource", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResource, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ManagedResourcesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.ProvisioningState?)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.ProvisioningState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.Name?)content.GetValueForProperty("SkuName", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.Name.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).Endpoint = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountEndpoints)content.GetValueForProperty("Endpoint", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).Endpoint, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.AccountEndpointsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CreatedAt = (global::System.DateTime?)content.GetValueForProperty("CreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CreatedBy = (string)content.GetValueForProperty("CreatedBy", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CreatedBy, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CreatedByObjectId = (string)content.GetValueForProperty("CreatedByObjectId", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CreatedByObjectId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).FriendlyName = (string)content.GetValueForProperty("FriendlyName", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).FriendlyName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceGroupName = (string)content.GetValueForProperty("ManagedResourceGroupName", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceGroupName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IPrivateEndpointConnection[])content.GetValueForProperty("PrivateEndpointConnection", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IPrivateEndpointConnection>(__y, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.PrivateEndpointConnectionTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.PublicNetworkAccess?)content.GetValueForProperty("PublicNetworkAccess", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.PublicNetworkAccess.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceGroup = (string)content.GetValueForProperty("ManagedResourceGroup", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceGroup, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceStorageAccount = (string)content.GetValueForProperty("ManagedResourceStorageAccount", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceStorageAccount, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).SkuCapacity = (int?)content.GetValueForProperty("SkuCapacity", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).SkuCapacity, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CloudConnectorAwsExternalId = (string)content.GetValueForProperty("CloudConnectorAwsExternalId", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CloudConnectorAwsExternalId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).EndpointCatalog = (string)content.GetValueForProperty("EndpointCatalog", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).EndpointCatalog, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).EndpointGuardian = (string)content.GetValueForProperty("EndpointGuardian", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).EndpointGuardian, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).EndpointScan = (string)content.GetValueForProperty("EndpointScan", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).EndpointScan, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceEventHubNamespace = (string)content.GetValueForProperty("ManagedResourceEventHubNamespace", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceEventHubNamespace, global::System.Convert.ToString); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ApplicationStackResource" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal ApplicationStackResource(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationStackResourceInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationStack)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationStackResourceInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ApplicationStackTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Kind")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Kind = (string)content.GetValueForProperty("Kind", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Kind, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Type, global::System.Convert.ToString); } if (content.Contains("PropertiesName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationStackResourceInternal) this).PropertiesName = (string)content.GetValueForProperty("PropertiesName", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationStackResourceInternal) this).PropertiesName, global::System.Convert.ToString); } if (content.Contains("Display")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationStackResourceInternal) this).Display = (string)content.GetValueForProperty("Display", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationStackResourceInternal) this).Display, global::System.Convert.ToString); } if (content.Contains("Dependency")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationStackResourceInternal) this).Dependency = (string)content.GetValueForProperty("Dependency", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationStackResourceInternal) this).Dependency, global::System.Convert.ToString); } if (content.Contains("MajorVersion")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationStackResourceInternal) this).MajorVersion = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStackMajorVersion[])content.GetValueForProperty("MajorVersion", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationStackResourceInternal) this).MajorVersion, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStackMajorVersion>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.StackMajorVersionTypeConverter.ConvertFrom)); } if (content.Contains("Framework")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationStackResourceInternal) this).Framework = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationStack[])content.GetValueForProperty("Framework", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationStackResourceInternal) this).Framework, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationStack>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ApplicationStackTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.MoveResourceStatus" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal MoveResourceStatus(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("JobStatus")) { ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).JobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IJobStatus)content.GetValueForProperty("JobStatus", ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).JobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.JobStatusTypeConverter.ConvertFrom); } if (content.Contains("Error")) { ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceError)content.GetValueForProperty("Error", ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.MoveResourceErrorTypeConverter.ConvertFrom); } if (content.Contains("MoveState")) { ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).MoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?)content.GetValueForProperty("MoveState", ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).MoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom); } if (content.Contains("JobStatusJobName")) { ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).JobStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?)content.GetValueForProperty("JobStatusJobName", ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).JobStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom); } if (content.Contains("JobStatusJobProgress")) { ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).JobStatusJobProgress = (string)content.GetValueForProperty("JobStatusJobProgress", ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).JobStatusJobProgress, global::System.Convert.ToString); } if (content.Contains("ErrorProperty")) { ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceErrorBody)content.GetValueForProperty("ErrorProperty", ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.MoveResourceErrorBodyTypeConverter.ConvertFrom); } if (content.Contains("Code")) { ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).Code = (string)content.GetValueForProperty("Code", ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).Message = (string)content.GetValueForProperty("Message", ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).Target = (string)content.GetValueForProperty("Target", ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceErrorBody[])content.GetValueForProperty("Detail", ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceStatusInternal) this).Detail, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.IMoveResourceErrorBody>(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20210801.MoveResourceErrorBodyTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ServiceSpecification" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal ServiceSpecification(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("MetricSpecification")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IServiceSpecificationInternal) this).MetricSpecification = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecification[])content.GetValueForProperty("MetricSpecification", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IServiceSpecificationInternal) this).MetricSpecification, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecification>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.MetricSpecificationTypeConverter.ConvertFrom)); } if (content.Contains("LogSpecification")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IServiceSpecificationInternal) this).LogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ILogSpecification[])content.GetValueForProperty("LogSpecification", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IServiceSpecificationInternal) this).LogSpecification, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ILogSpecification>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.LogSpecificationTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal CloudError(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).Error = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError)content.GetValueForProperty("Error", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).Error, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiErrorTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).Innererror = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError)content.GetValueForProperty("Innererror", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).Innererror, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InnerErrorTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase[])content.GetValueForProperty("Detail", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).Detail, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase>(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiErrorBaseTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).Code = (string)content.GetValueForProperty("Code", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).Code, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).Message = (string)content.GetValueForProperty("Message", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).Message, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).Target = (string)content.GetValueForProperty("Target", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).Target, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).InnererrorExceptiontype = (string)content.GetValueForProperty("InnererrorExceptiontype", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).InnererrorExceptiontype, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).InnererrorErrordetail = (string)content.GetValueForProperty("InnererrorErrordetail", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal) this).InnererrorErrordetail, global::System.Convert.ToString); AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.DeploymentLocations" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal DeploymentLocations(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDeploymentLocationsInternal) this).Location = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IGeoRegion[])content.GetValueForProperty("Location", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDeploymentLocationsInternal) this).Location, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IGeoRegion>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.GeoRegionTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDeploymentLocationsInternal) this).HostingEnvironment = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServiceEnvironment[])content.GetValueForProperty("HostingEnvironment", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDeploymentLocationsInternal) this).HostingEnvironment, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServiceEnvironment>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.AppServiceEnvironmentTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDeploymentLocationsInternal) this).HostingEnvironmentDeploymentInfo = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHostingEnvironmentDeploymentInfo[])content.GetValueForProperty("HostingEnvironmentDeploymentInfo", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDeploymentLocationsInternal) this).HostingEnvironmentDeploymentInfo, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHostingEnvironmentDeploymentInfo>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.HostingEnvironmentDeploymentInfoTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.PrivateCloudProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal PrivateCloudProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).Circuit = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.ICircuit)content.GetValueForProperty("Circuit", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).Circuit, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.CircuitTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).Endpoint = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IEndpoints)content.GetValueForProperty("Endpoint", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).Endpoint, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.EndpointsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Support.PrivateCloudProvisioningState?)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.VMware.Support.PrivateCloudProvisioningState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).NetworkBlock = (string)content.GetValueForProperty("NetworkBlock", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).NetworkBlock, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).ManagementNetwork = (string)content.GetValueForProperty("ManagementNetwork", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).ManagementNetwork, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).ProvisioningNetwork = (string)content.GetValueForProperty("ProvisioningNetwork", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).ProvisioningNetwork, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).VmotionNetwork = (string)content.GetValueForProperty("VmotionNetwork", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).VmotionNetwork, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).VcenterPassword = (string)content.GetValueForProperty("VcenterPassword", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).VcenterPassword, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).NsxtPassword = (string)content.GetValueForProperty("NsxtPassword", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).NsxtPassword, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).VcenterCertificateThumbprint = (string)content.GetValueForProperty("VcenterCertificateThumbprint", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).VcenterCertificateThumbprint, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).NsxtCertificateThumbprint = (string)content.GetValueForProperty("NsxtCertificateThumbprint", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).NsxtCertificateThumbprint, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).ExternalCloudLink = (string[])content.GetValueForProperty("ExternalCloudLink", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).ExternalCloudLink, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudUpdatePropertiesInternal) this).ManagementClusterSize = (int?)content.GetValueForProperty("ManagementClusterSize", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudUpdatePropertiesInternal) this).ManagementClusterSize, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudUpdatePropertiesInternal) this).ManagementClusterProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Support.ClusterProvisioningState?)content.GetValueForProperty("ManagementClusterProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudUpdatePropertiesInternal) this).ManagementClusterProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.VMware.Support.ClusterProvisioningState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudUpdatePropertiesInternal) this).ManagementClusterId = (int?)content.GetValueForProperty("ManagementClusterId", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudUpdatePropertiesInternal) this).ManagementClusterId, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudUpdatePropertiesInternal) this).ManagementClusterHost = (string[])content.GetValueForProperty("ManagementClusterHost", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudUpdatePropertiesInternal) this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudUpdatePropertiesInternal) this).ManagementCluster = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.ICommonClusterProperties)content.GetValueForProperty("ManagementCluster", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudUpdatePropertiesInternal) this).ManagementCluster, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.CommonClusterPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudUpdatePropertiesInternal) this).Internet = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Support.InternetEnum?)content.GetValueForProperty("Internet", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudUpdatePropertiesInternal) this).Internet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Support.InternetEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudUpdatePropertiesInternal) this).IdentitySource = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IIdentitySource[])content.GetValueForProperty("IdentitySource", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudUpdatePropertiesInternal) this).IdentitySource, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IIdentitySource>(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IdentitySourceTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).CircuitPrimarySubnet = (string)content.GetValueForProperty("CircuitPrimarySubnet", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).CircuitPrimarySubnet, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).CircuitSecondarySubnet = (string)content.GetValueForProperty("CircuitSecondarySubnet", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).CircuitSecondarySubnet, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).EndpointNsxtManager = (string)content.GetValueForProperty("EndpointNsxtManager", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).EndpointNsxtManager, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).EndpointVcsa = (string)content.GetValueForProperty("EndpointVcsa", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).EndpointVcsa, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).CircuitExpressRouteId = (string)content.GetValueForProperty("CircuitExpressRouteId", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).CircuitExpressRouteId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).CircuitExpressRoutePrivatePeeringId = (string)content.GetValueForProperty("CircuitExpressRoutePrivatePeeringId", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).CircuitExpressRoutePrivatePeeringId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).EndpointHcxCloudManager = (string)content.GetValueForProperty("EndpointHcxCloudManager", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20210601.IPrivateCloudPropertiesInternal) this).EndpointHcxCloudManager, global::System.Convert.ToString); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicy" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal ManagementPolicy(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.IResourceInternal) this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.IResourceInternal) this).Type, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.IResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.IResourceInternal) this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyInternal) this).Policy = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicySchema)content.GetValueForProperty("Policy", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyInternal) this).Policy, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicySchemaTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyInternal) this).LastModifiedTime = (global::System.DateTime?)content.GetValueForProperty("LastModifiedTime", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyInternal) this).LastModifiedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyInternal) this).PolicyRule = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyRule[])content.GetValueForProperty("PolicyRule", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyInternal) this).PolicyRule, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyRule>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyRuleTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview.AccessPolicyMutableProperties" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal AccessPolicyMutableProperties(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview.IAccessPolicyMutablePropertiesInternal) this).Description = (string)content.GetValueForProperty("Description", ((Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview.IAccessPolicyMutablePropertiesInternal) this).Description, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview.IAccessPolicyMutablePropertiesInternal) this).Role = (Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Support.AccessPolicyRole[])content.GetValueForProperty("Role", ((Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview.IAccessPolicyMutablePropertiesInternal) this).Role, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Support.AccessPolicyRole>(__y, Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Support.AccessPolicyRole.CreateFrom)); AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.HybridConnectionCollection" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal HybridConnectionCollection(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Value")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHybridConnectionCollectionInternal) this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHybridConnection[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHybridConnectionCollectionInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHybridConnection>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.HybridConnectionTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHybridConnectionCollectionInternal) this).NextLink = (string)content.GetValueForProperty("NextLink", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHybridConnectionCollectionInternal) this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.Alert" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal Alert(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.AlertPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Type, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Location = (string)content.GetValueForProperty("Location", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).CustomEmailAddress = (string[])content.GetValueForProperty("CustomEmailAddress", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).Locale = (string)content.GetValueForProperty("Locale", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).Locale, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).SendToOwner = (string)content.GetValueForProperty("SendToOwner", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).SendToOwner, global::System.Convert.ToString); AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.BlobDataSourceProperties" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal BlobDataSourceProperties(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).StorageAccount = (Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IStorageAccount[])content.GetValueForProperty("StorageAccount", ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).StorageAccount, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IStorageAccount>(__y, Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.StorageAccountTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).Container = (string)content.GetValueForProperty("Container", ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).Container, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).PathPattern = (string)content.GetValueForProperty("PathPattern", ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).PathPattern, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).DateFormat = (string)content.GetValueForProperty("DateFormat", ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).DateFormat, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).TimeFormat = (string)content.GetValueForProperty("TimeFormat", ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).TimeFormat, global::System.Convert.ToString); AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.OperationListResult" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal OperationListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IOperationListResultInternal) this).Value = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IOperation[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IOperationListResultInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IOperation>(__y, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.OperationTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.SqlServerDatabaseSystemScanRuleset" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal SqlServerDatabaseSystemScanRuleset(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseScanRulesetProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.SqlServerDatabaseScanRulesetPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IProxyResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IProxyResourceInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IProxyResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IProxyResourceInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IVersionedScanRulesetInternal) this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetType?)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IVersionedScanRulesetInternal) this).Type, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetType.CreateFrom); } if (content.Contains("Status")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IVersionedScanRulesetInternal) this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetStatus?)content.GetValueForProperty("Status", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IVersionedScanRulesetInternal) this).Status, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetStatus.CreateFrom); } if (content.Contains("Version")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IVersionedScanRulesetInternal) this).Version = (int?)content.GetValueForProperty("Version", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IVersionedScanRulesetInternal) this).Version, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Kind")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISystemScanRulesetInternal) this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.DataSourceType)content.GetValueForProperty("Kind", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISystemScanRulesetInternal) this).Kind, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.DataSourceType.CreateFrom); } if (content.Contains("CreatedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).CreatedAt = (global::System.DateTime?)content.GetValueForProperty("CreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).Description = (string)content.GetValueForProperty("Description", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).Description, global::System.Convert.ToString); } if (content.Contains("ExcludedSystemClassification")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).ExcludedSystemClassification = (string[])content.GetValueForProperty("ExcludedSystemClassification", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).ExcludedSystemClassification, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("IncludedCustomClassificationRuleName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).IncludedCustomClassificationRuleName = (string[])content.GetValueForProperty("IncludedCustomClassificationRuleName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).IncludedCustomClassificationRuleName, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("LastModifiedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).LastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("LastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.RecoveryPlanProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal RecoveryPlanProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.ICurrentScenarioDetails)content.GetValueForProperty("CurrentScenario", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.CurrentScenarioDetailsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).AllowedOperation = (string[])content.GetValueForProperty("AllowedOperation", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).CurrentScenarioStatus = (string)content.GetValueForProperty("CurrentScenarioStatus", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).CurrentScenarioStatus, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).CurrentScenarioStatusDescription = (string)content.GetValueForProperty("CurrentScenarioStatusDescription", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).CurrentScenarioStatusDescription, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).FailoverDeploymentModel = (string)content.GetValueForProperty("FailoverDeploymentModel", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).FailoverDeploymentModel, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).FriendlyName = (string)content.GetValueForProperty("FriendlyName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).FriendlyName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanGroup[])content.GetValueForProperty("Group", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).Group, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanGroup>(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.RecoveryPlanGroupTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).LastPlannedFailoverTime = (global::System.DateTime?)content.GetValueForProperty("LastPlannedFailoverTime", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).LastPlannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).LastTestFailoverTime = (global::System.DateTime?)content.GetValueForProperty("LastTestFailoverTime", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).LastTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).LastUnplannedFailoverTime = (global::System.DateTime?)content.GetValueForProperty("LastUnplannedFailoverTime", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).LastUnplannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).PrimaryFabricFriendlyName = (string)content.GetValueForProperty("PrimaryFabricFriendlyName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).PrimaryFabricFriendlyName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).PrimaryFabricId = (string)content.GetValueForProperty("PrimaryFabricId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).PrimaryFabricId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).RecoveryFabricFriendlyName = (string)content.GetValueForProperty("RecoveryFabricFriendlyName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).RecoveryFabricFriendlyName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).RecoveryFabricId = (string)content.GetValueForProperty("RecoveryFabricId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).RecoveryFabricId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).ReplicationProvider = (string[])content.GetValueForProperty("ReplicationProvider", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).ReplicationProvider, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).CurrentScenarioJobId = (string)content.GetValueForProperty("CurrentScenarioJobId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).CurrentScenarioJobId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).CurrentScenarioName = (string)content.GetValueForProperty("CurrentScenarioName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).CurrentScenarioName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).CurrentScenarioStartTime = (global::System.DateTime?)content.GetValueForProperty("CurrentScenarioStartTime", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IRecoveryPlanPropertiesInternal) this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ProcessModuleInfoCollection" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal ProcessModuleInfoCollection(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Value")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IProcessModuleInfoCollectionInternal) this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IProcessModuleInfo[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IProcessModuleInfoCollectionInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IProcessModuleInfo>(__y, Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ProcessModuleInfoTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IProcessModuleInfoCollectionInternal) this).NextLink = (string)content.GetValueForProperty("NextLink", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IProcessModuleInfoCollectionInternal) this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupJob" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal AzureBackupJob(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("ExtendedInfo")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfo)content.GetValueForProperty("ExtendedInfo", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoTypeConverter.ConvertFrom); } if (content.Contains("ActivityId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ActivityId = (string)content.GetValueForProperty("ActivityId", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ActivityId, global::System.Convert.ToString); } if (content.Contains("BackupInstanceFriendlyName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).BackupInstanceFriendlyName = (string)content.GetValueForProperty("BackupInstanceFriendlyName", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).BackupInstanceFriendlyName, global::System.Convert.ToString); } if (content.Contains("BackupInstanceId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).BackupInstanceId = (string)content.GetValueForProperty("BackupInstanceId", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).BackupInstanceId, global::System.Convert.ToString); } if (content.Contains("DataSourceId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).DataSourceId = (string)content.GetValueForProperty("DataSourceId", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).DataSourceId, global::System.Convert.ToString); } if (content.Contains("DataSourceLocation")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).DataSourceLocation = (string)content.GetValueForProperty("DataSourceLocation", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).DataSourceLocation, global::System.Convert.ToString); } if (content.Contains("DataSourceName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).DataSourceName = (string)content.GetValueForProperty("DataSourceName", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).DataSourceName, global::System.Convert.ToString); } if (content.Contains("DataSourceSetName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).DataSourceSetName = (string)content.GetValueForProperty("DataSourceSetName", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).DataSourceSetName, global::System.Convert.ToString); } if (content.Contains("DataSourceType")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).DataSourceType = (string)content.GetValueForProperty("DataSourceType", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).DataSourceType, global::System.Convert.ToString); } if (content.Contains("Duration")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).Duration = (string)content.GetValueForProperty("Duration", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).Duration, global::System.Convert.ToString); } if (content.Contains("EndTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).EndTime = (global::System.DateTime?)content.GetValueForProperty("EndTime", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ErrorDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError[])content.GetValueForProperty("ErrorDetail", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError>(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorTypeConverter.ConvertFrom)); } if (content.Contains("IsUserTriggered")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).IsUserTriggered = (bool)content.GetValueForProperty("IsUserTriggered", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).IsUserTriggered, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Operation")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).Operation = (string)content.GetValueForProperty("Operation", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).Operation, global::System.Convert.ToString); } if (content.Contains("OperationCategory")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).OperationCategory = (string)content.GetValueForProperty("OperationCategory", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).OperationCategory, global::System.Convert.ToString); } if (content.Contains("PolicyId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).PolicyId = (string)content.GetValueForProperty("PolicyId", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).PolicyId, global::System.Convert.ToString); } if (content.Contains("PolicyName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).PolicyName = (string)content.GetValueForProperty("PolicyName", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).PolicyName, global::System.Convert.ToString); } if (content.Contains("ProgressEnabled")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ProgressEnabled = (bool)content.GetValueForProperty("ProgressEnabled", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ProgressEnabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ProgressUrl")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ProgressUrl = (string)content.GetValueForProperty("ProgressUrl", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ProgressUrl, global::System.Convert.ToString); } if (content.Contains("RestoreType")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).RestoreType = (string)content.GetValueForProperty("RestoreType", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).RestoreType, global::System.Convert.ToString); } if (content.Contains("SourceResourceGroup")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).SourceResourceGroup = (string)content.GetValueForProperty("SourceResourceGroup", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).SourceResourceGroup, global::System.Convert.ToString); } if (content.Contains("SourceSubscriptionId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).SourceSubscriptionId = (string)content.GetValueForProperty("SourceSubscriptionId", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).SourceSubscriptionId, global::System.Convert.ToString); } if (content.Contains("StartTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).StartTime = (global::System.DateTime)content.GetValueForProperty("StartTime", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Status")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).Status = (string)content.GetValueForProperty("Status", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).Status, global::System.Convert.ToString); } if (content.Contains("SubscriptionId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).SubscriptionId = (string)content.GetValueForProperty("SubscriptionId", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("SupportedAction")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).SupportedAction = (string[])content.GetValueForProperty("SupportedAction", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).SupportedAction, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("VaultName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).VaultName = (string)content.GetValueForProperty("VaultName", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).VaultName, global::System.Convert.ToString); } if (content.Contains("Etag")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).Etag = (string)content.GetValueForProperty("Etag", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).Etag, global::System.Convert.ToString); } if (content.Contains("SourceDataStoreName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).SourceDataStoreName = (string)content.GetValueForProperty("SourceDataStoreName", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).SourceDataStoreName, global::System.Convert.ToString); } if (content.Contains("DestinationDataStoreName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).DestinationDataStoreName = (string)content.GetValueForProperty("DestinationDataStoreName", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).DestinationDataStoreName, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSourceRecoverPoint")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails)content.GetValueForProperty("ExtendedInfoSourceRecoverPoint", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoTargetRecoverPoint")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails)content.GetValueForProperty("ExtendedInfoTargetRecoverPoint", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoAdditionalDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails)content.GetValueForProperty("ExtendedInfoAdditionalDetail", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoBackupInstanceState")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfoBackupInstanceState = (string)content.GetValueForProperty("ExtendedInfoBackupInstanceState", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoDataTransferredInByte")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfoDataTransferredInByte = (double?)content.GetValueForProperty("ExtendedInfoDataTransferredInByte", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfoDataTransferredInByte, (__y) => (double)global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("ExtendedInfoRecoveryDestination")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfoRecoveryDestination = (string)content.GetValueForProperty("ExtendedInfoRecoveryDestination", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSubTask")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[])content.GetValueForProperty("ExtendedInfoSubTask", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask>(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobSubTaskTypeConverter.ConvertFrom)); } if (content.Contains("SourceRecoverPointRecoveryPointId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).SourceRecoverPointRecoveryPointId = (string)content.GetValueForProperty("SourceRecoverPointRecoveryPointId", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("SourceRecoverPointRecoveryPointTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?)content.GetValueForProperty("SourceRecoverPointRecoveryPointTime", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("TargetRecoverPointRecoveryPointId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).TargetRecoverPointRecoveryPointId = (string)content.GetValueForProperty("TargetRecoverPointRecoveryPointId", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("TargetRecoverPointRecoveryPointTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?)content.GetValueForProperty("TargetRecoverPointRecoveryPointTime", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal) this).TargetRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.RoleManagementPolicyNotificationRule" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal RoleManagementPolicyNotificationRule(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("NotificationType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyNotificationRuleInternal) this).NotificationType = (Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.NotificationDeliveryMechanism?)content.GetValueForProperty("NotificationType", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyNotificationRuleInternal) this).NotificationType, Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.NotificationDeliveryMechanism.CreateFrom); } if (content.Contains("NotificationLevel")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyNotificationRuleInternal) this).NotificationLevel = (Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.NotificationLevel?)content.GetValueForProperty("NotificationLevel", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyNotificationRuleInternal) this).NotificationLevel, Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.NotificationLevel.CreateFrom); } if (content.Contains("RecipientType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyNotificationRuleInternal) this).RecipientType = (Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RecipientType?)content.GetValueForProperty("RecipientType", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyNotificationRuleInternal) this).RecipientType, Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RecipientType.CreateFrom); } if (content.Contains("NotificationRecipient")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyNotificationRuleInternal) this).NotificationRecipient = (string[])content.GetValueForProperty("NotificationRecipient", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyNotificationRuleInternal) this).NotificationRecipient, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("IsDefaultRecipientsEnabled")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyNotificationRuleInternal) this).IsDefaultRecipientsEnabled = (bool?)content.GetValueForProperty("IsDefaultRecipientsEnabled", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyNotificationRuleInternal) this).IsDefaultRecipientsEnabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("TargetCaller")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).TargetCaller = (string)content.GetValueForProperty("TargetCaller", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).TargetCaller, global::System.Convert.ToString); } if (content.Contains("TargetOperation")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).TargetOperation = (string[])content.GetValueForProperty("TargetOperation", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).TargetOperation, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("TargetLevel")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).TargetLevel = (string)content.GetValueForProperty("TargetLevel", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).TargetLevel, global::System.Convert.ToString); } if (content.Contains("TargetObject")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).TargetObject = (string[])content.GetValueForProperty("TargetObject", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).TargetObject, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("TargetInheritableSetting")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).TargetInheritableSetting = (string[])content.GetValueForProperty("TargetInheritableSetting", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).TargetInheritableSetting, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("TargetEnforcedSetting")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).TargetEnforcedSetting = (string[])content.GetValueForProperty("TargetEnforcedSetting", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).TargetEnforcedSetting, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("Target")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).Target = (Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleTarget)content.GetValueForProperty("Target", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).Target, Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.RoleManagementPolicyRuleTargetTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("RuleType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).RuleType = (Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RoleManagementPolicyRuleType)content.GetValueForProperty("RuleType", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRuleInternal) this).RuleType, Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RoleManagementPolicyRuleType.CreateFrom); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.PrivateLinkResourcesListResult" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal PrivateLinkResourcesListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IPrivateLinkResourcesListResultInternal) this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IPrivateLinkResource[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IPrivateLinkResourcesListResultInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IPrivateLinkResource>(__y, Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.PrivateLinkResourceTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.OperationListResult" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal OperationListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Value")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IOperationListResultInternal) this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IOperationsDefinition[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IOperationListResultInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IOperationsDefinition>(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.OperationsDefinitionTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IOperationListResultInternal) this).NextLink = (string)content.GetValueForProperty("NextLink", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IOperationListResultInternal) this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ConfigurationFilters" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal ConfigurationFilters(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("HierarchyInformation")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurationFiltersInternal) this).HierarchyInformation = (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IHierarchyInformation)content.GetValueForProperty("HierarchyInformation", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurationFiltersInternal) this).HierarchyInformation, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.HierarchyInformationTypeConverter.ConvertFrom); } if (content.Contains("FilterableProperty")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurationFiltersInternal) this).FilterableProperty = (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IFilterableProperty[])content.GetValueForProperty("FilterableProperty", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurationFiltersInternal) this).FilterableProperty, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IFilterableProperty>(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.FilterablePropertyTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.ScriptExecution" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal ScriptExecution(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.ScriptExecutionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IResourceInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IResourceInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IResourceInternal) this).Type, global::System.Convert.ToString); } if (content.Contains("ScriptCmdletId")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).ScriptCmdletId = (string)content.GetValueForProperty("ScriptCmdletId", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).ScriptCmdletId, global::System.Convert.ToString); } if (content.Contains("Parameter")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionParameter[])content.GetValueForProperty("Parameter", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Parameter, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionParameter>(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.ScriptExecutionParameterTypeConverter.ConvertFrom)); } if (content.Contains("HiddenParameter")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).HiddenParameter = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionParameter[])content.GetValueForProperty("HiddenParameter", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).HiddenParameter, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionParameter>(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.ScriptExecutionParameterTypeConverter.ConvertFrom)); } if (content.Contains("FailureReason")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).FailureReason = (string)content.GetValueForProperty("FailureReason", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).FailureReason, global::System.Convert.ToString); } if (content.Contains("Timeout")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Timeout = (string)content.GetValueForProperty("Timeout", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Timeout, global::System.Convert.ToString); } if (content.Contains("Retention")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Retention = (string)content.GetValueForProperty("Retention", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Retention, global::System.Convert.ToString); } if (content.Contains("SubmittedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).SubmittedAt = (global::System.DateTime?)content.GetValueForProperty("SubmittedAt", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).SubmittedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("StartedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).StartedAt = (global::System.DateTime?)content.GetValueForProperty("StartedAt", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).StartedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("FinishedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).FinishedAt = (global::System.DateTime?)content.GetValueForProperty("FinishedAt", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).FinishedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Support.ScriptExecutionProvisioningState?)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.VMware.Support.ScriptExecutionProvisioningState.CreateFrom); } if (content.Contains("Output")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Output = (string[])content.GetValueForProperty("Output", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Output, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("NamedOutput")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).NamedOutput = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionPropertiesNamedOutputs)content.GetValueForProperty("NamedOutput", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).NamedOutput, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.ScriptExecutionPropertiesNamedOutputsTypeConverter.ConvertFrom); } if (content.Contains("Information")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Information = (string[])content.GetValueForProperty("Information", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Information, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("Warning")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Warning = (string[])content.GetValueForProperty("Warning", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Warning, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("Error")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Error = (string[])content.GetValueForProperty("Error", ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionInternal) this).Error, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.BackupRequestProperties" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal BackupRequestProperties(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupSchedule = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupSchedule)content.GetValueForProperty("BackupSchedule", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupSchedule, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.BackupScheduleTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupName = (string)content.GetValueForProperty("BackupName", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).Database = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDatabaseBackupSetting[])content.GetValueForProperty("Database", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).Database, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDatabaseBackupSetting>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.DatabaseBackupSettingTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).Enabled = (bool?)content.GetValueForProperty("Enabled", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).Enabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).StorageAccountUrl = (string)content.GetValueForProperty("StorageAccountUrl", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).StorageAccountUrl, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupScheduleFrequencyUnit = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FrequencyUnit)content.GetValueForProperty("BackupScheduleFrequencyUnit", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupScheduleFrequencyUnit, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FrequencyUnit.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupScheduleStartTime = (global::System.DateTime?)content.GetValueForProperty("BackupScheduleStartTime", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupScheduleStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupScheduleFrequencyInterval = (int)content.GetValueForProperty("BackupScheduleFrequencyInterval", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupScheduleFrequencyInterval, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupScheduleKeepAtLeastOneBackup = (bool)content.GetValueForProperty("BackupScheduleKeepAtLeastOneBackup", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupScheduleKeepAtLeastOneBackup, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupScheduleLastExecutionTime = (global::System.DateTime?)content.GetValueForProperty("BackupScheduleLastExecutionTime", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupScheduleLastExecutionTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupScheduleRetentionPeriodInDay = (int)content.GetValueForProperty("BackupScheduleRetentionPeriodInDay", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IBackupRequestPropertiesInternal) this).BackupScheduleRetentionPeriodInDay, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.PerfMonResponse" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal PerfMonResponse(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Data")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).Data = (Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonSet)content.GetValueForProperty("Data", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).Data, Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.PerfMonSetTypeConverter.ConvertFrom); } if (content.Contains("Code")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).Code = (string)content.GetValueForProperty("Code", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).Message = (string)content.GetValueForProperty("Message", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).Message, global::System.Convert.ToString); } if (content.Contains("DataName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).DataName = (string)content.GetValueForProperty("DataName", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).DataName, global::System.Convert.ToString); } if (content.Contains("DataStartTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).DataStartTime = (global::System.DateTime?)content.GetValueForProperty("DataStartTime", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).DataStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("DataEndTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).DataEndTime = (global::System.DateTime?)content.GetValueForProperty("DataEndTime", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).DataEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("DataTimeGrain")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).DataTimeGrain = (string)content.GetValueForProperty("DataTimeGrain", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).DataTimeGrain, global::System.Convert.ToString); } if (content.Contains("DataValue")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).DataValue = (Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonSample[])content.GetValueForProperty("DataValue", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonResponseInternal) this).DataValue, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPerfMonSample>(__y, Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.PerfMonSampleTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfo" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal JobExtendedInfo(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).SourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails)content.GetValueForProperty("SourceRecoverPoint", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).SourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).TargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails)content.GetValueForProperty("TargetRecoverPoint", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).TargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails)content.GetValueForProperty("AdditionalDetail", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).BackupInstanceState = (string)content.GetValueForProperty("BackupInstanceState", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).BackupInstanceState, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).DataTransferredInByte = (double?)content.GetValueForProperty("DataTransferredInByte", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).DataTransferredInByte, (__y) => (double)global::System.Convert.ChangeType(__y, typeof(double))); ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).RecoveryDestination = (string)content.GetValueForProperty("RecoveryDestination", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).RecoveryDestination, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).SubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[])content.GetValueForProperty("SubTask", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).SubTask, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask>(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobSubTaskTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).SourceRecoverPointRecoveryPointId = (string)content.GetValueForProperty("SourceRecoverPointRecoveryPointId", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?)content.GetValueForProperty("SourceRecoverPointRecoveryPointTime", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).TargetRecoverPointRecoveryPointId = (string)content.GetValueForProperty("TargetRecoverPointRecoveryPointId", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?)content.GetValueForProperty("TargetRecoverPointRecoveryPointTime", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal) this).TargetRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForProperties" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal ClientDiscoveryForProperties(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal) this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification)content.GetValueForProperty("ServiceSpecification", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal) this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal) this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[])content.GetValueForProperty("ServiceSpecificationLogSpecification", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal) this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification>(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.DiagnosticDetectorResponse" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal DiagnosticDetectorResponse(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.DiagnosticDetectorResponsePropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Type, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Kind = (string)content.GetValueForProperty("Kind", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IProxyOnlyResourceInternal) this).Kind, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DetectorDefinition = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDetectorDefinition)content.GetValueForProperty("DetectorDefinition", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DetectorDefinition, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.DetectorDefinitionTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).AbnormalTimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDetectorAbnormalTimePeriod[])content.GetValueForProperty("AbnormalTimePeriod", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).AbnormalTimePeriod, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDetectorAbnormalTimePeriod>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.DetectorAbnormalTimePeriodTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).Data = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INameValuePair[][])content.GetValueForProperty("Data", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).Data, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INameValuePair[]>(__y, __w => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INameValuePair>(__w, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.NameValuePairTypeConverter.ConvertFrom))); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).EndTime = (global::System.DateTime?)content.GetValueForProperty("EndTime", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).IssueDetected = (bool?)content.GetValueForProperty("IssueDetected", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).IssueDetected, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticMetricSet[])content.GetValueForProperty("Metric", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).Metric, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticMetricSet>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.DiagnosticMetricSetTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).StartTime = (global::System.DateTime?)content.GetValueForProperty("StartTime", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DetectorDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDetectorDefinitionProperties)content.GetValueForProperty("DetectorDefinitionProperty", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DetectorDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.DetectorDefinitionPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).ResponseMetaDataSource = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDataSource)content.GetValueForProperty("ResponseMetaDataSource", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).ResponseMetaDataSource, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.DataSourceTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).ResponseMetaData = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IResponseMetaData)content.GetValueForProperty("ResponseMetaData", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).ResponseMetaData, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ResponseMetaDataTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DisplayName = (string)content.GetValueForProperty("DisplayName", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DisplayName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DetectorDefinitionKind = (string)content.GetValueForProperty("DetectorDefinitionKind", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DetectorDefinitionKind, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DetectorDefinitionName = (string)content.GetValueForProperty("DetectorDefinitionName", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DetectorDefinitionName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).Description = (string)content.GetValueForProperty("Description", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).Description, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DetectorDefinitionType = (string)content.GetValueForProperty("DetectorDefinitionType", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DetectorDefinitionType, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DataSourceInstruction = (string[])content.GetValueForProperty("DataSourceInstruction", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DataSourceInstruction, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DetectorDefinitionId = (string)content.GetValueForProperty("DetectorDefinitionId", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DetectorDefinitionId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).Rank = (double?)content.GetValueForProperty("Rank", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).Rank, (__y) => (double)global::System.Convert.ChangeType(__y, typeof(double))); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).IsEnabled = (bool?)content.GetValueForProperty("IsEnabled", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).IsEnabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DataSourceUri = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INameValuePair[])content.GetValueForProperty("DataSourceUri", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDiagnosticDetectorResponseInternal) this).DataSourceUri, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INameValuePair>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.NameValuePairTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.AmazonAccountSystemScanRulesetProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal AmazonAccountSystemScanRulesetProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("CreatedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanRulesetPropertiesInternal) this).CreatedAt = (global::System.DateTime?)content.GetValueForProperty("CreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanRulesetPropertiesInternal) this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanRulesetPropertiesInternal) this).Description = (string)content.GetValueForProperty("Description", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanRulesetPropertiesInternal) this).Description, global::System.Convert.ToString); } if (content.Contains("ExcludedSystemClassification")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanRulesetPropertiesInternal) this).ExcludedSystemClassification = (string[])content.GetValueForProperty("ExcludedSystemClassification", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanRulesetPropertiesInternal) this).ExcludedSystemClassification, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("IncludedCustomClassificationRuleName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanRulesetPropertiesInternal) this).IncludedCustomClassificationRuleName = (string[])content.GetValueForProperty("IncludedCustomClassificationRuleName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanRulesetPropertiesInternal) this).IncludedCustomClassificationRuleName, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("LastModifiedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanRulesetPropertiesInternal) this).LastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("LastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanRulesetPropertiesInternal) this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.InboundEnvironmentEndpoint" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal InboundEnvironmentEndpoint(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IInboundEnvironmentEndpointInternal) this).Description = (string)content.GetValueForProperty("Description", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IInboundEnvironmentEndpointInternal) this).Description, global::System.Convert.ToString); } if (content.Contains("Endpoint")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IInboundEnvironmentEndpointInternal) this).Endpoint = (string[])content.GetValueForProperty("Endpoint", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IInboundEnvironmentEndpointInternal) this).Endpoint, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("Port")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IInboundEnvironmentEndpointInternal) this).Port = (string[])content.GetValueForProperty("Port", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IInboundEnvironmentEndpointInternal) this).Port, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.OutboundEnvironmentEndpointCollection" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal OutboundEnvironmentEndpointCollection(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IOutboundEnvironmentEndpointCollectionInternal) this).NextLink = (string)content.GetValueForProperty("NextLink", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IOutboundEnvironmentEndpointCollectionInternal) this).NextLink, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IOutboundEnvironmentEndpointCollectionInternal) this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IOutboundEnvironmentEndpoint[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IOutboundEnvironmentEndpointCollectionInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IOutboundEnvironmentEndpoint>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.OutboundEnvironmentEndpointTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); }